Fix last commit: Set max_width_chars to 50 to ellipsize properly
authorDan Breslau <dbreslau@painless-security.com>
Fri, 7 Oct 2016 02:36:30 +0000 (22:36 -0400)
committerDan Breslau <dbreslau@painless-security.com>
Fri, 7 Oct 2016 02:36:30 +0000 (22:36 -0400)
src/moonshot-idcard-widget.vala

index 8018966..25976b3 100644 (file)
@@ -167,7 +167,7 @@ class IdCardWidget : Box
         Label service_list = new Label(services_text);
         service_list.set_alignment(0, 0);
         service_list.set_ellipsize(Pango.EllipsizeMode.END);
-        service_list.set_width_chars(50);
+        service_list.set_max_width_chars(50);
         services_hbox.pack_start(services_label, false, false, 0);
         services_hbox.pack_start(service_list, false, false, 0);
         details.pack_start(services_hbox);