X-Git-Url: http://wpitchoune.net/gitweb/?p=psensor.git;a=blobdiff_plain;f=src%2Fmain.c;h=6ac48468a68ecd52ffd70f1da3d281d49dddc891;hp=91fff89ce68702134b53236c1993265d8250e56c;hb=43574b89d00b319eb7d7602e92a9b482ae33d760;hpb=9328406c7c1d0ad546fbb5fab1ea9cf8c9187777 diff --git a/src/main.c b/src/main.c index 91fff89..6ac4846 100644 --- a/src/main.c +++ b/src/main.c @@ -551,7 +551,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);