diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-01-11 08:31:23 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-01-11 08:31:23 +0000 |
commit | a58e0bd510b5f82abc7341ce4a9c8ab44f297232 (patch) | |
tree | 44791ad3916c1d9eeea64ebb4e08788c5586c061 /perl-install/ugtk2.pm | |
parent | 39daceea3f8aa0a297b1886e376f7e4fd2f277dc (diff) | |
download | drakx-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)
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r-- | perl-install/ugtk2.pm | 5 |
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) { |