[empathy] Use clutter_get_option_group instead of gtk_clutter_init



commit 129fb769bbaff17cff505c9249d513828454a9d2
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Dec 23 10:36:58 2009 +0000

    Use clutter_get_option_group instead of gtk_clutter_init
    
    clutter_get_option_group will initialize clutter during arguments parsing.
    This avoid to call g_set_prgname twice as it's called once by
    g_option_context_parse and once when initializing clutter.

 src/empathy.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/empathy.c b/src/empathy.c
index 484cc54..ffb22a8 100644
--- a/src/empathy.c
+++ b/src/empathy.c
@@ -913,6 +913,9 @@ main (int argc, char *argv[])
   optcontext = g_option_context_new (N_("- Empathy IM Client"));
   g_option_context_add_group (optcontext, gst_init_get_option_group ());
   g_option_context_add_group (optcontext, gtk_get_option_group (TRUE));
+#if HAVE_LIBCHAMPLAIN
+  g_option_context_add_group (optcontext, clutter_get_option_group ());
+#endif
   g_option_context_add_main_entries (optcontext, options, GETTEXT_PACKAGE);
 
   if (!g_option_context_parse (optcontext, &argc, &argv, &error)) {
@@ -928,10 +931,6 @@ main (int argc, char *argv[])
   g_set_application_name (_(PACKAGE_NAME));
   g_setenv ("PULSE_PROP_media.role", "phone", TRUE);
 
-#if HAVE_LIBCHAMPLAIN
-  gtk_clutter_init (&argc, &argv);
-#endif
-
   gtk_window_set_default_icon_name ("empathy");
   textdomain (GETTEXT_PACKAGE);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]