all: Name more idles and timeouts

Following up from 438cd857c4,
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
This commit is contained in:
Bastien Nocera
2014-03-22 12:44:01 +01:00
committed by Matthias Clasen
parent 454c485ebe
commit f71f7215ab
23 changed files with 100 additions and 33 deletions

View File

@ -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

View File

@ -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");
}
}

View File

@ -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");
}
}
}

View File

@ -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);