[gtk/kill-register-surface: 5/10] tooltip: Stop using gdk_surface_get_user_data
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/kill-register-surface: 5/10] tooltip: Stop using gdk_surface_get_user_data
- Date: Sat, 23 Feb 2019 23:58:11 +0000 (UTC)
commit 16f0995041cfa640baea7f706ab89d97235fe845
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Feb 23 16:55:20 2019 -0500
tooltip: Stop using gdk_surface_get_user_data
Use gtk_root_get_for_surface instead.
gtk/gtktooltip.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c
index 592d56d88a..ee37687b68 100644
--- a/gtk/gtktooltip.c
+++ b/gtk/gtktooltip.c
@@ -35,6 +35,7 @@
#include "gtkwindowprivate.h"
#include "gtkwidgetprivate.h"
#include "gtkaccessible.h"
+#include "gtkroot.h"
#ifdef GDK_WINDOWING_WAYLAND
#include "wayland/gdkwayland.h"
@@ -428,7 +429,7 @@ _gtk_widget_find_at_coords (GdkSurface *surface,
g_return_val_if_fail (GDK_IS_SURFACE (surface), NULL);
- gdk_surface_get_user_data (surface, (void **)&event_widget);
+ event_widget = gtk_root_get_for_surface (surface);
if (!event_widget)
return NULL;
@@ -499,7 +500,7 @@ gtk_tooltip_set_last_surface (GtkTooltip *tooltip,
(gpointer *) &tooltip->last_surface);
if (surface)
- gdk_surface_get_user_data (surface, (gpointer *) &window_widget);
+ window_widget = gtk_root_get_for_surface (surface);
if (window_widget)
window_widget = gtk_widget_get_toplevel (window_widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]