From df3e74aff7b9b86b19dd5394e5cf50baaae79607 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 30 Aug 2005 14:36:33 +0000 Subject: we don't want global vars in mygtk2, move $::noborderWhenEmbedded to ugtk2 --- perl-install/mygtk2.pm | 1 - perl-install/ugtk2.pm | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm index 37fa812ec..ad19700b3 100644 --- a/perl-install/mygtk2.pm +++ b/perl-install/mygtk2.pm @@ -503,7 +503,6 @@ sub _gtk__MagicWindow { } set_main_window_size($::WizardWindow); - $sub_child->set_border_width($::noborderWhenEmbedded ? 0 : 10); $w = $::WizardWindow; diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index b4c6ecf0c..39a09dbb5 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -856,6 +856,7 @@ sub new { if_(!$::isInstall, icon_no_error => wm_icon()), if_($o->{transient} && $o->{transient} =~ /Gtk2::Window/, transient_for => $o->{transient}), ); + $window->set_border_width(10) if !$window->{pop_it} && !$::noborderWhenEmbedded; $o->{rwindow} = $o->{window} = $window; $o->{real_window} = $window->{real_window}; -- cgit v1.2.1