[network-manager-applet/nma-0-9-8] applet/editor: set max-width-chars on labels to prevent wide dialogs

commit 1e1643917674ac6a77a4a7bc1c5a86ce4795d11f
Author: Dan Williams <dcbw redhat com>
Date:   Mon Jun 9 14:26:16 2014 -0500

    applet/editor: set max-width-chars on labels to prevent wide dialogs
    GTK+ 3.10 and lower capped labels with wrapping set, but without
    max-width-chars set, from taking up the entire screen width.  GTK+
    git master no longer does that, so some of our labels never wrap
    and the dialogs look ugly.
    Noticed by Michael Biebl
    GTK+ 3.10 hack:
    Backported from 7c5b4bd57db91b85a384ec16f503161bb8b35aaf

 src/connection-editor/ce-new-connection.ui |    1 +
 src/libnm-gtk/wifi.ui                      |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/connection-editor/ce-new-connection.ui b/src/connection-editor/ce-new-connection.ui
index ca0372d..094dade 100644
--- a/src/connection-editor/ce-new-connection.ui
+++ b/src/connection-editor/ce-new-connection.ui
@@ -59,6 +59,7 @@
 If you are creating a VPN, and the VPN connection you wish to create does not appear in the list, you may 
not have the correct VPN plugin installed.</property>
                     <property name="wrap">True</property>
+                    <property name="max_width_chars">60</property>
                     <property name="expand">False</property>
diff --git a/src/libnm-gtk/wifi.ui b/src/libnm-gtk/wifi.ui
index 908ce68..72ba1fc 100644
--- a/src/libnm-gtk/wifi.ui
+++ b/src/libnm-gtk/wifi.ui
@@ -49,6 +49,7 @@
                     <property name="xalign">0</property>
                     <property name="use_markup">True</property>
                     <property name="wrap">True</property>
+                    <property name="max_width_chars">50</property>
                     <property name="position">0</property>

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]