[gnome-control-center] wifi: Allow the panel to reach narrower sizes
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] wifi: Allow the panel to reach narrower sizes
- Date: Mon, 26 Nov 2018 15:58:58 +0000 (UTC)
commit 943c90074cdd194bdfcef6d778519a39f1c30695
Author: Adrien Plazas <kekun plazas laposte net>
Date: Thu Sep 20 15:12:44 2018 +0200
wifi: Allow the panel to reach narrower sizes
panels/network/cc-wifi-panel.ui | 35 +++++++----------------------------
panels/network/net-device-wifi.c | 2 ++
panels/network/network-wifi.ui | 1 +
3 files changed, 10 insertions(+), 28 deletions(-)
---
diff --git a/panels/network/cc-wifi-panel.ui b/panels/network/cc-wifi-panel.ui
index ffc034a72..62746d9f2 100644
--- a/panels/network/cc-wifi-panel.ui
+++ b/panels/network/cc-wifi-panel.ui
@@ -11,31 +11,14 @@
<property name="can-focus">False</property>
<property name="hscrollbar-policy">never</property>
<child>
- <object class="GtkGrid">
+ <object class="HdyColumn">
<property name="visible">True</property>
- <property name="margin">32</property>
-
- <!-- Empty boxes to enforce 1/3 width for the main widgets -->
- <child>
- <object class="GtkBox">
- <property name="visible">True</property>
- <property name="hexpand">True</property>
- </object>
- <packing>
- <property name="left-attach">0</property>
- <property name="top-attach">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkBox">
- <property name="visible">True</property>
- <property name="hexpand">True</property>
- </object>
- <packing>
- <property name="left-attach">2</property>
- <property name="top-attach">0</property>
- </packing>
- </child>
+ <property name="maximum_width">600</property>
+ <property name="linear_growth_width">400</property>
+ <property name="margin_top">32</property>
+ <property name="margin_bottom">32</property>
+ <property name="margin_start">12</property>
+ <property name="margin_end">12</property>
<child>
<object class="GtkBox">
@@ -336,10 +319,6 @@
</object>
- <packing>
- <property name="left-attach">1</property>
- <property name="top-attach">0</property>
- </packing>
</child>
</object>
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index 728a3cc73..262e8122f 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -1868,6 +1868,8 @@ make_row (GtkSizeGroup *rows,
g_free (title);
gtk_widget_set_margin_top (widget, 12);
gtk_widget_set_margin_bottom (widget, 12);
+ gtk_label_set_ellipsize (GTK_LABEL (widget), PANGO_ELLIPSIZE_END);
+ gtk_label_set_xalign (GTK_LABEL (widget), 0.f);
gtk_box_pack_start (GTK_BOX (row_box), widget, FALSE, FALSE, 0);
if (active) {
diff --git a/panels/network/network-wifi.ui b/panels/network/network-wifi.ui
index 13ca15dbe..baf2da208 100644
--- a/panels/network/network-wifi.ui
+++ b/panels/network/network-wifi.ui
@@ -1528,6 +1528,7 @@ here</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
+ <property name="wrap">True</property>
<property name="label" translatable="yes">Switch off to connect to a Wi-Fi
network</property>
</object>
<packing>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]