From 12eb78bd3f6574ec2cb30f1bda04915f50b51d2f Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 7 Jan 2009 19:04:26 +0000 Subject: allow showing Skip button instead of Cancel in wizards (initially for finish-install in Gdium) --- perl-install/ugtk2.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/ugtk2.pm') diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index 04a4786f1..200e7a188 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -523,7 +523,7 @@ sub create_okcancel { $bprev = $w->{cancel} = gtknew('Button', text => $cancel, clicked => $w->{cancel_clicked} || sub { log::l("default cancel_clicked"); undef $w->{retval}; Gtk2->main_quit }); } - $w->{wizcancel} = gtknew('Button', text => N("Cancel"), clicked => sub { die 'wizcancel' }) if $::isWizard && !$::isInstall && !$::Wizard_no_cancel;; + $w->{wizcancel} = gtknew('Button', text => ($::Wizard_skip ? N("Skip") : N("Cancel")), clicked => sub { die 'wizcancel' }) if $::isWizard && !$::isInstall && !$::Wizard_no_cancel;; if (!defined $wm_is_kde) { require any; my $wm = any::running_window_manager(); -- cgit v1.2.1