From: Emmanuel Rodriguez Date: Fri, 18 Sep 2009 20:55:17 +0000 (+0200) Subject: Use the accessors instead of setting properties X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c71aac15c9943d4039a75d16764ffaffbdd2f864;p=libchamplain Use the accessors instead of setting properties --- diff --git a/bindings/perl/Champlain/lib/Champlain.pm b/bindings/perl/Champlain/lib/Champlain.pm index 4185fb9..698e719 100644 --- a/bindings/perl/Champlain/lib/Champlain.pm +++ b/bindings/perl/Champlain/lib/Champlain.pm @@ -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