blob: 4063b6f418c0c5da71e86acc7a0b449cbded55fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
using Pango;
public class Astal.Label : Gtk.Label {
public bool truncate {
set { ellipsize = value ? EllipsizeMode.END : EllipsizeMode.NONE; }
get { return ellipsize == EllipsizeMode.END; }
}
public new bool justify_fill {
set { justify = value ? Gtk.Justification.FILL : Gtk.Justification.LEFT; }
get { return justify == Gtk.Justification.FILL; }
}
construct {
notify["ellipsize"].connect(() => notify_property("truncate"));
notify["justify"].connect(() => notify_property("justify_fill"));
}
}
|