summaryrefslogtreecommitdiff
path: root/gtk/gtkmain.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-08-13 19:21:05 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-08-14 07:03:27 -0400
commit35708162cc6d11a92c11f7c1e474e6d657f8d684 (patch)
tree28a91e4fd44943a357418b4d421b9d0ce60810d8 /gtk/gtkmain.c
parent28c1e742208c678456879705b3574e56699831fa (diff)
downloadgtk+-35708162cc6d11a92c11f7c1e474e6d657f8d684.tar.gz
Make GtkNativeInterface private
We are not sure yet if allowing out-of-tree implementations of GtkNative are a good idea.
Diffstat (limited to 'gtk/gtkmain.c')
-rw-r--r--gtk/gtkmain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index b114de5bc0..f59f1403cc 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -1227,7 +1227,7 @@ rewrite_event_for_grabs (GdkEvent *event)
}
event_widget = gtk_get_event_widget (event);
- grab_widget = gtk_native_get_for_surface (grab_surface);
+ grab_widget = GTK_WIDGET (gtk_native_get_for_surface (grab_surface));
if (grab_widget &&
gtk_main_get_window_group (grab_widget) != gtk_main_get_window_group (event_widget))
@@ -1990,7 +1990,7 @@ gtk_get_event_widget (GdkEvent *event)
surface = gdk_event_get_surface (event);
if (surface && !gdk_surface_is_destroyed (surface))
- return gtk_native_get_for_surface (surface);
+ return GTK_WIDGET (gtk_native_get_for_surface (surface));
return NULL;
}