From e675e9784a20bb07d33f0feb3724a2a1f072f52b Mon Sep 17 00:00:00 2001 From: Aylur Date: Wed, 5 Jun 2024 13:16:28 +0200 Subject: more widget subclasses * levelbar * overlay * scrollable * slider --- src/widget/centerbox.vala | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/widget/centerbox.vala') diff --git a/src/widget/centerbox.vala b/src/widget/centerbox.vala index 5f41600..eedee9b 100644 --- a/src/widget/centerbox.vala +++ b/src/widget/centerbox.vala @@ -1,10 +1,21 @@ namespace Astal { public class CenterBox : Gtk.Box { + [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"); + }); + } + + static construct { + set_css_name("centerbox"); + } + private Gtk.Widget _start_widget; public Gtk.Widget start_widget { get { return _start_widget; } -- cgit v1.2.3