summaryrefslogtreecommitdiff
path: root/gtk/gtktooltip.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-03-24 22:41:22 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-04-29 14:56:00 -0400
commit0023b9036b9cc384a214c4602b3298f8fb9ec66f (patch)
tree49c63595b69003a379c0c608ca39c98925d94263 /gtk/gtktooltip.c
parent86d2fcef163dc60eba15300840fc1c1fb0ce2fed (diff)
downloadgtk+-0023b9036b9cc384a214c4602b3298f8fb9ec66f.tar.gz
tooltip: Remove an unused gdk_surface_get_root_coords call
The tx and ty variables are not used, so don't bother setting them.
Diffstat (limited to 'gtk/gtktooltip.c')
-rw-r--r--gtk/gtktooltip.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c
index 22a7e68b1f..aaf7fab1f5 100644
--- a/gtk/gtktooltip.c
+++ b/gtk/gtktooltip.c
@@ -689,8 +689,6 @@ gtk_tooltip_show_tooltip (GdkDisplay *display)
tooltip = g_object_get_qdata (G_OBJECT (display), quark_current_tooltip);
{
- gint tx, ty;
-
surface = tooltip->last_surface;
if (!GDK_IS_SURFACE (surface))
@@ -702,7 +700,6 @@ gtk_tooltip_show_tooltip (GdkDisplay *display)
x = round (px);
y = round (py);
- gdk_surface_get_root_coords (surface, x, y, &tx, &ty);
tooltip_widget = _gtk_widget_find_at_coords (surface, x, y, &x, &y);
}