[gnome-control-center] Network: Add a device off switch
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Network: Add a device off switch
- Date: Mon, 14 Mar 2011 21:05:37 +0000 (UTC)
commit a320dc9303a3c95ecdd50c4939f4039664b671fe
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Mar 14 17:04:05 2011 -0400
Network: Add a device off switch
As seen in the mockups. This is currently hidden, until
I figure out how to wire this up properly.
panels/network/network.ui | 38 ++++++++++++++++++++++++++------------
1 files changed, 26 insertions(+), 12 deletions(-)
---
diff --git a/panels/network/network.ui b/panels/network/network.ui
index 80eb83b..fba5023 100644
--- a/panels/network/network.ui
+++ b/panels/network/network.ui
@@ -243,6 +243,20 @@
<property name="position">0</property>
</packing>
</child>
+ <child>
+ <object class="GtkSwitch" id="device_off_switch">
+ <property name="visible">False</property>
+ <property name="can_focus">True</property>
+ <property name="halign">end</property>
+ <property name="valign">start</property>
+ <property name="use_action_appearance">False</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
</object>
<packing>
<property name="expand">False</property>
@@ -643,9 +657,9 @@
<object class="GtkLabel" id="label_wired_dns">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="xalign">0</property>
<property name="label">127.0.0.1</property>
<property name="wrap">True</property>
- <property name="xalign">0</property>
<property name="selectable">True</property>
</object>
<packing>
@@ -884,11 +898,13 @@
<child>
<object class="GtkComboBox" id="combobox_network_name">
<property name="visible">True</property>
+ <property name="can_focus">False</property>
<property name="model">liststore_wireless_network</property>
<property name="has_entry">True</property>
<property name="entry_text_column">1</property>
<child internal-child="entry">
<object class="GtkEntry" id="comboboxentry-entry2">
+ <property name="can_focus">False</property>
<property name="editable">False</property>
</object>
</child>
@@ -1087,9 +1103,9 @@
<object class="GtkLabel" id="label_wireless_dns">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="xalign">0</property>
<property name="label">127.0.0.1</property>
<property name="wrap">True</property>
- <property name="xalign">0</property>
<property name="selectable">True</property>
</object>
<packing>
@@ -1651,8 +1667,8 @@
<object class="GtkLabel" id="label18">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">_Method:</property>
<property name="xalign">1</property>
+ <property name="label" translatable="yes">_Method:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">combobox_proxy_mode</property>
</object>
@@ -1673,10 +1689,11 @@
<child>
<object class="GtkComboBoxText" id="combobox_proxy_mode">
<property name="visible">True</property>
- <property name="model">liststore_proxy_method</property>
<property name="can_focus">True</property>
</object>
<packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
@@ -1787,8 +1804,8 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">â??</property>
- <property name="adjustment">adjustment_proxy_port_http</property>
<property name="xalign">1</property>
+ <property name="adjustment">adjustment_proxy_port_http</property>
</object>
<packing>
<property name="expand">True</property>
@@ -1852,8 +1869,8 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">â??</property>
- <property name="adjustment">adjustment_proxy_port_https</property>
<property name="xalign">1</property>
+ <property name="adjustment">adjustment_proxy_port_https</property>
</object>
<packing>
<property name="expand">True</property>
@@ -1917,8 +1934,8 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">â??</property>
- <property name="adjustment">adjustment_proxy_port_ftp</property>
<property name="xalign">1</property>
+ <property name="adjustment">adjustment_proxy_port_ftp</property>
</object>
<packing>
<property name="expand">True</property>
@@ -1982,8 +1999,8 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">â??</property>
- <property name="adjustment">adjustment_proxy_port_socks</property>
<property name="xalign">1</property>
+ <property name="adjustment">adjustment_proxy_port_socks</property>
</object>
<packing>
<property name="expand">True</property>
@@ -2101,9 +2118,8 @@
<object class="GtkLabel" id="label_flight_mode">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="use_underline">True</property>
- <property name="mnemonic_widget">switch_flight_mode</property>
<property name="label" translatable="yes">Air_plane Mode</property>
+ <property name="use_underline">True</property>
</object>
<packing>
<property name="expand">False</property>
@@ -2177,8 +2193,6 @@
</widgets>
</object>
<object class="GtkSizeGroup" id="sizegroup2">
- <property name="ignore-hidden">False</property>
- <property name="mode">horizontal</property>
<widgets>
<widget name="label18"/>
<widget name="label31"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]