diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-10-22 15:43:43 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-10-23 13:31:18 +0200 |
commit | 438cd857c49242244dda2923ac447f36464b9e72 (patch) | |
tree | 9b583fc07a430a739e80d62c73edede9ad019602 /gtk/gtknotebook.c | |
parent | dcc0fd222e78372ce49a8722420ccc7e9e022cdd (diff) | |
download | gtk+-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/gtknotebook.c')
-rw-r--r-- | gtk/gtknotebook.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 2b0f914362..9e0944b3d7 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -3459,6 +3459,7 @@ gtk_notebook_motion_notify (GtkWidget *widget, priv->dnd_timer = gdk_threads_add_timeout (TIMEOUT_REPEAT * SCROLL_DELAY_FACTOR, scroll_notebook_timer, (gpointer) notebook); + g_source_set_name_by_id (priv->dnd_timer, "[gtk+] scroll_notebook_timer"); } } else @@ -3814,6 +3815,7 @@ gtk_notebook_drag_motion (GtkWidget *widget, priv->switch_tab_timer = gdk_threads_add_timeout (TIMEOUT_EXPAND, gtk_notebook_switch_tab_timeout, widget); + g_source_set_name_by_id (priv->switch_tab_timer, "[gtk+] gtk_notebook_switch_tab_timeout"); } } else @@ -4871,6 +4873,7 @@ gtk_notebook_timer (GtkNotebook *notebook) priv->timer = gdk_threads_add_timeout (TIMEOUT_REPEAT * SCROLL_DELAY_FACTOR, (GSourceFunc) gtk_notebook_timer, (gpointer) notebook); + g_source_set_name_by_id (priv->timer, "[gtk+] gtk_notebook_timer"); } else retval = TRUE; @@ -4889,6 +4892,7 @@ gtk_notebook_set_scroll_timer (GtkNotebook *notebook) priv->timer = gdk_threads_add_timeout (TIMEOUT_INITIAL, (GSourceFunc) gtk_notebook_timer, (gpointer) notebook); + g_source_set_name_by_id (priv->timer, "[gtk+] gtk_notebook_timer"); priv->need_timer = TRUE; } } |