diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-08-13 09:03:40 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-08-13 09:03:40 -0400 |
commit | 98089778df1c9a5cdef349feaab573fc3ca7d1f6 (patch) | |
tree | 67160f3aa909b91f925b010140dd24da9500acdc /gtk/gtkgesturelongpress.c | |
parent | 5b23fd32f1a3a68c723c9ecdcf863d2c33c99af1 (diff) | |
download | gtk+-98089778df1c9a5cdef349feaab573fc3ca7d1f6.tar.gz |
Add names to more sources
This makes debugging mainloop-related issues more pleasant.
Diffstat (limited to 'gtk/gtkgesturelongpress.c')
-rw-r--r-- | gtk/gtkgesturelongpress.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/gtkgesturelongpress.c b/gtk/gtkgesturelongpress.c index 8cbcce76e7..de4ff7994f 100644 --- a/gtk/gtkgesturelongpress.c +++ b/gtk/gtkgesturelongpress.c @@ -137,10 +137,8 @@ gtk_gesture_long_press_begin (GtkGesture *gesture, gtk_gesture_get_point (gesture, sequence, &priv->initial_x, &priv->initial_y); - priv->timeout_id = - gdk_threads_add_timeout (delay, - _gtk_gesture_long_press_timeout, - gesture); + priv->timeout_id = gdk_threads_add_timeout (delay, _gtk_gesture_long_press_timeout, gesture); + g_source_set_name_by_id (priv->timeout_id, "[gtk+] _gtk_gesture_long_press_timeout"); } static void |