diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-10-04 04:15:36 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-10-04 04:15:36 +0800 |
commit | 2634f04217b160d671e11efc6adf64244b022750 (patch) | |
tree | 00a7aa9d2ca463532a5bc305400f53cc32f9a62c /shell/main.c | |
parent | 9186f1f468a17c1c287679a4170011d93d159bc2 (diff) | |
download | gsoc2013-evolution-2634f04217b160d671e11efc6adf64244b022750.tar gsoc2013-evolution-2634f04217b160d671e11efc6adf64244b022750.tar.gz gsoc2013-evolution-2634f04217b160d671e11efc6adf64244b022750.tar.bz2 gsoc2013-evolution-2634f04217b160d671e11efc6adf64244b022750.tar.lz gsoc2013-evolution-2634f04217b160d671e11efc6adf64244b022750.tar.xz gsoc2013-evolution-2634f04217b160d671e11efc6adf64244b022750.tar.zst gsoc2013-evolution-2634f04217b160d671e11efc6adf64244b022750.zip |
Fix contact maps.
I broke contact maps when I removed the settings capplet.
The contact maps feature uses clutter-gtk, so we still need to call
gtk_clutter_init_with_args() instead of gtk_init_with_args() if the
contact maps feature is enabled.
Diffstat (limited to 'shell/main.c')
-rw-r--r-- | shell/main.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/shell/main.c b/shell/main.c index 06edd9bccd..2dbb132f1f 100644 --- a/shell/main.c +++ b/shell/main.c @@ -30,6 +30,10 @@ #include <glib-unix.h> #endif +#ifdef WITH_CONTACT_MAPS +#include <clutter-gtk/clutter-gtk.h> +#endif + #ifdef G_OS_WIN32 #define WIN32_LEAN_AND_MEAN #ifdef DATADIR @@ -512,10 +516,19 @@ main (gint argc, return 0; } + /* The contact maps feature uses clutter-gtk. */ +#ifdef WITH_CONTACT_MAPS + gtk_clutter_init_with_args ( + &argc, &argv, + _("- The Evolution PIM and Email Client"), + entries, (gchar *) GETTEXT_PACKAGE, &error); +#else gtk_init_with_args ( &argc, &argv, _("- The Evolution PIM and Email Client"), entries, (gchar *) GETTEXT_PACKAGE, &error); +#endif /* WITH_CONTACT_MAPS */ + if (error != NULL) { g_printerr ("%s\n", error->message); g_error_free (error); |