From 72ef675a361ed9b0b7aa32bf6d127ddc0458064d Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Thu, 8 Mar 2018 12:08:19 +0100 Subject: [PATCH] network: Fix warning about missing cast to GtkWidget* https://bugzilla.gnome.org/show_bug.cgi?id=794171 --- panels/network/connection-editor/net-connection-editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panels/network/connection-editor/net-connection-editor.c b/panels/network/connection-editor/net-connection-editor.c index 8c21667c6..1b268044a 100644 --- a/panels/network/connection-editor/net-connection-editor.c +++ b/panels/network/connection-editor/net-connection-editor.c @@ -814,7 +814,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); }