diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-09-10 04:25:05 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-09-10 04:25:05 +0000 |
commit | d96d84bf2e9947708400a926df47e40f2f7c1e78 (patch) | |
tree | 7d52799f9d4122cb4a710585629040d0033ebf8a /perl-install/interactive/gtk.pm | |
parent | e63ab2031600512e28e96c71242a85bb6b145fbf (diff) | |
download | drakx-backup-do-not-use-d96d84bf2e9947708400a926df47e40f2f7c1e78.tar drakx-backup-do-not-use-d96d84bf2e9947708400a926df47e40f2f7c1e78.tar.gz drakx-backup-do-not-use-d96d84bf2e9947708400a926df47e40f2f7c1e78.tar.bz2 drakx-backup-do-not-use-d96d84bf2e9947708400a926df47e40f2f7c1e78.tar.xz drakx-backup-do-not-use-d96d84bf2e9947708400a926df47e40f2f7c1e78.zip |
introduce {more_buttons} to allow the "Release Notes" button. ugly, but it works :-(
Diffstat (limited to 'perl-install/interactive/gtk.pm')
-rw-r--r-- | perl-install/interactive/gtk.pm | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm index 125a23825..1b930f470 100644 --- a/perl-install/interactive/gtk.pm +++ b/perl-install/interactive/gtk.pm @@ -620,16 +620,19 @@ sub ask_fromW { $w->child->set_label($advanced ? $common->{advanced_label_close} : $common->{advanced_label}); } ]; - my @help = if_($common->{interactive_help}, - [ N("Help"), sub { - my $message = $common->{interactive_help}->() or return; - $o->ask_warn(N("Help"), $message); - }, 1 ]); + my @more_buttons = ( + if_($common->{interactive_help}, + [ N("Help"), sub { + my $message = $common->{interactive_help}->() or return; + $o->ask_warn(N("Help"), $message); + }, 1 ]), + if_($common->{more_buttons}, @{$common->{more_buttons}}), + ); if ($::expert && @$l2) { $common->{advanced_state} = 1; $advanced_button->[0] = $common->{advanced_label_close}; } - my $buttons_pack = ($common->{ok} || !exists $common->{ok}) && $mainw->create_okcancel($common->{ok}, $common->{cancel}, '', @help, if_(@$l2, $advanced_button)); + my $buttons_pack = ($common->{ok} || !exists $common->{ok}) && $mainw->create_okcancel($common->{ok}, $common->{cancel}, '', @more_buttons, if_(@$l2, $advanced_button)); my @widgets_to_pack; foreach my $l (\@widgets_always, if_(@widgets_advanced, [ @before_widgets_advanced, @widgets_advanced ])) { |