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")); } }