summaryrefslogtreecommitdiffstats
path: root/perl-install/ugtk2.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-12-18 07:55:08 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-12-18 07:55:08 +0000
commit69c5e347d93a748d6ae16c3b9dde00cefa28cacd (patch)
tree86525d5730fb82228cfa33af9d793ee562a15350 /perl-install/ugtk2.pm
parent52253a0a63f8ec39a019428173899450bb4f7894 (diff)
downloaddrakx-69c5e347d93a748d6ae16c3b9dde00cefa28cacd.tar
drakx-69c5e347d93a748d6ae16c3b9dde00cefa28cacd.tar.gz
drakx-69c5e347d93a748d6ae16c3b9dde00cefa28cacd.tar.bz2
drakx-69c5e347d93a748d6ae16c3b9dde00cefa28cacd.tar.xz
drakx-69c5e347d93a748d6ae16c3b9dde00cefa28cacd.zip
fix wizards and draconnect:
it's the same code as in old my_gtk but i don't understand how it could have worked... yet the logic is quite simple : we add the "previous" button only if we're not in the wizard's first page; but the "next/finish" button must still be added, else the wizard is quite unusefull :-(
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r--perl-install/ugtk2.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index 2b8daa848..ca3a179c9 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -440,7 +440,7 @@ sub create_okcancel {
my $b1 = gtksignal_connect($w->{ok} = Gtk2::Button->new($ok), clicked => $w->{ok_clicked} || sub { $w->{retval} = 1; Gtk2->main_quit });
my $b2 = $cancel && gtksignal_connect($w->{cancel} = Gtk2::Button->new($cancel), clicked => $w->{cancel_clicked} || sub { log::l("default cancel_clicked"); undef $w->{retval}; Gtk2->main_quit });
$::isWizard and gtksignal_connect($w->{wizcancel} = Gtk2::Button->new(N("Cancel")), clicked => sub { die 'wizcancel' });
- my @l = grep { $_ } $::isWizard ? ($w->{wizcancel}, if_(!$::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(Gtk2::Button->new($_->[0]), clicked => $_->[1]) } @other;
$_->can_default($::isWizard) foreach @l;