summaryrefslogtreecommitdiffstats
path: root/perl-install/ugtk2.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-01-31 14:36:27 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-01-31 14:36:27 +0000
commitb521c7bf17b0440c01f1ad9d6c90f591a9c77d5f (patch)
treecea0fc04b9f4af15133a6977f9f070107090fc45 /perl-install/ugtk2.pm
parent032dd82bc486aafc4647edc3442f1e5f431525dd (diff)
downloaddrakx-backup-do-not-use-b521c7bf17b0440c01f1ad9d6c90f591a9c77d5f.tar
drakx-backup-do-not-use-b521c7bf17b0440c01f1ad9d6c90f591a9c77d5f.tar.gz
drakx-backup-do-not-use-b521c7bf17b0440c01f1ad9d6c90f591a9c77d5f.tar.bz2
drakx-backup-do-not-use-b521c7bf17b0440c01f1ad9d6c90f591a9c77d5f.tar.xz
drakx-backup-do-not-use-b521c7bf17b0440c01f1ad9d6c90f591a9c77d5f.zip
handle pop_it more nicely: no need to precise pop_it when the wizard window already has a window,
that way, two dialog boxes won't merge in the same window (which is dumb!)
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r--perl-install/ugtk2.pm9
1 files changed, 6 insertions, 3 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index 16a9db1a2..192b8d95a 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -438,7 +438,7 @@ sub create_packtable {
sub create_okcancel {
my ($w, $ok, $cancel, $spread, @other) = @_;
- my $wizard_buttons = $::isWizard && !$pop_it;
+ my $wizard_buttons = $::isWizard && !$w->{pop_it};
$spread ||= $wizard_buttons ? "end" : "spread";
$cancel = $wizard_buttons ? N("<- Previous") : N("Cancel") if !defined $cancel && !defined $ok;
$ok = $wizard_buttons ? ($::Wizard_finished ? N("Finish") : N("Next ->")) : N("Ok") if !defined $ok;
@@ -721,7 +721,10 @@ sub new {
$o->{rwindow}->set_modal(1) if $grab || $o->{grab} || $o->{modal};
$o->{rwindow}->set_transient_for($o->{transient}) if $o->{transient};
- if ($::isWizard && !$pop_it) {
+
+ $o->{pop_it} ||= $pop_it || $::WizardTable && listlength($::WizardTable->get_children);
+
+ if ($::isWizard && !$o->{pop_it}) {
$o->{isWizard} = 1;
$o->{window} = Gtk2::VBox->new(0,0);
$o->{window}->set_border_width($::Wizard_splash ? 0 : 10);
@@ -788,7 +791,7 @@ sub new {
$::WizardTable->attach($o->{window}, 0, 2, 1, 2, ['fill', 'expand'], ['fill', 'expand'], 0, 0);
}
- if ($::isEmbedded && !$pop_it && !eval { $::Plug && $::Plug->child }) {
+ if ($::isEmbedded && !$o->{pop_it} && !eval { $::Plug && $::Plug->child }) {
$o->{isEmbedded} = 1;
$o->{window} = new Gtk2::HBox(0,0);
$o->{rwindow} = $o->{window};