summaryrefslogtreecommitdiff
path: root/lib/astal/gtk3/src/widget/levelbar.vala
blob: 3e98afb368361386726d53e4efa6bdd7f375ab40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
public class Astal.LevelBar : Gtk.LevelBar {
    /**
     * Corresponds to [[email protected] :orientation].
     */
    [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");
        });
    }
}