summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-01-11 08:31:23 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-01-11 08:31:23 +0000
commita58e0bd510b5f82abc7341ce4a9c8ab44f297232 (patch)
tree44791ad3916c1d9eeea64ebb4e08788c5586c061
parent39daceea3f8aa0a297b1886e376f7e4fd2f277dc (diff)
downloaddrakx-a58e0bd510b5f82abc7341ce4a9c8ab44f297232.tar
drakx-a58e0bd510b5f82abc7341ce4a9c8ab44f297232.tar.gz
drakx-a58e0bd510b5f82abc7341ce4a9c8ab44f297232.tar.bz2
drakx-a58e0bd510b5f82abc7341ce4a9c8ab44f297232.tar.xz
drakx-a58e0bd510b5f82abc7341ce4a9c8ab44f297232.zip
help initial positioning of window during install (since position_policy
center-on-parent only works with a window manager, we can't get rid of force_center_at_pos)
-rw-r--r--perl-install/ugtk2.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index b16e682bd..b7d3c63fd 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -943,6 +943,11 @@ sub _create_window {
widget_name => 'Title',
position_policy => !$::isInstall && !$::isStandalone ? 'center_always' : 'center-on-parent',
if_(!$::isInstall, icon_no_error => wm_icon()),
+
+ if_($::isInstall, position => [
+ $::rootwidth - ($::windowwidth + $::real_windowwidth) / 2,
+ $::logoheight + ($::windowheight - $::real_windowheight) / 2,
+ ]),
%options);
if ($force_focus) {