[network-manager-applet/NMA_0_8_1] editor: make sure editor windows are destroyed (rh #572466)
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/NMA_0_8_1] editor: make sure editor windows are destroyed (rh #572466)
- Date: Sat, 26 Jun 2010 01:48:54 +0000 (UTC)
commit c7f46a085a8d609fb82e9d3335df131123ea7512
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]