diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2018-02-02 15:51:47 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2018-02-03 12:06:58 +0100 |
commit | c655759cefa56efdb0cb943bb5dada3ff75a963c (patch) | |
tree | ef945ea7131b6419d00828fa8661d86691563d83 /tests/testcombo.c | |
parent | 334acbfc39cc08869932ec046e4d13e6c4b64be6 (diff) | |
download | gtk+-c655759cefa56efdb0cb943bb5dada3ff75a963c.tar.gz |
Replace gdk_threads_add_timeout* with g_timeout_add()
The main GDK thread lock is not portable and deprecated.
The only reason why gdk_threads_add_timeout() and
gdk_threads_add_timeout_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 timeout callbacks.
https://bugzilla.gnome.org/show_bug.cgi?id=793124
Diffstat (limited to 'tests/testcombo.c')
-rw-r--r-- | tests/testcombo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testcombo.c b/tests/testcombo.c index a56c3b98c3..e60e361d06 100644 --- a/tests/testcombo.c +++ b/tests/testcombo.c @@ -1347,7 +1347,7 @@ main (int argc, char **argv) gtk_combo_box_set_active_iter (GTK_COMBO_BOX (combobox), &iter); #if 1 - gdk_threads_add_timeout (1000, (GSourceFunc) capital_animation, model); + g_timeout_add (1000, (GSourceFunc) capital_animation, model); #endif /* Aligned Food */ |