diff options
Diffstat (limited to 'perl-install/ugtk.pm')
-rw-r--r-- | perl-install/ugtk.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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 } @_; } |