summaryrefslogtreecommitdiffstats
path: root/perl-install/ugtk2.pm
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-02-19 22:50:38 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-02-19 22:50:38 +0000
commit35fc626e6142cd1be2fb4b60b62ac479452e0612 (patch)
treea669915d4baa9739f1628c6545cc9d4d126da801 /perl-install/ugtk2.pm
parent3c5dd408486689111d9909cda9ea54cbff835b39 (diff)
downloaddrakx-backup-do-not-use-35fc626e6142cd1be2fb4b60b62ac479452e0612.tar
drakx-backup-do-not-use-35fc626e6142cd1be2fb4b60b62ac479452e0612.tar.gz
drakx-backup-do-not-use-35fc626e6142cd1be2fb4b60b62ac479452e0612.tar.bz2
drakx-backup-do-not-use-35fc626e6142cd1be2fb4b60b62ac479452e0612.tar.xz
drakx-backup-do-not-use-35fc626e6142cd1be2fb4b60b62ac479452e0612.zip
set the destroy handler after wizard creation, or the fact that
wizard window will overwrite existing window will also destroy the destroy handler
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r--perl-install/ugtk2.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index 07d6fbfb4..e1a0f11d3 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -746,7 +746,6 @@ sub new {
$o->{rwindow}->set_position('center-always') if $::isStandalone;
$o->{rwindow}->set_modal(1) if ($grab || $o->{grab} || $o->{modal}) && !$::isInstall;
$o->{rwindow}->set_transient_for($o->{transient}) if $o->{transient};
- $o->{rwindow}->signal_connect(destroy => sub { $o->{destroyed} = 1 });
$o->{pop_it} ||= $pop_it || $::WizardTable && do {
my @l = $::WizardTable->get_children;
@@ -819,6 +818,8 @@ sub new {
$::WizardTable->attach($o->{window}, 0, 2, 1, 2, ['fill', 'expand'], ['fill', 'expand'], 0, 0);
}
+ $o->{rwindow}->signal_connect(destroy => sub { $o->{destroyed} = 1 });
+
if ($::isEmbedded && !$o->{pop_it} && !eval { $::Plug && $::Plug->child }) {
$o->{isEmbedded} = 1;
$o->{window} = new Gtk2::HBox(0,0);