From b8723f134d16fc27718729aef3f55dcdb7547af5 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Tue, 15 May 2012 17:27:00 -0500 Subject: add some links as to where all this magic came from --- xxxterm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xxxterm.c b/xxxterm.c index b084bff..e3e1542 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -7687,12 +7687,16 @@ main(int argc, char **argv) /* prepare gtk */ #ifdef USE_THREADS + /* http://web.archiveorange.com/archive/v/UsPjxkX5PsaXBIoOjqxf */ XInitThreads(); + + /* http://developer.gnome.org/gdk/stable/gdk-Threads.html */ g_thread_init(NULL); gdk_threads_set_lock_functions(mtx_lock, mtx_unlock); gdk_threads_init(); gdk_threads_enter(); + /* http://www.gnupg.org/documentation/manuals/gcrypt/Multi_002dThreading.html */ gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread); #endif gtk_init(&argc, &argv); -- cgit 1.4.1-2-gfad0