summaryrefslogtreecommitdiffstats
path: root/perl-install/ugtk2.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-02-10 10:40:49 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-02-10 10:40:49 +0000
commit612647181992574ae1a8d9e2425a898e66d2e493 (patch)
treeb14e9fb858f02396a6e2106cadf78774385835e9 /perl-install/ugtk2.pm
parent7024adeddd401abbb6a2493cf9d7191823fe8201 (diff)
downloaddrakx-612647181992574ae1a8d9e2425a898e66d2e493.tar
drakx-612647181992574ae1a8d9e2425a898e66d2e493.tar.gz
drakx-612647181992574ae1a8d9e2425a898e66d2e493.tar.bz2
drakx-612647181992574ae1a8d9e2425a898e66d2e493.tar.xz
drakx-612647181992574ae1a8d9e2425a898e66d2e493.zip
better code for detecting if the window is hidden or not
(fixes embedded drakconnect wizard should be popped window) (bugzilla #7246)
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r--perl-install/ugtk2.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index a76dd695e..a47b77a06 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -872,9 +872,8 @@ sub new {
$o->{isEmbedded} ||= $::isEmbedded;
$o->{pop_it} ||= $pop_it || !$o->{isWizard} && !$o->{isEmbedded} || $::WizardTable && do {
- my @l = $::WizardTable->get_children;
- pop @l if !$::isInstall && $o->{isWizard}; #- don't take into account the DrawingArea
- any { $_->visible } @l;
+ #- don't take into account the DrawingArea
+ any { !$_->isa('Gtk2::DrawingArea') && $_->visible } $::WizardTable->get_children;
};
if ($o->{pop_it}) {