diff options
author | Matteo Pasotti <matteo@mageia.org> | 2013-01-15 12:04:03 +0000 |
---|---|---|
committer | Matteo Pasotti <matteo@mageia.org> | 2013-01-15 12:04:03 +0000 |
commit | 1ade940bd86aa26438f363c9d06e397c867cb886 (patch) | |
tree | de92a4cd9d019ec86a8ebd1c99b2542416b6ee9e /AdminPanel | |
parent | b3db587c07173f65555e1db9fbde59abf517c5d9 (diff) | |
download | colin-keep-1ade940bd86aa26438f363c9d06e397c867cb886.tar colin-keep-1ade940bd86aa26438f363c9d06e397c867cb886.tar.gz colin-keep-1ade940bd86aa26438f363c9d06e397c867cb886.tar.bz2 colin-keep-1ade940bd86aa26438f363c9d06e397c867cb886.tar.xz colin-keep-1ade940bd86aa26438f363c9d06e397c867cb886.zip |
fixed wait_msg subroutine
Diffstat (limited to 'AdminPanel')
-rw-r--r-- | AdminPanel/rpmdragora.pm | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/AdminPanel/rpmdragora.pm b/AdminPanel/rpmdragora.pm index b490ccc..c9e0c05 100644 --- a/AdminPanel/rpmdragora.pm +++ b/AdminPanel/rpmdragora.pm @@ -363,13 +363,8 @@ sub fatal_msg { sub wait_msg { my ($msg, %options) = @_; - #return msgBox("Please wait"); #OLD my $mainw = ugtk2->new(N("Please wait"), grab => 1, if_(exists $options{transient}, transient => $options{transient})); - my $factory = yui::YUI::widgetFactory; - my $mainw = $factory->createPopupDialog(); #$mainw->{real_window}->set_position($options{transient} ? 'center_on_parent' : 'center_always'); - my $vbox = $factory->createVBox($mainw); - my $title = $factory->createLabel($vbox, N("Please wait")); #my $label = $factory->createLabel($vbox, $msg); #OLD my $label = ref($msg) =~ /^Gtk/ ? $msg : Gtk2::WrappedLabel->new($msg); #gtkadd( @@ -380,11 +375,15 @@ sub wait_msg { # if_(exists $options{widgets}, @{$options{widgets}}), #) #); - #$mainw->sync; - #gtkset_mousecursor_wait($mainw->{rwindow}->window) unless $options{no_wait_cursor}; - #$mainw->flush; - $mainw->recalcLayout(); - $mainw->doneMultipleChanges(); + my $factory = yui::YUI::widgetFactory; + my $mainw = $factory->createPopupDialog(); + my $vbox = $factory->createVBox($mainw); + my $title = $factory->createLabel($vbox, N("Please wait")); + #$mainw->recalcLayout(); + #$mainw->doneMultipleChanges(); + $mainw->pollEvent(); + #$mainw->recalcLayout(); + #$mainw->doneMultipleChanges(); $mainw; } |