[gnome-control-center] network: Remove unused toplevel windows from .ui files
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Remove unused toplevel windows from .ui files
- Date: Tue, 1 Oct 2013 08:06:47 +0000 (UTC)
commit c5b70a7876499d00c5ef50e5106ff5b375aa0391
Author: Rui Matos <tiagomatos gmail com>
Date: Tue Sep 17 16:30:30 2013 +0200
network: Remove unused toplevel windows from .ui files
https://bugzilla.gnome.org/show_bug.cgi?id=708286
panels/network/cc-network-panel.c | 2 +-
panels/network/net-device-ethernet.c | 3 ---
panels/network/net-device-mobile.c | 7 -------
panels/network/net-device-simple.c | 7 -------
panels/network/net-device-wifi.c | 7 -------
panels/network/net-proxy.c | 7 -------
panels/network/net-vpn.c | 7 -------
panels/network/network-ethernet.ui | 5 -----
panels/network/network-mobile.ui | 5 -----
panels/network/network-proxy.ui | 5 -----
panels/network/network-simple.ui | 5 -----
panels/network/network-vpn.ui | 5 -----
panels/network/network-wifi.ui | 5 -----
panels/network/network.ui | 5 -----
14 files changed, 1 insertions(+), 74 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index e17f6f3..4fa3706 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -1457,5 +1457,5 @@ cc_network_panel_init (CcNetworkPanel *panel)
widget = GTK_WIDGET (gtk_builder_get_object (panel->priv->builder,
"vbox1"));
- gtk_widget_reparent (widget, (GtkWidget *) panel);
+ gtk_container_add (GTK_CONTAINER (panel), widget);
}
diff --git a/panels/network/net-device-ethernet.c b/panels/network/net-device-ethernet.c
index f92fad9..49dd895 100644
--- a/panels/network/net-device-ethernet.c
+++ b/panels/network/net-device-ethernet.c
@@ -64,10 +64,7 @@ device_ethernet_add_to_notebook (NetObject *object,
GtkWidget *vbox;
vbox = GTK_WIDGET (gtk_builder_get_object (device->builder, "vbox6"));
- g_object_ref (vbox);
- gtk_container_remove (GTK_CONTAINER (gtk_widget_get_parent (vbox)), vbox);
gtk_notebook_append_page (notebook, vbox, NULL);
- g_object_unref (vbox);
return vbox;
}
diff --git a/panels/network/net-device-mobile.c b/panels/network/net-device-mobile.c
index 6c35524..dad3a4a 100644
--- a/panels/network/net-device-mobile.c
+++ b/panels/network/net-device-mobile.c
@@ -78,7 +78,6 @@ device_mobile_proxy_add_to_notebook (NetObject *object,
GtkSizeGroup *heading_size_group)
{
GtkWidget *widget;
- GtkWindow *window;
NetDeviceMobile *device_mobile = NET_DEVICE_MOBILE (object);
/* add widgets to size group */
@@ -89,15 +88,9 @@ device_mobile_proxy_add_to_notebook (NetObject *object,
"heading_network"));
gtk_size_group_add_widget (heading_size_group, widget);
- /* reparent */
- window = GTK_WINDOW (gtk_builder_get_object (device_mobile->priv->builder,
- "window_tmp"));
widget = GTK_WIDGET (gtk_builder_get_object (device_mobile->priv->builder,
"vbox7"));
- g_object_ref (widget);
- gtk_container_remove (GTK_CONTAINER (window), widget);
gtk_notebook_append_page (notebook, widget, NULL);
- g_object_unref (widget);
return widget;
}
diff --git a/panels/network/net-device-simple.c b/panels/network/net-device-simple.c
index 4be2fca..6c366b2 100644
--- a/panels/network/net-device-simple.c
+++ b/panels/network/net-device-simple.c
@@ -49,7 +49,6 @@ device_simple_proxy_add_to_notebook (NetObject *object,
GtkSizeGroup *heading_size_group)
{
GtkWidget *widget;
- GtkWindow *window;
NetDeviceSimple *device_simple = NET_DEVICE_SIMPLE (object);
/* add widgets to size group */
@@ -57,15 +56,9 @@ device_simple_proxy_add_to_notebook (NetObject *object,
"heading_ipv4"));
gtk_size_group_add_widget (heading_size_group, widget);
- /* reparent */
- window = GTK_WINDOW (gtk_builder_get_object (device_simple->priv->builder,
- "window_tmp"));
widget = GTK_WIDGET (gtk_builder_get_object (device_simple->priv->builder,
"vbox6"));
- g_object_ref (widget);
- gtk_container_remove (GTK_CONTAINER (window), widget);
gtk_notebook_append_page (notebook, widget, NULL);
- g_object_unref (widget);
return widget;
}
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index 397d556..e1c8eec 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -87,7 +87,6 @@ device_wifi_proxy_add_to_notebook (NetObject *object,
GtkSizeGroup *heading_size_group)
{
GtkWidget *widget;
- GtkWindow *window;
NetDeviceWifi *device_wifi = NET_DEVICE_WIFI (object);
/* add widgets to size group */
@@ -95,15 +94,9 @@ device_wifi_proxy_add_to_notebook (NetObject *object,
"heading_ipv4"));
gtk_size_group_add_widget (heading_size_group, widget);
- /* reparent */
- window = GTK_WINDOW (gtk_builder_get_object (device_wifi->priv->builder,
- "window_tmp"));
widget = GTK_WIDGET (gtk_builder_get_object (device_wifi->priv->builder,
"notebook_view"));
- g_object_ref (widget);
- gtk_container_remove (GTK_CONTAINER (window), widget);
gtk_notebook_append_page (notebook, widget, NULL);
- g_object_unref (widget);
return widget;
}
diff --git a/panels/network/net-proxy.c b/panels/network/net-proxy.c
index a883d4c..b1a499c 100644
--- a/panels/network/net-proxy.c
+++ b/panels/network/net-proxy.c
@@ -215,7 +215,6 @@ net_proxy_add_to_notebook (NetObject *object,
GtkSizeGroup *heading_size_group)
{
GtkWidget *widget;
- GtkWindow *window;
NetProxy *proxy = NET_PROXY (object);
/* add widgets to size group */
@@ -223,15 +222,9 @@ net_proxy_add_to_notebook (NetObject *object,
"heading_proxy_method"));
gtk_size_group_add_widget (heading_size_group, widget);
- /* reparent */
- window = GTK_WINDOW (gtk_builder_get_object (proxy->priv->builder,
- "window_tmp"));
widget = GTK_WIDGET (gtk_builder_get_object (proxy->priv->builder,
"grid5"));
- g_object_ref (widget);
- gtk_container_remove (GTK_CONTAINER (window), widget);
gtk_notebook_append_page (notebook, widget, NULL);
- g_object_unref (widget);
return widget;
}
diff --git a/panels/network/net-vpn.c b/panels/network/net-vpn.c
index 35c0f22..1238ae7 100644
--- a/panels/network/net-vpn.c
+++ b/panels/network/net-vpn.c
@@ -235,7 +235,6 @@ vpn_proxy_add_to_notebook (NetObject *object,
GtkSizeGroup *heading_size_group)
{
GtkWidget *widget;
- GtkWindow *window;
NetVpn *vpn = NET_VPN (object);
/* add widgets to size group */
@@ -243,15 +242,9 @@ vpn_proxy_add_to_notebook (NetObject *object,
"heading_group_password"));
gtk_size_group_add_widget (heading_size_group, widget);
- /* reparent */
- window = GTK_WINDOW (gtk_builder_get_object (vpn->priv->builder,
- "window_tmp"));
widget = GTK_WIDGET (gtk_builder_get_object (vpn->priv->builder,
"vbox9"));
- g_object_ref (widget);
- gtk_container_remove (GTK_CONTAINER (window), widget);
gtk_notebook_append_page (notebook, widget, NULL);
- g_object_unref (widget);
return widget;
}
diff --git a/panels/network/network-ethernet.ui b/panels/network/network-ethernet.ui
index b95d41d..062aa2f 100644
--- a/panels/network/network-ethernet.ui
+++ b/panels/network/network-ethernet.ui
@@ -7,9 +7,6 @@
<property name="icon_name">emblem-system-symbolic</property>
<property name="icon_size">1</property>
</object>
- <object class="GtkWindow" id="window_tmp">
- <property name="can_focus">False</property>
- <child>
<object class="GtkVBox" id="vbox6">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -218,7 +215,5 @@
</packing>
</child>
</object>
- </child>
- </object>
<object class="GtkSizeGroup" id="sizegroup1"/>
</interface>
diff --git a/panels/network/network-mobile.ui b/panels/network/network-mobile.ui
index cf0f2ca..3533bce 100644
--- a/panels/network/network-mobile.ui
+++ b/panels/network/network-mobile.ui
@@ -9,9 +9,6 @@
<column type="gchararray"/>
</columns>
</object>
- <object class="GtkWindow" id="window_tmp">
- <property name="can_focus">False</property>
- <child>
<object class="GtkVBox" id="vbox7">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -406,6 +403,4 @@
</packing>
</child>
</object>
- </child>
- </object>
</interface>
diff --git a/panels/network/network-proxy.ui b/panels/network/network-proxy.ui
index faa5630..9cf51b6 100644
--- a/panels/network/network-proxy.ui
+++ b/panels/network/network-proxy.ui
@@ -39,9 +39,6 @@
</row>
</data>
</object>
- <object class="GtkWindow" id="window_tmp">
- <property name="can_focus">False</property>
- <child>
<object class="GtkGrid" id="grid5">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -487,8 +484,6 @@
</packing>
</child>
</object>
- </child>
- </object>
<object class="GtkSizeGroup" id="sizegroup3">
<widgets>
<widget name="combobox_proxy_mode"/>
diff --git a/panels/network/network-simple.ui b/panels/network/network-simple.ui
index ee9ae12..0142c1d 100644
--- a/panels/network/network-simple.ui
+++ b/panels/network/network-simple.ui
@@ -1,9 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
- <object class="GtkWindow" id="window_tmp">
- <property name="can_focus">False</property>
- <child>
<object class="GtkVBox" id="vbox6">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -339,7 +336,5 @@
</packing>
</child>
</object>
- </child>
- </object>
<object class="GtkSizeGroup" id="sizegroup1"/>
</interface>
diff --git a/panels/network/network-vpn.ui b/panels/network/network-vpn.ui
index 31e73eb..c5daf5f 100644
--- a/panels/network/network-vpn.ui
+++ b/panels/network/network-vpn.ui
@@ -15,9 +15,6 @@
</row>
</data>
</object>
- <object class="GtkWindow" id="window_tmp">
- <property name="can_focus">False</property>
- <child>
<object class="GtkVBox" id="vbox9">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -359,8 +356,6 @@
</packing>
</child>
</object>
- </child>
- </object>
<object class="GtkSizeGroup" id="sizegroup1">
<widgets>
<widget name="heading_service_type"/>
diff --git a/panels/network/network-wifi.ui b/panels/network/network-wifi.ui
index df4ab51..6061b12 100644
--- a/panels/network/network-wifi.ui
+++ b/panels/network/network-wifi.ui
@@ -1595,9 +1595,6 @@ here</property>
<action-widget response="-5">hotspot-turn-on-button</action-widget>
</action-widgets>
</object>
- <object class="GtkWindow" id="window_tmp">
- <property name="can_focus">False</property>
- <child>
<object class="GtkNotebook" id="notebook_view">
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -2043,6 +2040,4 @@ here</property>
</packing>
</child>
</object>
- </child>
- </object>
</interface>
diff --git a/panels/network/network.ui b/panels/network/network.ui
index 3e04b6d..07fe5ff 100644
--- a/panels/network/network.ui
+++ b/panels/network/network.ui
@@ -217,9 +217,6 @@
<column type="gchararray"/>
</columns>
</object>
- <object class="GtkWindow" id="window1">
- <property name="can_focus">False</property>
- <child>
<object class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -352,8 +349,6 @@
</packing>
</child>
</object>
- </child>
- </object>
<object class="GtkSizeGroup" id="sizegroup1">
</object>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]