[libchamplain] Show no more than 10 images
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Subject: [libchamplain] Show no more than 10 images
- Date: Sat, 25 Jul 2009 00:16:59 +0000 (UTC)
commit f2d083d6bf9a16f02e5efbea4283a992178503b6
Author: Emmanuel Rodriguez <emmanuel rodriguez gmail com>
Date: Sat Jun 27 23:20:37 2009 +0200
Show no more than 10 images
bindings/perl/Champlain/examples/flickr.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/bindings/perl/Champlain/examples/flickr.pl b/bindings/perl/Champlain/examples/flickr.pl
index fdecdfd..6779b4b 100755
--- a/bindings/perl/Champlain/examples/flickr.pl
+++ b/bindings/perl/Champlain/examples/flickr.pl
@@ -135,7 +135,7 @@ sub flickr_photos_search_callback {
my $doc = $parser->parse_string($xml);
- my @nodes = $doc->findnodes('/rsp/photos/photo[position()]');
+ my @nodes = $doc->findnodes('/rsp/photos/photo[position() < 10]');
my @photos = ();
foreach my $photo_node (@nodes) {
my $id = $photo_node->getAttribute('id');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]