]> Pileus Git - ~andy/gtk/commit
gdk: Deprecate thread functions
authorMatthias Clasen <mclasen@redhat.com>
Sat, 28 Jul 2012 15:23:17 +0000 (17:23 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 30 Jul 2012 16:01:47 +0000 (18:01 +0200)
commit0ac56e9dcc526d07975feeb1a297640a8452525b
tree8361203874819948489af4780b3661a6b29c18de
parent746b9d7c414884ec68ee46865f58a31afa072ce2
gdk: Deprecate thread functions

This commit deprecates gdk_threads_init, gdk_threads_enter,
gdk_threads_leave and gdk_threads_set_lock_functions. Using GTK+
from multiple threads does not work at all on Windows, and is
problematic on other platforms as well. We want to move to a world
where all GTK+ calls are made from the main thread.
Use g_main_context_invoke, g_idle_add and related functions if you
need to schedule GTK+ calls from other threads.

http://bugzilla.gnome.org/show_bug.cgi?id=680754
gdk/gdk.c
gdk/gdkthreads.h