diff options
author | damien <damien@mandriva.com> | 2001-02-28 07:39:03 +0000 |
---|---|---|
committer | damien <damien@mandriva.com> | 2001-02-28 07:39:03 +0000 |
commit | e80f9075577d0ad9861adc53e9d9100e31181a09 (patch) | |
tree | 4116a66f814709b78e61739bb2a68dcb85883920 /perl-install/my_gtk.pm | |
parent | c0c551b17755a4fa0edb824388bf0fc617477d20 (diff) | |
download | drakx-e80f9075577d0ad9861adc53e9d9100e31181a09.tar drakx-e80f9075577d0ad9861adc53e9d9100e31181a09.tar.gz drakx-e80f9075577d0ad9861adc53e9d9100e31181a09.tar.bz2 drakx-e80f9075577d0ad9861adc53e9d9100e31181a09.tar.xz drakx-e80f9075577d0ad9861adc53e9d9100e31181a09.zip |
added finish button handler in wizard mode
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 bb9b38f76..27fc5e5ab 100644 --- a/perl-install/my_gtk.pm +++ b/perl-install/my_gtk.pm @@ -293,7 +293,7 @@ sub create_okcancel { my ($w, $ok, $cancel, $spread, @other) = @_; my $one = ($ok xor $cancel); $spread ||= $::isWizard ? "end" : "spread"; - $ok ||= $::isWizard ? _("Next ->") : _("Ok"); + $ok ||= $::isWizard ? ($::Wizard_finished ? _("Finish") : _("Next ->")) : _("Ok"); $cancel ||= $::isWizard ? _("<- Previous") : _("Cancel"); my $b1 = gtksignal_connect($w->{ok} = new Gtk::Button($ok), clicked => $w->{ok_clicked} || sub { $w->{retval} = 1; Gtk->main_quit }); my $b2 = !$one && gtksignal_connect($w->{cancel} = new Gtk::Button($cancel), clicked => $w->{cancel_clicked} || sub { log::l("default cancel_clicked"); undef $w->{retval}; Gtk->main_quit }); |