summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-05-11 16:53:32 +0000
committerDaouda Lo <daouda@mandriva.com>2004-05-11 16:53:32 +0000
commitddfa29a8ee314c1537fb4ba110d495b9de549164 (patch)
tree190897c8987a73f768f72c878b19d387607cd2bb
parentfc9112e37891941383e69d29ddee002d6990cc0a (diff)
downloadmgaonline-ddfa29a8ee314c1537fb4ba110d495b9de549164.tar
mgaonline-ddfa29a8ee314c1537fb4ba110d495b9de549164.tar.gz
mgaonline-ddfa29a8ee314c1537fb4ba110d495b9de549164.tar.bz2
mgaonline-ddfa29a8ee314c1537fb4ba110d495b9de549164.tar.xz
mgaonline-ddfa29a8ee314c1537fb4ba110d495b9de549164.zip
- use mouse clock cursor when busy with applet busy icon.
- decrease debug messages
-rwxr-xr-xmdkapplet7
-rw-r--r--mdkonline.spec6
2 files changed, 8 insertions, 5 deletions
diff --git a/mdkapplet b/mdkapplet
index 65d514b7..d12f8ece 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -176,7 +176,7 @@ sub setLabel {
gtkflush();
}
sub configNetwork { logIt(N("Launching drakconnect\n")); system "/usr/sbin/drakconnect &" }
-sub installUpdates { logIt(N("Launching mdkupdate --applet\n")); system "/usr/sbin/mdkupdate", "--applet"; silentCheck() }
+sub installUpdates { logIt(N("Launching mdkupdate --applet\n")); gtkset_mousecursor_wait(); system "/usr/sbin/mdkupdate", "--applet"; silentCheck(); gtkset_mousecursor_normal() }
sub silentCheck {
my $link = "http://www.mandrakeonline.net/online3_RemoteAction.php" . '?action=UpdateList';
my %h = getVarsFromSh($conffile);
@@ -192,10 +192,11 @@ sub silentCheck {
my $request = HTTP::Request->new(GET => $link . '&log=' . $h{LOGIN} . '&host=' . $h{MACHINE});
my $lnk = $link . '&log=' . $h{LOGIN} . '&host=' . $h{MACHINE};
logIt(N("Connecting to") . " $lnk ...\n");
+ gtkflush(); go2State('busy'); gtkflush();
my $response = $ua->request($request);
my $ct = $response->content;
# print "\nCONTENTS = $ct\n";
- logIt(N("Response from MandrakeOnline server\n") . "$ct");
+# logIt(N("Response from MandrakeOnline server\n") . "$ct");
if ($ct =~ /rpm/) { $u = 11 } elsif ($ct =~ m/(\d+)/) { $u = sprintf("%d",$1); } else { $u = 10 };
# 99 - log or host or action or pass empty, wrong action
# 98 - wrong pass
@@ -330,8 +331,6 @@ sub checkUpdates {
logIt(N("Checking config file: Not present\n"));
go2State('noconfig')
} else {
- gtkflush();
- go2State('busy'); gtkflush();
silentCheck();
}
setLabel($update_label, $isAvailable ? N("Available") : N("Not Available"));
diff --git a/mdkonline.spec b/mdkonline.spec
index a7ddd7d7..53931337 100644
--- a/mdkonline.spec
+++ b/mdkonline.spec
@@ -4,7 +4,7 @@
Summary: The MandrakeOnline Tool
Name: %{name}
Version: %{version}
-Release: 5mdk
+Release: 6mdk
Source0: %{name}-%{version}.tar.bz2
URL: http://www.mandrakeonline.net
Packager: Daouda Lo <daouda@mandrakesoft.com>
@@ -96,6 +96,10 @@ rm -rf $RPM_BUILD_ROOT
# get the source from our cvs repository (see
# http://www.linuxmandrake.com/en/cvs.php3)
%changelog
+* Tue May 11 2004 Daouda LO <daouda@mandrakesoft.com> 1.0-6mdk
+- use mouse clock cursor when busy with applet busy icon.
+- decrease debug messages
+
* Mon May 10 2004 Daouda LO <daouda@mandrakesoft.com> 1.0-5mdk
- more meaningful icons set for applet state (big up 2 ln)