]> err.no Git - libchamplain/commitdiff
API update for the incoming version 0.3
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Mon, 4 May 2009 12:03:45 +0000 (14:03 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Wed, 6 May 2009 03:16:03 +0000 (23:16 -0400)
Remove
  champlain_network_map_source_set_tile_uri
champlain_network_map_source_get_tile

Add
  champlain_network_map_source_fill_tile

bindings/perl/Champlain/t/ChamplainNetworkMapSource.t
bindings/perl/Champlain/xs/ChamplainNetworkMapSource.xs

index 8976778a34ff0329d43ca91fed4309cac3a67874..33fb4ea7522cf239ac223a3444ced3e2d1306cf5 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Clutter::TestHelper tests => 3;
+use Clutter::TestHelper tests => 4;
 
 use Champlain ':coords';
 
@@ -37,12 +37,8 @@ sub test_all {
                "get_tile_uri()"
        );
        
-       
-       # Change the tile URI and check that there's a change
-       $map_source->set_tile_uri('http://www.it-is-not-free.org/hidden/#X#-#Y#_#Z#.png');
-       is(
-               $map_source->get_tile_uri(50, 75, 6),
-               'http://www.it-is-not-free.org/hidden/50-75_6.png',
-               "get_tile_uri() changed"
-       );
+       my $tile = Champlain::Tile->new();
+       is($tile->get_state(), 'init');
+       $map_source->fill_tile($tile);
+       is($tile->get_state(), 'loading');
 }
index 47233e5c7a9165a91f972a8dba0da21703eac4a6..07c0f3315183ca81e00396f6528c75d5e7ba2906 100644 (file)
@@ -13,10 +13,9 @@ const gchar*
 champlain_network_map_source_get_tile_uri (ChamplainNetworkMapSource *source, gint x, gint y, gint z)
 
 
-#void
-#champlain_network_map_source_set_tile_uri (ChamplainNetworkMapSource *source, const gchar *uri_format)
+void
+champlain_network_map_source_set_uri_format (ChamplainNetworkMapSource *source, const gchar *uri_format)
 
 
-#void
-#champlain_network_map_source_get_tile (ChamplainMapSource *source, ChamplainView *view, ChamplainZoomLevel *level, ChamplainTile *tile)
-
+void
+champlain_network_map_source_fill_tile (ChamplainMapSource *source, ChamplainTile *tile)