]> err.no Git - libchamplain/commitdiff
Fix a regression: There's no mehtod get_state in Champlain::MapView
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Sun, 14 Jun 2009 14:11:24 +0000 (16:11 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sun, 14 Jun 2009 15:11:18 +0000 (11:11 -0400)
bindings/perl/Champlain/examples/gtk2.pl

index dc8161786259e3ff62c0ca090db7a05be0ef968f..0e8b195e9ba2e14fb01eca2c504683cd09772ade 100755 (executable)
@@ -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 {