[gthumb] call gtk_clutter_init instead of clutter_init
- From: Paolo Bacchilega <paobac src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gthumb] call gtk_clutter_init instead of clutter_init
- Date: Thu, 7 Jan 2010 16:19:31 +0000 (UTC)
commit b808983ae3396fcded628ef908992e59eb9b859b
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Jan 7 17:16:48 2010 +0100
call gtk_clutter_init instead of clutter_init
gthumb/main.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/main.c b/gthumb/main.c
index d7b37f8..2c957c1 100644
--- a/gthumb/main.c
+++ b/gthumb/main.c
@@ -377,7 +377,7 @@ main (int argc, char *argv[])
g_option_context_add_group (context, gtk_get_option_group (TRUE));
g_option_context_add_group (context, egg_sm_client_get_option_group ());
#ifdef HAVE_CLUTTER
- g_option_context_add_group (context, clutter_get_option_group ());
+ g_option_context_add_group (context, clutter_get_option_group_without_init ());
#endif
if (! g_option_context_parse (context, &argc, &argv, &error)) {
g_critical ("Failed to parse arguments: %s", error->message);
@@ -385,7 +385,11 @@ main (int argc, char *argv[])
g_option_context_free (context);
return EXIT_FAILURE;
}
- g_option_context_free (context);
+
+#ifdef HAVE_CLUTTER
+ if (gtk_clutter_init (NULL, NULL) != CLUTTER_INIT_SUCCESS)
+ g_error ("Unable to initialize GtkClutter");
+#endif
if (version) {
g_printf ("%s %s, Copyright (C) 2001-2009 Free Software Foundation, Inc.\n", PACKAGE_NAME, PACKAGE_VERSION);
@@ -399,6 +403,8 @@ main (int argc, char *argv[])
gth_main_initialize ();
prepare_application ();
+ g_option_context_free (context);
+
if (! unique_app_is_running (gthumb_app)) {
gdk_threads_enter ();
gtk_main ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]