summaryrefslogtreecommitdiff
path: root/src/systemadm.vala
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2011-03-01 11:18:13 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2011-09-20 01:06:01 +0200
commit0dd27daff4ba4bdad99b12b85b630ab21c84fa9e (patch)
treec75144e2cce3fe3bfde4baaed39f1d3ce8575d46 /src/systemadm.vala
parente377ad0d11e1bd9954c6084956494ebbf41b4486 (diff)
systemadm: add a wrappable label and use it for status lines
The new WrapLabel is there to work around a deficiency in GTK, namely the fact that it is hard to make labels which are both resizable and wrappable. The code is a port from libview.
Diffstat (limited to 'src/systemadm.vala')
-rw-r--r--src/systemadm.vala7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/systemadm.vala b/src/systemadm.vala
index 6126eca221..68652d0064 100644
--- a/src/systemadm.vala
+++ b/src/systemadm.vala
@@ -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) {