[libchamplain: 36/39] Tell the Champlain::View to take the whole canvas
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libchamplain: 36/39] Tell the Champlain::View to take the whole canvas
- Date: Mon, 21 Sep 2009 16:26:45 +0000 (UTC)
commit 6de05673a166fbb46a366c0be65ec1541dba313f
Author: Emmanuel Rodriguez <emmanuel rodriguez gmail com>
Date: Fri Sep 18 22:52:46 2009 +0200
Tell the Champlain::View to take the whole canvas
bindings/perl/Champlain/lib/Champlain.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/bindings/perl/Champlain/lib/Champlain.pm b/bindings/perl/Champlain/lib/Champlain.pm
index c92988e..4185fb9 100644
--- a/bindings/perl/Champlain/lib/Champlain.pm
+++ b/bindings/perl/Champlain/lib/Champlain.pm
@@ -16,7 +16,7 @@ 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(800, 600);
+ $map->set_size($stage->get_size);
$map->set_property('zoom-level', 7);
$map->center_on(45.466, -73.75);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]