From: Pierre-Luc Beaudoin Date: Mon, 13 Oct 2008 18:33:04 +0000 (-0400) Subject: Fix compile warnings X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5917f6f821235e7abe21aac2fd8c2d937959ff48;p=libchamplain Fix compile warnings --- diff --git a/champlain-gtk/launcher.c b/champlain-gtk/launcher.c index ab63c11..4ac7f49 100644 --- a/champlain-gtk/launcher.c +++ b/champlain-gtk/launcher.c @@ -21,6 +21,8 @@ #include #include +#include +#include #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);