From: Emmanuel Rodriguez Date: Sun, 14 Jun 2009 14:11:24 +0000 (+0200) Subject: Fix a regression: There's no mehtod get_state in Champlain::MapView X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ca89a76bc4185b4b840256f676c95dd43992d9e;p=libchamplain Fix a regression: There's no mehtod get_state in Champlain::MapView --- diff --git a/bindings/perl/Champlain/examples/gtk2.pl b/bindings/perl/Champlain/examples/gtk2.pl index dc81617..0e8b195 100755 --- a/bindings/perl/Champlain/examples/gtk2.pl +++ b/bindings/perl/Champlain/examples/gtk2.pl @@ -80,7 +80,8 @@ sub main { my $image = Gtk2::Image->new_from_stock('gtk-network', 'button'); $map->signal_connect('notify::state', sub { - if ($map->get_state eq 'loading') { + my $state = $map->get('state'); + if ($state eq 'loading') { $image->show(); } else {