[gtk/wip/matthiasc/popup4] gtk-demo: Stop using gtk_root_get_for_surface



commit b4af4a4f8aa40becf2b68f2e6165bb646a5417d5
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Apr 27 05:02:13 2019 +0000

    gtk-demo: Stop using gtk_root_get_for_surface

 demos/gtk-demo/changedisplay.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/demos/gtk-demo/changedisplay.c b/demos/gtk-demo/changedisplay.c
index 5f5717c43d..82e6273c68 100644
--- a/demos/gtk-demo/changedisplay.c
+++ b/demos/gtk-demo/changedisplay.c
@@ -74,7 +74,7 @@ find_toplevel_at_pointer (GdkDisplay *display)
   pointer_window = gdk_device_get_surface_at_position (gtk_get_current_event_device (), NULL, NULL);
 
   if (pointer_window)
-    widget = GTK_WIDGET (gtk_root_get_for_surface (pointer_window));
+    widget = GTK_WIDGET (gtk_bud_get_for_surface (pointer_window));
 
   return widget;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]