diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-08-22 14:09:53 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-08-22 14:09:53 +0000 |
commit | e6f37b08b1b3bd01f6669a43ec221d01bf956054 (patch) | |
tree | 13bfa6e06212ea7738f8026a613b3004a0439575 /perl-install/interactive/gtk.pm | |
parent | e2425d3b80f9154e5e0b44bdc09867adea6c3132 (diff) | |
download | drakx-e6f37b08b1b3bd01f6669a43ec221d01bf956054.tar drakx-e6f37b08b1b3bd01f6669a43ec221d01bf956054.tar.gz drakx-e6f37b08b1b3bd01f6669a43ec221d01bf956054.tar.bz2 drakx-e6f37b08b1b3bd01f6669a43ec221d01bf956054.tar.xz drakx-e6f37b08b1b3bd01f6669a43ec221d01bf956054.zip |
- pop wait_messages and ensure same window is used for next wait_messages
(to ensure the background is not greyed,ungreyed,greyed,...)
Diffstat (limited to 'perl-install/interactive/gtk.pm')
-rw-r--r-- | perl-install/interactive/gtk.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm index 1330fb0dd..ae07ff4e7 100644 --- a/perl-install/interactive/gtk.pm +++ b/perl-install/interactive/gtk.pm @@ -857,7 +857,8 @@ sub wait_messageW { my $Window = gtknew('MagicWindow', title => $title, - pop_it => defined $o->{pop_wait_messages} ? $o->{pop_wait_messages} : !$::isInstall, + pop_it => defined $o->{pop_wait_messages} ? $o->{pop_wait_messages} : 1, + pop_and_reuse => $::isInstall, modal => 1, $::isInstall ? (banner => gtknew('Install_Title', text => $message)) : (), no_Window_Manager => exists $o->{no_Window_Manager} ? $o->{no_Window_Manager} : !$::isStandalone, @@ -880,6 +881,8 @@ sub wait_message_nextW { } sub wait_message_endW { my ($_o, $Window) = @_; + $Window->{pop_and_reuse} and return; + mygtk2::may_destroy($Window); mygtk2::flush(); } |