network: Use a GtkSwitch to control the flight mode
This commit is contained in:
parent
84192b4207
commit
ebedc3ac94
2 changed files with 28 additions and 8 deletions
|
@ -1288,7 +1288,7 @@ cc_network_panel_init (CcNetworkPanel *panel)
|
|||
"button_unlock"));
|
||||
gtk_widget_set_sensitive (widget, FALSE);
|
||||
widget = GTK_WIDGET (gtk_builder_get_object (panel->priv->builder,
|
||||
"togglebutton_flightmode"));
|
||||
"switch_flight_mode"));
|
||||
gtk_widget_set_sensitive (widget, FALSE);
|
||||
|
||||
widget = GTK_WIDGET (gtk_builder_get_object (panel->priv->builder,
|
||||
|
|
|
@ -1396,16 +1396,36 @@
|
|||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToggleButton" id="togglebutton_flightmode">
|
||||
<property name="label" translatable="yes">Flight Mode</property>
|
||||
<object class="GtkHBox" id="hbox_flight_mode">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="use_action_appearance">False</property>
|
||||
<property name="spacing">3</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label_flight_mode">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Airplane Mode</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="pack_type">end</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSwitch" id="switch_flight_mode">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="use_action_appearance">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="pack_type">end</property>
|
||||
<property name="position">0</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="pack_type">end</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue