[network-manager-applet/NETWORKMANAGER_APPLET_0_7] editor: fix miscast (bgo #581758)



commit 8abd51a09463e93f9fc5fa9fc3a773e1e9caf29d
Author: Dan Williams <dcbw redhat com>
Date:   Thu Oct 15 20:00:43 2009 -0700

    editor: fix miscast (bgo #581758)

 src/connection-editor/nm-connection-list.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/connection-editor/nm-connection-list.c b/src/connection-editor/nm-connection-list.c
index 0bace76..cd3b252 100644
--- a/src/connection-editor/nm-connection-list.c
+++ b/src/connection-editor/nm-connection-list.c
@@ -633,9 +633,12 @@ connection_update_add_done (NMExportedConnection *exported,
 	ConnectionUpdateInfo *info = (ConnectionUpdateInfo *) user_data;
 
 	if (success) {
+		GtkWindow *parent;
+
 		/* Adding the connection with different scope succeeded, now try to remove the original */
 		info->added_connection = exported ? g_object_ref (exported) : NULL;
-		remove_connection (info->original, GTK_WINDOW (info->editor), connection_update_remove_done, info);
+		parent = nm_connection_editor_get_window (info->editor);
+		remove_connection (info->original, parent, connection_update_remove_done, info);
 	} else
 		connection_update_done (info, success);
 }



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