From 51d6259470fb1d02503a2c0de2c806026d87c396 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 4 Dec 2002 14:25:49 +0000 Subject: use if_() where possible (as reported by perl_checker) --- perl-install/ugtk.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/ugtk.pm') diff --git a/perl-install/ugtk.pm b/perl-install/ugtk.pm index 3ec92e77f..4e7045835 100644 --- a/perl-install/ugtk.pm +++ b/perl-install/ugtk.pm @@ -112,7 +112,7 @@ sub gtkbuttonset { sub create_pixbutton { my ($label, $pix, $reverse_order) = @_; - gtkadd(new Gtk::Button(), gtkpack_(new Gtk::HBox(0, 3), 1, "", $reverse_order ? (0, $label, $pix ? (0, $pix) : ()) : ($pix ? (0, $pix) : (), 0, $label), 1, "")); + gtkadd(new Gtk::Button(), gtkpack_(new Gtk::HBox(0, 3), 1, "", $reverse_order ? (0, $label, if_($pix, 0, $pix)) : (if_($pix, 0, $pix), 0, $label), 1, "")); } sub gtkentry { @@ -137,7 +137,7 @@ sub gtkcolor { sub gtkradio { my $def = shift; my $radio; - map { $radio = new Gtk::RadioButton($_, $radio ? $radio : ()); + map { $radio = new Gtk::RadioButton($_, if_($radio, $radio)); $radio->set_active($_ eq $def); $radio } @_; } -- cgit v1.2.1