diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-02-28 15:26:52 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-02-28 21:40:23 -0500 |
commit | 0ac71e81cf9e80fc3b7903e98e0c3cb059cb68ca (patch) | |
tree | f3343f04e0173e51cd44e4cd156a4c1abd44743e /gtk/gtktooltip.c | |
parent | 8e1368e6de98dd0414f462c851386573465f331a (diff) | |
download | gtk+-0ac71e81cf9e80fc3b7903e98e0c3cb059cb68ca.tar.gz |
Drop some unused debug printfs
Remove some debug spew that has been ifdef'ed out for years
and does not look useful enough to keep.
Diffstat (limited to 'gtk/gtktooltip.c')
-rw-r--r-- | gtk/gtktooltip.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c index 7a46aee608..a16edaf41c 100644 --- a/gtk/gtktooltip.c +++ b/gtk/gtktooltip.c @@ -88,8 +88,6 @@ */ -#undef DEBUG_TOOLTIP - #define HOVER_TIMEOUT 500 #define BROWSE_TIMEOUT 60 #define BROWSE_DISABLE_TIMEOUT 500 @@ -527,17 +525,6 @@ child_location_foreach (GtkWidget *child, child_loc->x, child_loc->y, &x, &y)) { -#ifdef DEBUG_TOOLTIP - g_print ("candidate: %s alloc=[(%d,%d) %dx%d] (%d, %d)->(%d, %d)\n", - gtk_widget_get_name (child), - child_allocation.x, - child_allocation.y, - child_allocation.width, - child_allocation.height, - child_loc->x, child_loc->y, - x, y); -#endif /* DEBUG_TOOLTIP */ - /* (x, y) relative to child's allocation. */ if (x >= 0 && x < child_allocation.width && y >= 0 && y < child_allocation.height) @@ -636,12 +623,6 @@ _gtk_widget_find_at_coords (GdkWindow *window, if (!event_widget) return NULL; -#ifdef DEBUG_TOOLTIP - g_print ("event window %p (belonging to %p (%s)) (%d, %d)\n", - window, event_widget, gtk_widget_get_name (event_widget), - window_x, window_y); -#endif - /* Coordinates are relative to event window */ child_loc.x = window_x; child_loc.y = window_y; @@ -1465,21 +1446,6 @@ _gtk_tooltip_handle_event (GdkEvent *event) return; } -#ifdef DEBUG_TOOLTIP - if (has_tooltip_widget) - { - GtkAllocation allocation; - gtk_widget_get_allocation (has_tooltip_widget, &allocation); - g_print ("%p (%s) at (%d, %d) %dx%d pointer: (%d, %d)\n", - has_tooltip_widget, gtk_widget_get_name (has_tooltip_widget), - allocation.x, - allocation.y, - allocation.width, - allocation.height, - x, y); - } -#endif /* DEBUG_TOOLTIP */ - /* Always poll for a next motion event */ gdk_event_request_motions (&event->motion); |