[network-manager-applet] applet: don't unref menu item widgets



commit c1d8bfc4f7d0d143ea0a3f68e05577689c2699ae
Author: Pavel Šimerda <psimerda redhat com>
Date:   Thu Jan 15 11:50:06 2015 +0100

    applet: don't unref menu item widgets
    
    The widgets are owned by their respective containers. They get unreffed
    and disposed with the menu item. This caused problems with the
    appindicator patches where the whole menu is destroyed and recreated.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=740574

 src/ap-menu-item.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/src/ap-menu-item.c b/src/ap-menu-item.c
index 1f096c7..69218a7 100644
--- a/src/ap-menu-item.c
+++ b/src/ap-menu-item.c
@@ -82,11 +82,6 @@ nm_network_menu_item_dispose (GObject *object)
                return;
        }
 
-       gtk_widget_destroy (item->ssid);
-       gtk_widget_destroy (item->strength);
-       gtk_widget_destroy (item->detail);
-       gtk_widget_destroy (item->hbox);
-
        item->destroyed = TRUE;
        g_free (item->hash);
        g_free (item->ssid_string);


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