summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordamien <damien@mandriva.com>2001-02-28 07:39:03 +0000
committerdamien <damien@mandriva.com>2001-02-28 07:39:03 +0000
commite80f9075577d0ad9861adc53e9d9100e31181a09 (patch)
tree4116a66f814709b78e61739bb2a68dcb85883920
parentc0c551b17755a4fa0edb824388bf0fc617477d20 (diff)
downloaddrakx-backup-do-not-use-e80f9075577d0ad9861adc53e9d9100e31181a09.tar
drakx-backup-do-not-use-e80f9075577d0ad9861adc53e9d9100e31181a09.tar.gz
drakx-backup-do-not-use-e80f9075577d0ad9861adc53e9d9100e31181a09.tar.bz2
drakx-backup-do-not-use-e80f9075577d0ad9861adc53e9d9100e31181a09.tar.xz
drakx-backup-do-not-use-e80f9075577d0ad9861adc53e9d9100e31181a09.zip
added finish button handler in wizard mode
-rw-r--r--perl-install/my_gtk.pm2
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 });