summaryrefslogtreecommitdiff
path: root/gtk/gtkiconview.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/gtkiconview.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/gtkiconview.c')
-rw-r--r--gtk/gtkiconview.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 224f34dd70..7c19d2ee02 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -2022,9 +2022,11 @@ gtk_icon_view_motion (GtkWidget *widget,
icon_view->priv->event_last_x = event->x;
icon_view->priv->event_last_y = event->y;
- if (icon_view->priv->scroll_timeout_id == 0)
+ if (icon_view->priv->scroll_timeout_id == 0) {
icon_view->priv->scroll_timeout_id = gdk_threads_add_timeout (30, rubberband_scroll_timeout,
icon_view);
+ g_source_set_name_by_id (icon_view->priv->scroll_timeout_id, "[gtk+] rubberband_scroll_timeout");
+ }
}
else
remove_scroll_timeout (icon_view);
@@ -6668,6 +6670,7 @@ gtk_icon_view_drag_motion (GtkWidget *widget,
icon_view->priv->scroll_timeout_id =
gdk_threads_add_timeout_full (G_PRIORITY_DEFAULT, 50, drag_scroll_timeout, data, (GDestroyNotify) drag_scroll_data_free);
+ g_source_set_name_by_id (icon_view->priv->scroll_timeout_id, "[gtk+] drag_scroll_timeout");
}
if (target == gdk_atom_intern_static_string ("GTK_TREE_MODEL_ROW"))