diff options
author | Alexander Larsson <alexl@redhat.com> | 2018-03-20 15:14:10 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2018-03-20 15:14:10 +0100 |
commit | 3dce0dcca705c4ab6d8c4f5067db93947184b6af (patch) | |
tree | 8de99e5b35abc5242accafb84d0526b08c66b9e7 /gtk/gtkmenu.c | |
parent | 9a7e721181ce714ab248429dc1258984b9e10748 (diff) | |
download | gtk+-3dce0dcca705c4ab6d8c4f5067db93947184b6af.tar.gz |
GdkSurface: Rename lots of stuff from window->surface
Mostly these are internal things, but the major public change is
that event.window is now event.surface.
Diffstat (limited to 'gtk/gtkmenu.c')
-rw-r--r-- | gtk/gtkmenu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c index e1215a34f0..d3c1643e7e 100644 --- a/gtk/gtkmenu.c +++ b/gtk/gtkmenu.c @@ -1497,7 +1497,7 @@ associate_menu_grab_transfer_window (GtkMenu *menu) if (toplevel_window == NULL || transfer_window == NULL) return; - g_object_set_data (G_OBJECT (toplevel_window), I_("gdk-attached-grab-window"), transfer_window); + g_object_set_data (G_OBJECT (toplevel_window), I_("gdk-attached-grab-surface"), transfer_window); } static void @@ -2068,7 +2068,7 @@ gtk_menu_popup_at_pointer (GtkMenu *menu, if (trigger_event) { - rect_window = gdk_event_get_window (trigger_event); + rect_window = gdk_event_get_surface (trigger_event); if (rect_window) { @@ -2547,7 +2547,7 @@ menu_grab_transfer_window_destroy (GtkMenu *menu) g_object_set_data (G_OBJECT (menu), I_("gtk-menu-transfer-window"), NULL); widget_window = gtk_widget_get_window (GTK_WIDGET (menu)); - g_object_set_data (G_OBJECT (widget_window), I_("gdk-attached-grab-window"), window); + g_object_set_data (G_OBJECT (widget_window), I_("gdk-attached-grab-surface"), window); } } |