summaryrefslogtreecommitdiff
path: root/gtk/gtktooltip.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-10-22 15:43:43 +0200
committerBastien Nocera <hadess@hadess.net>2013-10-23 13:31:18 +0200
commit438cd857c49242244dda2923ac447f36464b9e72 (patch)
tree9b583fc07a430a739e80d62c73edede9ad019602 /gtk/gtktooltip.c
parentdcc0fd222e78372ce49a8722420ccc7e9e022cdd (diff)
downloadgtk+-438cd857c49242244dda2923ac447f36464b9e72.tar.gz
all: Add names to timeouts
Add names to every timeout we setup, so it's easier to track their usage, and debug possible misbehaviour. https://bugzilla.gnome.org/show_bug.cgi?id=710651
Diffstat (limited to 'gtk/gtktooltip.c')
-rw-r--r--gtk/gtktooltip.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c
index 12e49ae950..7d8a6c5b82 100644
--- a/gtk/gtktooltip.c
+++ b/gtk/gtktooltip.c
@@ -1361,11 +1361,14 @@ gtk_tooltip_hide_tooltip (GtkTooltip *tooltip)
* we want to turn off browse mode
*/
if (!tooltip->browse_mode_timeout_id)
- tooltip->browse_mode_timeout_id =
- gdk_threads_add_timeout_full (0, timeout,
- tooltip_browse_mode_expired,
- g_object_ref (tooltip),
- g_object_unref);
+ {
+ tooltip->browse_mode_timeout_id =
+ gdk_threads_add_timeout_full (0, timeout,
+ tooltip_browse_mode_expired,
+ g_object_ref (tooltip),
+ g_object_unref);
+ g_source_set_name_by_id (tooltip->browse_mode_timeout_id, "[gtk+] tooltip_browse_mode_expired");
+ }
}
else
{
@@ -1430,6 +1433,7 @@ gtk_tooltip_start_delay (GdkDisplay *display)
tooltip_popup_timeout,
g_object_ref (display),
g_object_unref);
+ g_source_set_name_by_id (tooltip->timeout_id, "[gtk+] tooltip_popup_timeout");
}
void