summaryrefslogtreecommitdiff
path: root/lib/astal/gtk3/src/widget/levelbar.vala
blob: 9b6195748e1abb5728c41e0a380ad1b52f2e5edc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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");
        });
    }
}