summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-01-14 22:38:59 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-01-14 22:38:59 +0000
commit44cf3cfe7d7c7f0c1da888db6011c7e72419a0f6 (patch)
tree8cf119bcf8fc8e8f6f744ddcf0af4e74c18b0ace /perl-install
parent56bc888f4040659c7cdd604eae77acb19b36e134 (diff)
downloaddrakx-backup-do-not-use-44cf3cfe7d7c7f0c1da888db6011c7e72419a0f6.tar
drakx-backup-do-not-use-44cf3cfe7d7c7f0c1da888db6011c7e72419a0f6.tar.gz
drakx-backup-do-not-use-44cf3cfe7d7c7f0c1da888db6011c7e72419a0f6.tar.bz2
drakx-backup-do-not-use-44cf3cfe7d7c7f0c1da888db6011c7e72419a0f6.tar.xz
drakx-backup-do-not-use-44cf3cfe7d7c7f0c1da888db6011c7e72419a0f6.zip
MagicWindow is now really magic, {rwindow} and {window} can be the same thing :)
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/ugtk2.pm9
1 files changed, 4 insertions, 5 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index 8cd3d27dd..4e9aaa765 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -840,11 +840,10 @@ sub new {
if_($o->{transient} && $o->{transient} =~ /Gtk2::Window/, transient_for => $o->{transient}),
);
- if ($window->isa('Gtk2::Window')) {
- $o->{rwindow} = $window;
- $o->{pop_it} = 1;
- } else {
- $o->{rwindow} = $o->{window};
+ $o->{rwindow} = $o->{window} = $window;
+ $o->{pop_it} = $window->{pop_it};
+
+ if (!$o->{pop_it}) {
set_main_window_size($o->{window});
$o->{window}->set_border_width(10);
}