X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor-pkg-ubuntu.git;a=blobdiff_plain;f=src%2Fmain.c;h=9106b59e4824fc83df3efbe6edcbe79493c58145;hp=99d249e85eb1934f87e731a77f40fe352c5a6a1e;hb=7445116cfceaaa6081d33829a2c6cfdb08912b8c;hpb=c271a4d106a1242ff18b6f5aeb3f56280c7eaf2c 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);