summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2018-02-02 15:08:02 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2018-02-03 12:06:58 +0100
commit334acbfc39cc08869932ec046e4d13e6c4b64be6 (patch)
tree006f9525b16e22231dde569193617bc62182ccda /testsuite
parentdfc131c7ecf93287caef22ddac9b37b4825b2cf5 (diff)
downloadgtk+-334acbfc39cc08869932ec046e4d13e6c4b64be6.tar.gz
Replace gdk_threads_add_idle* with g_idle_add()
The main GDK thread lock is not portable and deprecated. The only reason why gdk_threads_add_idle() and gdk_threads_add_idle_full() exist is to allow invoking a callback with the GDK lock held, in case 3rd party libraries still use the deprecated gdk_threads_enter()/gdk_threads_leave() API. Since we're removing the GDK lock, and we're releasing a new major API, such code cannot exist any more; this means we can use the GLib API for installing idle callbacks. https://bugzilla.gnome.org/show_bug.cgi?id=793124
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/a11y/tree-relationships.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/a11y/tree-relationships.c b/testsuite/a11y/tree-relationships.c
index 34f45b690a..e23f7b5bd9 100644
--- a/testsuite/a11y/tree-relationships.c
+++ b/testsuite/a11y/tree-relationships.c
@@ -219,7 +219,7 @@ static void
process_pending_idles ()
{
GMainLoop *loop = g_main_loop_new (NULL, FALSE);
- gdk_threads_add_idle (quit_loop, loop);
+ g_idle_add (quit_loop, loop);
g_main_loop_run (loop);
}