summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2018-03-26 22:04:02 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2018-03-28 09:00:44 +0200
commitb40d53bc0394c69db01b0d15f765372bf9cd67fd (patch)
tree95b295ed50e6c3bdf27dd02b3816003343b45c04
parentb09a95c6cb882e535cd63824d2dcae523a4ff1d8 (diff)
downloadnetwork-manager-applet-b40d53bc0394c69db01b0d15f765372bf9cd67fd.tar.gz
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.
-rw-r--r--src/connection-editor/ce-page-general.ui145
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 6ebe5d9c..af524251 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>