[gnome-control-center/gnome-3-28] network: Fix warning about missing cast to GtkWidget*
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-28] network: Fix warning about missing cast to GtkWidget*
- Date: Fri, 16 Mar 2018 22:09:39 +0000 (UTC)
commit 167d11e2107e46b4621cf6fc370c5b191b4b7732
Author: Benjamin Berg <bberg redhat com>
Date: Thu Mar 8 12:08:19 2018 +0100
network: Fix warning about missing cast to GtkWidget*
https://bugzilla.gnome.org/show_bug.cgi?id=794171
(cherry picked from commit 72ef675a361ed9b0b7aa32bf6d127ddc0458064d)
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]