summaryrefslogtreecommitdiffstats
path: root/perl-install/ugtk2.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-05-11 12:31:46 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-05-11 12:31:46 +0000
commit3e4ad5e1b687f262a1d7cc39a0b905a595ac7f95 (patch)
treeafebab60e5720c4518118f663d0b54cf357a19ef /perl-install/ugtk2.pm
parent0dbcea82bd862926e42e46e3ac2b718ead1205d9 (diff)
downloaddrakx-3e4ad5e1b687f262a1d7cc39a0b905a595ac7f95.tar
drakx-3e4ad5e1b687f262a1d7cc39a0b905a595ac7f95.tar.gz
drakx-3e4ad5e1b687f262a1d7cc39a0b905a595ac7f95.tar.bz2
drakx-3e4ad5e1b687f262a1d7cc39a0b905a595ac7f95.tar.xz
drakx-3e4ad5e1b687f262a1d7cc39a0b905a595ac7f95.zip
perl_checker compliance
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r--perl-install/ugtk2.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index 8407686a7..5bed679b1 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -1498,7 +1498,7 @@ package Gtk2::TreeStore;
sub append_set {
my ($model, $parent, @values) = @_;
# compatibility:
- @values = @{$values[0]} if $#values == 0 && ref($values[0]) eq 'ARRAY';
+ @values = @{$values[0]} if @values == 1 && ref($values[0]) eq 'ARRAY';
my $iter = $model->append($parent);
$model->set($iter, @values);
return $iter;
@@ -1510,7 +1510,7 @@ package Gtk2::ListStore;
sub append_set {
my ($model, @values) = @_;
# compatibility:
- @values = @{$values[0]} if $#values == 0 && ref($values[0]) eq 'ARRAY';
+ @values = @{$values[0]} if @values == 1 && ref($values[0]) eq 'ARRAY';
my $iter = $model->append;
$model->set($iter, @values);
return $iter;