[network-manager-applet/nma-0-9-8] applet/editor: set max-width-chars on labels to prevent wide dialogs
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/nma-0-9-8] applet/editor: set max-width-chars on labels to prevent wide dialogs
- Date: Mon, 9 Jun 2014 19:37:59 +0000 (UTC)
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:
https://git.gnome.org/browse/gtk+/commit/?h=gtk-3-10&id=2436627eb4644234a9e577538ec334d224e3d2be
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>
</object>
<packing>
<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>
</object>
<packing>
<property name="position">0</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]