diff options
author | Daouda Lo <daouda@mandriva.com> | 2004-03-02 17:29:17 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2004-03-02 17:29:17 +0000 |
commit | 2529aca77ba3908e9b6c527a9aa944c3ef9673a4 (patch) | |
tree | 6c0ec831d577d7c0f3c8e455ed1507f274cd5b74 | |
parent | f8b5d547c5e7c345e1f26be6af86844643fe7452 (diff) | |
download | mgaonline-2529aca77ba3908e9b6c527a9aa944c3ef9673a4.tar mgaonline-2529aca77ba3908e9b6c527a9aa944c3ef9673a4.tar.gz mgaonline-2529aca77ba3908e9b6c527a9aa944c3ef9673a4.tar.bz2 mgaonline-2529aca77ba3908e9b6c527a9aa944c3ef9673a4.tar.xz mgaonline-2529aca77ba3908e9b6c527a9aa944c3ef9673a4.zip |
- fix many small bugs
-rwxr-xr-x | mdkapplet | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -115,8 +115,8 @@ sub showMainWindow() { $w->set_title(N("Mandrake Updates Applet")); $w->signal_connect(delete_event => sub { $w->destroy }); $w->set_position('center'); - my ($choice, $isAvailable, $isNetwork, $time); - $time = `date`; chomp($time); + my ($choice, $isAvailable, $time); + $isAvailable = silentCheck(); my $autocheck; gtkadd($w, gtkpack__(Gtk2::VBox->new(0,5), @@ -132,7 +132,7 @@ sub showMainWindow() { gtkpack_(Gtk2::VBox->new(0, 3), 0, gtkpack_(Gtk2::HBox->new(0, 3), 0, Gtk2::Label->new(N("Network Connection: ")), - 0, Gtk2::Label->new($isNetwork ? N("Up") : N("Down")) + 0, Gtk2::Label->new(isNetwork() ? N("Up") : N("Down")) ), 0, gtkpack_(Gtk2::HBox->new(0, 3), 0, Gtk2::Label->new(N("New Updates: ")), @@ -193,6 +193,12 @@ sub cronUpdate { 1; }); } +sub lastCheck { + my %h = getVarsFromSh($conffile); + my ($t, $l); + $t = $h{LASTCHECK} =~ s/\_/ /; + $t +} sub checkUpdates { if (!isNetwork()) { go2State('disconnected') |