~cairo-dock-team/cairo-dock-core/3.1.x

« back to all changes in this revision

Viewing changes to src/cairo-dock.c

  • Committer: Matthieu Baerts
  • Date: 2012-12-01 22:18:46 UTC
  • Revision ID: matttbe@gmail.com-20121201221846-31bn25z1lzw1jlyw
Merge rev 1280 from Trunk
Init: use g_type_init which should initialise threads on new versions of GLib (>= 2.24)
 This should finally fix a crash when opening Logout menu

Show diffs side-by-side

added added

removed removed

Lines of Context:
293
293
        
294
294
        
295
295
        // init lib
296
 
        #if (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 32)  // from 2.32, the thread system is automatically enabled
 
296
        g_type_init (); // should initialise threads too on new versions of GLIB (>= 2.24)
 
297
        #if (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 24)
297
298
        if (!g_thread_supported ())
298
299
                g_thread_init (NULL);
299
300
        #endif
300
 
        
301
 
        dbus_g_thread_init ();
 
301
 
 
302
        dbus_g_thread_init (); // it's a wrapper: it will use dbus_threads_init_default ();
302
303
        
303
304
        gtk_init (&argc, &argv);
304
305