diff src/main.c @ 1602:6bfe8fc7a403

added GPS map support - patch by Colin Clark
author nadvornik
date Tue, 12 May 2009 18:25:18 +0000
parents 6c2e31dad7ef
children 62521de19763
line wrap: on
line diff
--- a/src/main.c	Mon May 11 20:50:13 2009 +0000
+++ b/src/main.c	Tue May 12 18:25:18 2009 +0000
@@ -37,6 +37,11 @@
 #include "pixbuf_util.h"
 
 #include <gdk/gdkkeysyms.h> /* for keyboard values */
+#ifdef HAVE_LIBCHAMPLAIN
+#ifdef HAVE_LIBCHAMPLAIN_GTK
+#include <clutter-gtk/gtk-clutter-embed.h>
+#endif
+#endif
 
 #include <signal.h>
 #include <sys/mman.h>
@@ -748,7 +753,16 @@
 	file_data_register_notify_func(collect_manager_notify_cb, NULL, NOTIFY_PRIORITY_LOW);
 
 	gtkrc_load();
+	 
+#ifdef HAVE_LIBCHAMPLAIN
+#ifdef HAVE_LIBCHAMPLAIN_GTK
+	gtk_clutter_init(&argc, &argv);
+#else
 	gtk_init(&argc, &argv);
+#endif
+#else
+	gtk_init(&argc, &argv);
+#endif
 
 	if (gtk_major_version < GTK_MAJOR_VERSION ||
 	    (gtk_major_version == GTK_MAJOR_VERSION && gtk_minor_version < GTK_MINOR_VERSION) )