summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-08-19 15:07:08 +0000
committerThierry Vignaud <tv@mandriva.org>2008-08-19 15:07:08 +0000
commit8d7883d32825d9e7dab40303d466628763475832 (patch)
treea3b5e81cbef8bc0f8092698f568a7b013119454c
parent186869f271186263eb27c12f94bf83aa249b6eb7 (diff)
downloaddrakx-8d7883d32825d9e7dab40303d466628763475832.tar
drakx-8d7883d32825d9e7dab40303d466628763475832.tar.gz
drakx-8d7883d32825d9e7dab40303d466628763475832.tar.bz2
drakx-8d7883d32825d9e7dab40303d466628763475832.tar.xz
drakx-8d7883d32825d9e7dab40303d466628763475832.zip
(_create_Window) prevent flickering by properly computing window
position (note that $::o->{windowwidth} = $::rootwidth - $::stepswidth)
-rw-r--r--perl-install/install/NEWS1
-rw-r--r--perl-install/mygtk2.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index 37b148d37..d3ed6d8bd 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -1,6 +1,7 @@
- center sub dialogs
- prevent flickering by:
o ignoring bogus size-allocate events
+ o properly computing window position
- stop reducing help & release notes dialogs' size
Version 11.17 - 19 August 2008
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm
index 5a24de514..abd308d54 100644
--- a/perl-install/mygtk2.pm
+++ b/perl-install/mygtk2.pm
@@ -992,7 +992,7 @@ sub _create_Window {
$no_Window_Manager ? 'center-always' : 'center-on-parent',
if_($::isInstall, position => [
- $::rootwidth + $::stepswidth - ($::o->{windowwidth} + $::real_windowwidth) / 2,
+ $::stepswidth + ($::o->{windowwidth} - $::real_windowwidth) / 2,
($::o->{windowheight} - $::real_windowheight) / 2,
]),
});