diff --git a/panels/network/connection-editor/net-connection-editor.c b/panels/network/connection-editor/net-connection-editor.c index b94144a..40be068 100644 --- a/panels/network/connection-editor/net-connection-editor.c +++ b/panels/network/connection-editor/net-connection-editor.c @@ -845,7 +845,7 @@ net_connection_editor_new (GtkWindow *parent_window, editor = g_object_new (NET_TYPE_CONNECTION_EDITOR, NULL); if (parent_window) { - editor->parent_window = g_object_ref (parent_window); + editor->parent_window = GTK_WIDGET (g_object_ref (parent_window)); gtk_window_set_transient_for (GTK_WINDOW (editor->window), parent_window); }