[network-manager-applet] editor: improve layout of general page
- From: Beniamino Galvani <bgalvani src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] editor: improve layout of general page
- Date: Wed, 28 Mar 2018 07:02:31 +0000 (UTC)
commit b40d53bc0394c69db01b0d15f765372bf9cd67fd
Author: Beniamino Galvani <bgalvani redhat com>
Date: Mon Mar 26 22:04:02 2018 +0200
editor: improve layout of general page
Use two columns to align combo boxes and the spin button. Also, don't
waste space but put related items (auto-connect checkbox and
auto-connect priority spin-button, etc.) on the same row.
src/connection-editor/ce-page-general.ui | 145 ++++++++++-------------------
1 files changed, 50 insertions(+), 95 deletions(-)
---
diff --git a/src/connection-editor/ce-page-general.ui b/src/connection-editor/ce-page-general.ui
index 6ebe5d9..af52425 100644
--- a/src/connection-editor/ce-page-general.ui
+++ b/src/connection-editor/ce-page-general.ui
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.20.0 -->
+<!-- Generated with glade 3.20.2 -->
<interface>
<requires lib="gtk+" version="3.10"/>
<object class="GtkAdjustment" id="adjustment1">
@@ -23,26 +23,9 @@
<property name="row_spacing">6</property>
<property name="column_spacing">6</property>
<child>
- <object class="GtkCheckButton" id="dependent_vpn_checkbox">
- <property name="label" translatable="yes">Automatically connect to _VPN when using this
connection</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="hexpand">True</property>
- <property name="use_underline">True</property>
- <property name="draw_indicator">True</property>
- </object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">3</property>
- </packing>
- </child>
- <child>
<object class="GtkComboBox" id="dependent_vpn_combo">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="margin_start">26</property>
- <property name="margin_bottom">12</property>
<property name="hexpand">True</property>
<property name="model">dependent_vpn_model</property>
<child>
@@ -53,8 +36,8 @@
</child>
</object>
<packing>
- <property name="left_attach">0</property>
- <property name="top_attach">4</property>
+ <property name="left_attach">1</property>
+ <property name="top_attach">2</property>
</packing>
</child>
<child>
@@ -63,111 +46,83 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
- <property name="margin_bottom">12</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="left_attach">0</property>
- <property name="top_attach">2</property>
+ <property name="top_attach">1</property>
+ <property name="width">2</property>
</packing>
</child>
<child>
- <object class="GtkCheckButton" id="connection_autoconnect">
- <property name="label" translatable="yes">_Automatically connect to this network when it is
available</property>
+ <object class="GtkCheckButton" id="dependent_vpn_checkbox">
+ <property name="label" translatable="yes">Automatically connect to _VPN</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
+ <property name="hexpand">True</property>
<property name="use_underline">True</property>
- <property name="active">True</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="left_attach">0</property>
- <property name="top_attach">0</property>
+ <property name="top_attach">2</property>
</packing>
</child>
<child>
- <object class="GtkBox" id="box1">
- <property name="visible">True</property>
+ <object class="GtkLabel" id="firewall_zone_label">
<property name="can_focus">False</property>
- <child>
- <object class="GtkLabel" id="autoconnect_prio_label">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="halign">start</property>
- <property name="label" translatable="yes">Connection _priority for auto-activation</property>
- <property name="use_underline">True</property>
- <property name="mnemonic_widget">autoconnect_prio</property>
- <property name="xalign">1</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkSpinButton" id="autoconnect_prio">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="tooltip_text" translatable="yes">Connection priority for automatic activation.
Connections with higher numbers are preferred when selecting profiles for automatic activation. Default value
is 0.</property>
- <property name="hexpand">True</property>
- <property name="invisible_char">●</property>
- <property name="text">0</property>
- <property name="adjustment">adjustment1</property>
- <property name="climb_rate">1</property>
- <property name="numeric">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="padding">12</property>
- <property name="position">1</property>
- </packing>
- </child>
+ <property name="label" translatable="yes">Firewall _zone</property>
+ <property name="use_underline">True</property>
+ <property name="xalign">0</property>
</object>
<packing>
<property name="left_attach">0</property>
- <property name="top_attach">1</property>
+ <property name="top_attach">3</property>
</packing>
</child>
<child>
- <object class="GtkBox" id="box2">
+ <object class="GtkVBox" id="firewall_zone_vbox">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="valign">start</property>
- <property name="vexpand">True</property>
- <property name="spacing">6</property>
- <child>
- <object class="GtkLabel" id="firewall_zone_label">
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">Firewall _zone</property>
- <property name="use_underline">True</property>
- <property name="xalign">1</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkVBox" id="firewall_zone_vbox">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hexpand">True</property>
- </object>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
+ <property name="can_focus">True</property>
+ <property name="hexpand">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">3</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="connection_autoconnect">
+ <property name="label" translatable="yes">Connect _automatically with priority</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_underline">True</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">True</property>
</object>
<packing>
<property name="left_attach">0</property>
- <property name="top_attach">5</property>
+ <property name="top_attach">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkSpinButton" id="autoconnect_prio">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="tooltip_text" translatable="yes">Connection priority for automatic activation.
Connections with higher numbers are preferred when selecting profiles for automatic activation. Default value
is 0.</property>
+ <property name="hexpand">True</property>
+ <property name="invisible_char">●</property>
+ <property name="text">0</property>
+ <property name="adjustment">adjustment1</property>
+ <property name="climb_rate">1</property>
+ <property name="numeric">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">0</property>
</packing>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]