From e15740d2211de96b1c5ffde81aaadc9fe9f65815 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 10 Mar 2003 14:39:34 +0000 Subject: - clean wait messages creation - fix wait messages displaying (label was not displayed) in both standalone and embedded modes --- perl-install/standalone/draksec | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'perl-install/standalone/draksec') diff --git a/perl-install/standalone/draksec b/perl-install/standalone/draksec index 474cb0677..b84279c3a 100755 --- a/perl-install/standalone/draksec +++ b/perl-install/standalone/draksec @@ -41,15 +41,10 @@ my $w; # factorize this with rpmdrake and harddrake2 sub wait_msg { my $mainw = ugtk2->new('wait', (modal => 1, if_(!$::isEmbedded, transient => $w->{rwindow}))); - my $label = new Gtk2::Label($_[0]); - $mainw->{window}->add($label); - $mainw->{window}->show_all; - $mainw->{window}->realize; - $label->signal_connect(expose_event => sub { $mainw->{displayed} = 1 }); - $mainw->sync until $mainw->{displayed}; - $mainw->show; + $mainw->{window}->add(new Gtk2::Label($_[0])); + $mainw->{rwindow}->show_all; gtkset_mousecursor_wait($mainw->{rwindow}->window); - $mainw->flush; + gtkflush(); $mainw; } -- cgit v1.2.1