diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-12-04 14:25:49 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-12-04 14:25:49 +0000 |
commit | 51d6259470fb1d02503a2c0de2c806026d87c396 (patch) | |
tree | 5c7671b3a9121c099648c82007f8615aaaa022c8 /perl-install/my_gtk.pm | |
parent | 823defcb7c1e66a5aafb9d94ca9c7ecef238f12c (diff) | |
download | drakx-backup-do-not-use-51d6259470fb1d02503a2c0de2c806026d87c396.tar drakx-backup-do-not-use-51d6259470fb1d02503a2c0de2c806026d87c396.tar.gz drakx-backup-do-not-use-51d6259470fb1d02503a2c0de2c806026d87c396.tar.bz2 drakx-backup-do-not-use-51d6259470fb1d02503a2c0de2c806026d87c396.tar.xz drakx-backup-do-not-use-51d6259470fb1d02503a2c0de2c806026d87c396.zip |
use if_() where possible (as reported by perl_checker)
Diffstat (limited to 'perl-install/my_gtk.pm')
-rw-r--r-- | perl-install/my_gtk.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/my_gtk.pm b/perl-install/my_gtk.pm index 91b6310d6..12fba09be 100644 --- a/perl-install/my_gtk.pm +++ b/perl-install/my_gtk.pm @@ -161,7 +161,7 @@ sub create_okcancel { my $b1 = gtksignal_connect($w->{ok} = new Gtk::Button($ok), clicked => $w->{ok_clicked} || sub { $w->{retval} = 1; Gtk->main_quit }); my $b2 = $cancel && gtksignal_connect($w->{cancel} = new Gtk::Button($cancel), clicked => $w->{cancel_clicked} || sub { log::l("default cancel_clicked"); undef $w->{retval}; Gtk->main_quit }); $::isWizard and gtksignal_connect($w->{wizcancel} = new Gtk::Button(N("Cancel")), clicked => sub { die 'wizcancel' }); - my @l = grep { $_ } $::isWizard ? ($w->{wizcancel}, $::Wizard_no_previous ? () : $b2, $b1) : ($b1, $b2); + my @l = grep { $_ } $::isWizard ? ($w->{wizcancel}, if_(!$::Wizard_no_previous, $b2, $b1)) : ($b1, $b2); push @l, map { gtksignal_connect(new Gtk::Button($_->[0]), clicked => $_->[1]) } @other; $_->can_default($::isWizard) foreach @l; |