From 47f84c9c76366da2fefff0fd29d57712c695bc68 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 25 Oct 2011 14:24:10 -0400 Subject: Check if glib needs g_thread_init Newer glib versions don't need g_thread_init. Of course, there is no announcement or whatever, so you have to go to the docs to discover this. Nevermind the lack of backwards compatibility with a nice message about when it will be removed for a while either. --- src/uzbl-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/uzbl-core.c b/src/uzbl-core.c index f90c5dd..f756740 100644 --- a/src/uzbl-core.c +++ b/src/uzbl-core.c @@ -962,9 +962,10 @@ initialize(int argc, char** argv) { if (uzbl.state.socket_id || uzbl.state.embed) uzbl.state.plug_mode = TRUE; +#ifndef UZBL_GTHREAD_NO_INIT if (!g_thread_supported()) g_thread_init(NULL); - +#endif /* TODO: move the handler setup to event_buffer_timeout and disarm the * handler in empty_event_buffer? */ -- cgit v1.2.3