diff options
author | Aylur <[email protected]> | 2024-10-14 16:45:03 +0000 |
---|---|---|
committer | Aylur <[email protected]> | 2024-10-14 16:45:03 +0000 |
commit | 9fab13452a26ed55c01047d4225f699f43bba20d (patch) | |
tree | 8dc3097994e8664572c3a94a62257604bdaa1f8d /lib/astal/gtk3/src/widget/levelbar.vala | |
parent | 6a8c41cd1d5e218d0dacffb836fdd7d4ec6333dd (diff) |
feat: Astal3
Diffstat (limited to 'lib/astal/gtk3/src/widget/levelbar.vala')
-rw-r--r-- | lib/astal/gtk3/src/widget/levelbar.vala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/astal/gtk3/src/widget/levelbar.vala b/lib/astal/gtk3/src/widget/levelbar.vala new file mode 100644 index 0000000..9b61957 --- /dev/null +++ b/lib/astal/gtk3/src/widget/levelbar.vala @@ -0,0 +1,13 @@ +public class Astal.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"); + }); + } +} |