summaryrefslogtreecommitdiff
path: root/src/widget/centerbox.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget/centerbox.vala')
-rw-r--r--src/widget/centerbox.vala11
1 files changed, 11 insertions, 0 deletions
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; }