Disable g_set_prgname()
authorEmmanuele Bassi <ebassi@linux.intel.com>
Sun, 3 Jan 2010 20:12:49 +0000 (20:12 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Sun, 3 Jan 2010 20:14:15 +0000 (20:14 +0000)
Apparently, calling g_set_prgname() multiple times is not allowed
anymore, and hence clutter_init_* calls should not do that. Though this
is really GLib's fault - and a massive nuisance for us - we should
prolly comply to avoid the test suite dying on us.

clutter/clutter-main.c

index 4b749f2..84f5ed6 100644 (file)
@@ -1725,8 +1725,10 @@ clutter_init_with_args (int            *argc,
 
   if (!ctx->defer_display_setup)
     {
+#if 0
       if (argc && *argc > 0 && *argv)
        g_set_prgname ((*argv)[0]);
+#endif
 
       context = g_option_context_new (parameter_string);
 
@@ -1831,8 +1833,10 @@ clutter_init (int    *argc,
 
   if (!ctx->defer_display_setup)
     {
+#if 0
       if (argc && *argc > 0 && *argv)
        g_set_prgname ((*argv)[0]);
+#endif
 
       /* parse_args will trigger backend creation and things like
        * DISPLAY connection etc.