summaryrefslogtreecommitdiff
path: root/gtk/gtktooltip.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-05-20 00:38:08 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-05-28 20:25:16 +0000
commit302d2a04aebb3d97829b17ca4f27fe62234d2de8 (patch)
tree003a114695f30ea40b8f759a2c8f819ad18d1bd0 /gtk/gtktooltip.c
parent9765aabebd5ed699f254155b68109a1bba4fb51f (diff)
downloadgtk+-302d2a04aebb3d97829b17ca4f27fe62234d2de8.tar.gz
Stop using gtk_widget_get_surface
Replace all uses of gtk_widget_get_surface by gtk_native_get_surface.
Diffstat (limited to 'gtk/gtktooltip.c')
-rw-r--r--gtk/gtktooltip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c
index 0012e5039d..28c1c718a8 100644
--- a/gtk/gtktooltip.c
+++ b/gtk/gtktooltip.c
@@ -400,7 +400,7 @@ gtk_tooltip_trigger_tooltip_query (GtkWidget *widget)
toplevel = gtk_widget_get_toplevel (widget);
- if (gtk_widget_get_surface (toplevel) != surface)
+ if (gtk_native_get_surface (GTK_NATIVE (toplevel)) != surface)
return;
gtk_widget_translate_coordinates (toplevel, widget, round (x), round (y), &dx, &dy);
@@ -581,7 +581,7 @@ gtk_tooltip_position (GtkTooltip *tooltip,
int anchor_rect_padding;
gtk_widget_realize (GTK_WIDGET (tooltip->current_window));
- surface = _gtk_widget_get_surface (GTK_WIDGET (tooltip->current_window));
+ surface = gtk_native_get_surface (GTK_NATIVE (tooltip->current_window));
tooltip->tooltip_widget = new_tooltip_widget;
@@ -636,7 +636,7 @@ gtk_tooltip_position (GtkTooltip *tooltip,
* If the anchor rectangle isn't to tall, make sure the tooltip isn't too
* far away from the pointer position.
*/
- effective_toplevel = _gtk_widget_get_surface (toplevel);
+ effective_toplevel = gtk_native_get_surface (GTK_NATIVE (toplevel));
gdk_surface_get_device_position (effective_toplevel, device, &px, &py, NULL);
pointer_x = round (px);
pointer_y = round (py);