X-Git-Url: http://wpitchoune.net/gitweb/?p=psensor-pkg-debian.git;a=blobdiff_plain;f=src%2Fmain.c;h=9106b59e4824fc83df3efbe6edcbe79493c58145;hp=99d249e85eb1934f87e731a77f40fe352c5a6a1e;hb=c7769a33301029863318e7a94eb52aa13c0d3620;hpb=ec32d69fa628fd396e89cf7d57432d509f28c5ae diff --git a/src/main.c b/src/main.c index 99d249e..9106b59 100644 --- a/src/main.c +++ b/src/main.c @@ -555,7 +555,16 @@ int main(int argc, char **argv) g_thread_init(NULL); #endif +#ifdef HAVE_APPINDICATOR_029 + /* gdk_thread_enter/leave only used to workaround mutex bug + * of appindicator < 0.2.9, so do not call gdk_threads_init + * if useless. Calling this function leads to + * crash "Attempt to unlock mutex that was not locked" with + * GLib 2.41.2 (new checking) probably due to bugs in GTK + * itself. + */ gdk_threads_init(); +#endif gtk_init(NULL, NULL);