summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-03-30 15:07:09 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-03-30 15:07:09 +0000
commit44778728ab24261384e794304fe0838a4b9ae7a3 (patch)
tree8bd6818c9a1d34d2a96f9ba731049d8db995c98c
parent3265155a72bb9dd1469a1b79550c6f4bd0052e85 (diff)
downloadmgaonline-44778728ab24261384e794304fe0838a4b9ae7a3.tar
mgaonline-44778728ab24261384e794304fe0838a4b9ae7a3.tar.gz
mgaonline-44778728ab24261384e794304fe0838a4b9ae7a3.tar.bz2
mgaonline-44778728ab24261384e794304fe0838a4b9ae7a3.tar.xz
mgaonline-44778728ab24261384e794304fe0838a4b9ae7a3.zip
(silentCheck) set busy cursor while querying the server
-rwxr-xr-xmdkapplet4
1 files changed, 4 insertions, 0 deletions
diff --git a/mdkapplet b/mdkapplet
index d7a2191c..3e977112 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -196,6 +196,7 @@ sub refresh_gui {
sub showMainWindow() {
my $w = Gtk2::Window->new('toplevel');
+ $::main_window = $w;
$w->set_title(N("Mandriva Linux Updates Applet"));
$w->signal_connect(delete_event => sub { $w->destroy; $raisedwindow = 0 });
gtkset_size_request($w, 400, 300);
@@ -276,7 +277,10 @@ sub silentCheck() {
logIt(N("Computing new updates...\n"));
$link .= '&log=' . $h{LOGIN} . '&host=' . $h{MACHINE};
logIt(N("Connecting to") . " $link ...\n");
+ my $w = $::main_window ? $::main_window->window : undef;
+ gtkset_mousecursor_wait($w);
gtkflush(); go2State('busy'); gtkflush();
+ gtkset_mousecursor_normal($w);
my $response = mdkonline::soap_get_updates_for_host($h{HOST_ID}, $h{HOST_KEY});
my $status_err = mdkonline::check_server_response($response);
if ($status_err eq 'OK') {