]> err.no Git - libchamplain/commitdiff
Fix demos to use new ChamplainMapSource API
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sat, 28 Feb 2009 22:05:34 +0000 (00:05 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Wed, 4 Mar 2009 21:05:37 +0000 (23:05 +0200)
demos/launcher-gtk.c

index 1fb658d1d699bdcee56eb4b92dbddd4fb0909cdf..8f5ed95a55d154406d91347f795088fb94d1f5b1 100644 (file)
@@ -79,11 +79,11 @@ map_source_changed (GtkWidget *widget,
   gchar* selection = gtk_combo_box_get_active_text(GTK_COMBO_BOX(widget));
   if (g_strcmp0(selection, OSM_MAP) == 0)
     {
-      //g_object_set(G_OBJECT(view), "map-source", CHAMPLAIN_MAP_SOURCE_OPENSTREETMAP, NULL);
+      g_object_set(G_OBJECT(view), "map-source", champlain_map_source_new_osm_mapnik (), NULL);
     }
   else if (g_strcmp0(selection, OAM_MAP) == 0)
     {
-      //g_object_set(G_OBJECT(view), "map-source", CHAMPLAIN_MAP_SOURCE_OPENARIALMAP, NULL);
+      g_object_set(G_OBJECT(view), "map-source", champlain_map_source_new_oam (), NULL);
     }
   else if (g_strcmp0(selection, MFF_MAP) == 0)
     {