]> err.no Git - libchamplain/commitdiff
Fix compile warnings
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Mon, 13 Oct 2008 18:33:04 +0000 (14:33 -0400)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Mon, 13 Oct 2008 18:33:04 +0000 (14:33 -0400)
champlain-gtk/launcher.c

index ab63c116edd9dbb4f9f69007e3f813a0d7776878..4ac7f49a853846e3032a4518f1d3d2ca8f4e14f4 100644 (file)
@@ -21,6 +21,8 @@
 #include <gtk/gtk.h>
 
 #include <champlain/champlain.h>
+#include <champlain-gtk/champlainviewembed.h>
+#include <clutter-gtk/gtk-clutter-embed.h>
 
 #define OSM_MAP "Open Street Map"
 #define OAM_MAP "Open Arial Map"
@@ -143,10 +145,10 @@ main (int argc, char *argv[])
   vbox = gtk_vbox_new(FALSE, 10);
   
   view = champlain_view_new (CHAMPLAIN_VIEW_MODE_KINETIC);
-  widget = champlain_view_embed_new(view);
+  widget = champlain_view_embed_new(CHAMPLAIN_VIEW (view));
   g_object_set(G_OBJECT(view), "zoom-level", 5, NULL);
   layer = create_marker_layer();
-  champlain_view_add_layer(view, layer);
+  champlain_view_add_layer(CHAMPLAIN_VIEW (view), layer);
   
   gtk_widget_set_size_request(widget, 640, 480);