diff options
author | Bastien Nocera <hadess@hadess.net> | 2014-03-22 12:44:01 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-03-26 20:09:30 -0400 |
commit | f71f7215ab31a85bdcc124b1ac6d6c9ca8a6acf1 (patch) | |
tree | 60eaf90866b9c3485115452b2d133f6b986e9bd8 /gdk | |
parent | 454c485ebe9b2d262d2e84d1f16b86c00980e5b9 (diff) | |
download | gtk+-f71f7215ab31a85bdcc124b1ac6d6c9ca8a6acf1.tar.gz |
all: Name more idles and timeouts
Following up from 438cd857c49242244dda2923ac447f36464b9e72,
name more timeouts and idles.
The original grep was missing checking for gdk_threads_add_*()
functions (at least for some of the files).
https://bugzilla.gnome.org/show_bug.cgi?id=726870
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/broadway/gdkwindow-broadway.c | 5 | ||||
-rw-r--r-- | gdk/gdkwindow.c | 11 | ||||
-rw-r--r-- | gdk/quartz/gdkscreen-quartz.c | 7 | ||||
-rw-r--r-- | gdk/x11/gdkasync.c | 12 |
4 files changed, 26 insertions, 9 deletions
diff --git a/gdk/broadway/gdkwindow-broadway.c b/gdk/broadway/gdkwindow-broadway.c index 97cb6cf94c..65ca990aca 100644 --- a/gdk/broadway/gdkwindow-broadway.c +++ b/gdk/broadway/gdkwindow-broadway.c @@ -132,7 +132,10 @@ static void queue_flush (GdkWindow *window) { if (flush_id == 0) - flush_id = gdk_threads_add_idle (flush_idle, NULL); + { + flush_id = gdk_threads_add_idle (flush_idle, NULL); + g_source_set_name_by_id (flush_id, "[gtk+] flush_idle"); + } } static void diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index acecc878c0..6e7bcfdb8e 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -8229,12 +8229,15 @@ _gdk_synthesize_crossing_events_for_geometry_change (GdkWindow *changed_window) if (!toplevel->synthesize_crossing_event_queued) { + guint id; + toplevel->synthesize_crossing_event_queued = TRUE; - gdk_threads_add_idle_full (GDK_PRIORITY_EVENTS - 1, - do_synthesize_crossing_event, - g_object_ref (toplevel), - g_object_unref); + id = gdk_threads_add_idle_full (GDK_PRIORITY_EVENTS - 1, + do_synthesize_crossing_event, + g_object_ref (toplevel), + g_object_unref); + g_source_set_name_by_id (id, "[gtk+] do_synthesize_crossing_event"); } } diff --git a/gdk/quartz/gdkscreen-quartz.c b/gdk/quartz/gdkscreen-quartz.c index e28f3b2737..e4d409023f 100644 --- a/gdk/quartz/gdkscreen-quartz.c +++ b/gdk/quartz/gdkscreen-quartz.c @@ -282,8 +282,11 @@ display_reconfiguration_callback (CGDirectDisplayID display, * yet, so we delay our refresh into an idle handler. */ if (!screen->screen_changed_id) - screen->screen_changed_id = gdk_threads_add_idle (screen_changed_idle, - screen); + { + screen->screen_changed_id = gdk_threads_add_idle (screen_changed_idle, + screen); + g_source_set_name_by_id (screen->screen_changed_id, "[gtk+] screen_changed_idle"); + } } } diff --git a/gdk/x11/gdkasync.c b/gdk/x11/gdkasync.c index 328be08376..bcc6ac75a2 100644 --- a/gdk/x11/gdkasync.c +++ b/gdk/x11/gdkasync.c @@ -171,7 +171,11 @@ send_event_handler (Display *dpy, } if (state->callback) - gdk_threads_add_idle (callback_idle, state); + { + guint id; + id = gdk_threads_add_idle (callback_idle, state); + g_source_set_name_by_id (id, "[gtk+] callback_idle"); + } DeqAsyncHandler(state->dpy, &state->async); @@ -701,7 +705,11 @@ roundtrip_handler (Display *dpy, if (state->callback) - gdk_threads_add_idle (roundtrip_callback_idle, state); + { + guint id; + id = gdk_threads_add_idle (roundtrip_callback_idle, state); + g_source_set_name_by_id (id, "[gtk+] roundtrip_callback_idle"); + } DeqAsyncHandler(state->dpy, &state->async); |