]> err.no Git - libchamplain/commitdiff
Use the accessors instead of setting properties
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Fri, 18 Sep 2009 20:55:17 +0000 (22:55 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Mon, 21 Sep 2009 16:19:45 +0000 (12:19 -0400)
bindings/perl/Champlain/lib/Champlain.pm

index 4185fb980e0a33ee0853ee548a91ef17999caee7..698e719f2831d084dcdab3b04f142207677cf4f1 100644 (file)
@@ -15,9 +15,8 @@ Champlain - Map rendering canvas
        
        # Create the map view and set some properties
        my $map = Champlain::View->new();
-       $map->set('scroll-mode', 'kinetic');
        $map->set_size($stage->get_size);
-       $map->set_property('zoom-level', 7);
+       $map->set_zoom_level(7);
        $map->center_on(45.466, -73.75);
        
        # Pack the actors