[network-manager-applet] editor: make sure editor windows are destroyed (rh #572466)



commit 246b8937bf4d0d23e9167e0da27910f7c6d6eacc
Author: Dan Williams <dcbw redhat com>
Date:   Fri Jun 25 18:43:37 2010 -0700

    editor: make sure editor windows are destroyed (rh #572466)
    
    The GladeXML object we get a top-level window or dialog from
    doesn't actually keep the reference to the object, we own it
    after the glade_xml_get_widget() call.  So we need to destroy
    it, otherwise we'll keep getting signals from the CEPolkitButton
    in the editor window after we've already destroyed it's controlling
    NMConnectionEditor object, leading to badness.

 src/connection-editor/nm-connection-editor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/connection-editor/nm-connection-editor.c b/src/connection-editor/nm-connection-editor.c
index 8c660c5..4bd2daa 100644
--- a/src/connection-editor/nm-connection-editor.c
+++ b/src/connection-editor/nm-connection-editor.c
@@ -352,7 +352,7 @@ dispose (GObject *object)
 		editor->orig_connection = NULL;
 	}
 	if (editor->window) {
-		gtk_widget_hide (editor->window);
+		gtk_widget_destroy (editor->window);
 		editor->window = NULL;
 	}
 	if (editor->xml) {



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