From 2ca89a76bc4185b4b840256f676c95dd43992d9e Mon Sep 17 00:00:00 2001 From: Emmanuel Rodriguez Date: Sun, 14 Jun 2009 16:11:24 +0200 Subject: [PATCH] Fix a regression: There's no mehtod get_state in Champlain::MapView --- bindings/perl/Champlain/examples/gtk2.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- 2.39.5