[gnome-control-center] network: Fix warning on startup



commit b98f29d1a9f75b4e9ebb5ebe8df11452feca3716
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Apr 29 11:07:22 2014 +0200

    network: Fix warning on startup
    
    c5b70a7876499d00c5ef50e5106ff5b375aa0391 removed all the unused top
    level windows in the UI files, but net-virtual-device.c was forgotten.

 panels/network/net-virtual-device.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/panels/network/net-virtual-device.c b/panels/network/net-virtual-device.c
index 8042dc5..c146527 100644
--- a/panels/network/net-virtual-device.c
+++ b/panels/network/net-virtual-device.c
@@ -140,22 +140,15 @@ net_virtual_device_add_to_notebook (NetObject *object,
 {
         NetVirtualDevice *virtual_device = NET_VIRTUAL_DEVICE (object);
         GtkWidget *widget;
-        GtkWindow *window;
 
         /* add widgets to size group */
         widget = GTK_WIDGET (gtk_builder_get_object (virtual_device->priv->builder,
                                                      "heading_ipv4"));
         gtk_size_group_add_widget (heading_size_group, widget);
 
-        /* reparent */
-        window = GTK_WINDOW (gtk_builder_get_object (virtual_device->priv->builder,
-                                                     "window_tmp"));
         widget = GTK_WIDGET (gtk_builder_get_object (virtual_device->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;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]