summaryrefslogtreecommitdiff
path: root/gtk/gtkclipboard.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/gtkclipboard.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/gtkclipboard.c')
-rw-r--r--gtk/gtkclipboard.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkclipboard.c b/gtk/gtkclipboard.c
index e2c0ace928..7da643db5c 100644
--- a/gtk/gtkclipboard.c
+++ b/gtk/gtkclipboard.c
@@ -2148,6 +2148,7 @@ gtk_clipboard_real_store (GtkClipboard *clipboard)
clipboard->store_loop = g_main_loop_new (NULL, TRUE);
clipboard->store_timeout = g_timeout_add_seconds (10, (GSourceFunc) gtk_clipboard_store_timeout, clipboard);
+ g_source_set_name_by_id (clipboard->store_timeout, "[gtk+] gtk_clipboard_store_timeout");
if (g_main_loop_is_running (clipboard->store_loop))
{