diff options
Diffstat (limited to 'core/src/widget/levelbar.vala')
-rw-r--r-- | core/src/widget/levelbar.vala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/core/src/widget/levelbar.vala b/core/src/widget/levelbar.vala new file mode 100644 index 0000000..1db2cc7 --- /dev/null +++ b/core/src/widget/levelbar.vala @@ -0,0 +1,15 @@ +namespace Astal { +public class LevelBar : Gtk.LevelBar { + [CCode (notify = false)] + public bool vertical { + get { return orientation == Gtk.Orientation.VERTICAL; } + set { orientation = value ? Gtk.Orientation.VERTICAL : Gtk.Orientation.HORIZONTAL; } + } + + construct { + notify["orientation"].connect(() => { + notify_property("vertical"); + }); + } +} +} |