diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-01-22 18:37:25 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-01-22 18:37:25 +0000 |
commit | ad8ccaa26e21ce2a271a8163abd477cce6a965c4 (patch) | |
tree | bf89cf97f5ce0bc51873c208275e49ddce78e840 /perl-install/ugtk2.pm | |
parent | 415951abd4368a86588eef302b6db1b3fc3394b9 (diff) | |
download | drakx-ad8ccaa26e21ce2a271a8163abd477cce6a965c4.tar drakx-ad8ccaa26e21ce2a271a8163abd477cce6a965c4.tar.gz drakx-ad8ccaa26e21ce2a271a8163abd477cce6a965c4.tar.bz2 drakx-ad8ccaa26e21ce2a271a8163abd477cce6a965c4.tar.xz drakx-ad8ccaa26e21ce2a271a8163abd477cce6a965c4.zip |
minor cleanups
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r-- | perl-install/ugtk2.pm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index 588e9cac0..de786a1a6 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -99,8 +99,7 @@ sub gtkset_line_wrap { $_[0]->set_line_wrap($_[1]); $_[0] } sub gtkadd { my $w = shift; - foreach (@_) { - my $l = $_; + foreach my $l (@_) { ref $l or $l = Gtk2::Label->new($l); $w->add(gtkshow($l)); } @@ -119,8 +118,7 @@ sub gtkadd_widget { sub gtkappend { my $w = shift; - foreach (@_) { - my $l = $_; + foreach my $l (@_) { ref $l or $l = Gtk2::Label->new($l); $w->append(gtkshow($l)); } |