network: Fix warning about missing cast to GtkWidget*

https://bugzilla.gnome.org/show_bug.cgi?id=794171
This commit is contained in:
Benjamin Berg 2018-03-08 12:08:19 +01:00
parent 3117e2dc4a
commit 72ef675a36

View file

@ -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);
}