summaryrefslogtreecommitdiffstats
path: root/perl-install/ugtk2.pm
diff options
context:
space:
mode:
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;