diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-08-19 14:46:34 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-08-19 14:46:34 +0000 |
commit | 1018bda7b5048ea2e8da8efaf15b27abedcb3b2d (patch) | |
tree | 43048e7099af11e9bb2d732223082bd0b62a5f7d /perl-install | |
parent | f12dedeffc187e863999f266e7895ba316fcc816 (diff) | |
download | drakx-backup-do-not-use-1018bda7b5048ea2e8da8efaf15b27abedcb3b2d.tar drakx-backup-do-not-use-1018bda7b5048ea2e8da8efaf15b27abedcb3b2d.tar.gz drakx-backup-do-not-use-1018bda7b5048ea2e8da8efaf15b27abedcb3b2d.tar.bz2 drakx-backup-do-not-use-1018bda7b5048ea2e8da8efaf15b27abedcb3b2d.tar.xz drakx-backup-do-not-use-1018bda7b5048ea2e8da8efaf15b27abedcb3b2d.zip |
(_create_Window) center sub dialogs
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/install/NEWS | 2 | ||||
-rw-r--r-- | perl-install/mygtk2.pm | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index d40160b5f..88dd19bdd 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,3 +1,5 @@ +- center sub dialogs + Version 11.17 - 19 August 2008 - drakx-in-chroot: diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm index 722952025..53e8bbb22 100644 --- a/perl-install/mygtk2.pm +++ b/perl-install/mygtk2.pm @@ -987,7 +987,9 @@ sub _create_Window { if_(!$::isInstall && !$::isWizard, border_width => 5), #- policy: during install, we need a special code to handle the weird centering, see below - position_policy => $::isInstall ? 'none' : $no_Window_Manager ? 'center-always' : 'center-on-parent', + position_policy => $::isInstall ? + ($opts->{transient_for} ? 'center-always' : 'none') : + $no_Window_Manager ? 'center-always' : 'center-on-parent', if_($::isInstall, position => [ $::rootwidth + $::stepswidth - ($::o->{windowwidth} + $::real_windowwidth) / 2, |