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/gtkimage.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/gtkimage.c')
-rw-r--r-- | gtk/gtkimage.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c index 5128c0e35d..344972e94b 100644 --- a/gtk/gtkimage.c +++ b/gtk/gtkimage.c @@ -1480,6 +1480,7 @@ animation_timeout (gpointer data) priv->animation_timeout = gdk_threads_add_timeout (delay, animation_timeout, image); + g_source_set_name_by_id (priv->animation_timeout, "[gtk+] animation_timeout"); gtk_widget_queue_draw (widget); } @@ -1500,9 +1501,11 @@ get_animation_frame (GtkImage *image) gdk_pixbuf_animation_get_iter (_gtk_icon_helper_peek_animation (priv->icon_helper), NULL); delay = gdk_pixbuf_animation_iter_get_delay_time (priv->animation_iter); - if (delay >= 0) + if (delay >= 0) { priv->animation_timeout = gdk_threads_add_timeout (delay, animation_timeout, image); + g_source_set_name_by_id (priv->animation_timeout, "[gtk+] animation_timeout"); + } } /* don't advance the anim iter here, or we could get frame changes between two |