chiark / gitweb /
systemadm: add a wrappable label and use it for status lines
[elogind.git] / src / systemadm.vala
index 6126eca22164e452e1cbb9d2832f66a95cb9dbd0..68652d0064cf9c7d9ca9e68e5ea76ca4bab23464 100644 (file)
@@ -46,12 +46,11 @@ public class LeftLabel : Label {
         }
 }
 
-public class RightLabel : Label {
+public class RightLabel : WrapLabel {
+
         public RightLabel(string? text = null) {
-                set_text_or_na(text);
-                set_alignment(0, 0);
-                set_ellipsize(EllipsizeMode.START);
                 set_selectable(true);
+                set_text_or_na(text);
         }
 
         public void set_text_or_na(string? text = null) {