summaryrefslogtreecommitdiff
path: root/core/src/widget/levelbar.vala
blob: 1db2cc79e076cad3a7ac409028fff72414d9c6f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
namespace Astal {
public class 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");
        });
    }
}
}