]> err.no Git - libchamplain/commitdiff
The constructor new_with_actor() is now named new_with_image()
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Mon, 13 Apr 2009 20:14:05 +0000 (22:14 +0200)
committerEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Mon, 13 Apr 2009 20:14:05 +0000 (22:14 +0200)
bindings/perl/Champlain/examples/image.pl

index 02a3b733fee498285f5d4a9179bbeb55dc76c141..ca81b00b82709fadcac4b2b89f77c3e58d435395 100755 (executable)
@@ -65,10 +65,9 @@ sub create_marker_layer {
        my $layer = Champlain::Layer->new();
 
        # Download the image as an actor (Clutter::Texture)
-       my $actor = download_texture('http://hexten.net/cpan-faces/potyl.jpg');
+       my $texture = download_texture('http://hexten.net/cpan-faces/potyl.jpg');
 
-       # Transform the pixbuf into a Clutter texture   
-       my $marker = Champlain::Marker->new_with_actor($actor);
+       my $marker = Champlain::Marker->new_with_image($texture);
        $marker->set_position(47.130885, -70.764141);
        $layer->add($marker);