[libchamplain] Fix a regression: There's no mehtod get_state in Champlain::MapView



commit 2ca89a76bc4185b4b840256f676c95dd43992d9e
Author: Emmanuel Rodriguez <emmanuel rodriguez gmail com>
Date:   Sun Jun 14 16:11:24 2009 +0200

    Fix a regression: There's no mehtod get_state in Champlain::MapView

 bindings/perl/Champlain/examples/gtk2.pl |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
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 {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]