diff options
author | Daouda Lo <daouda@mandriva.com> | 2004-03-19 14:48:25 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2004-03-19 14:48:25 +0000 |
commit | 896e65dc4140b6f495bd3ca5c40780ef8aca2c01 (patch) | |
tree | c6a06fc29f1d06011db1edbc6750951b3a0bb1be /mdkapplet | |
parent | 2b489b05a1b0cf6239bb0c0ff17b748343cd8154 (diff) | |
download | mgaonline-896e65dc4140b6f495bd3ca5c40780ef8aca2c01.tar mgaonline-896e65dc4140b6f495bd3ca5c40780ef8aca2c01.tar.gz mgaonline-896e65dc4140b6f495bd3ca5c40780ef8aca2c01.tar.bz2 mgaonline-896e65dc4140b6f495bd3ca5c40780ef8aca2c01.tar.xz mgaonline-896e65dc4140b6f495bd3ca5c40780ef8aca2c01.zip |
- Checkin update status
Diffstat (limited to 'mdkapplet')
-rwxr-xr-x | mdkapplet | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -136,7 +136,7 @@ sub showMainWindow() { gtkpack_(Gtk2::VBox->new(0, 3), 1, gtksignal_connect(Gtk2::Button->new(N("Install updates")), clicked => sub { installUpdates() }), 1, gtksignal_connect(Gtk2::Button->new(N("Configure")), clicked => sub { configure() }), - 1, gtksignal_connect(Gtk2::Button->new(N("Check updates")), clicked => sub { $update_label->set_label(N("Checking...")); checkUpdates(); }), + 1, gtksignal_connect(Gtk2::Button->new(N("Check updates")), clicked => sub { checkUpdates(); }), 1, gtksignal_connect(Gtk2::Button->new(N("See logs")), clicked => sub { displayLogs() }), ) ), @@ -166,9 +166,9 @@ sub showMainWindow() { } sub setLabel { my $label = shift; - $update_label->set_label($label); + defined $update_label and $update_label->set_label($label); } -sub confNetwork { system "/usr/sbin/drakconnect &" } +sub configNetwork { system "/usr/sbin/drakconnect &" } sub launchUpdate { system "/usr/sbin/MandrakeUpdate &" } sub installUpdates { system "/usr/sbin/mdkupdate", "--applet" } sub silentCheck { @@ -242,8 +242,10 @@ sub checkUpdates { } elsif (!-e $conffile) { go2State('noconfig') } else { + setLabel(N("Checking...")); silentCheck(); } + setLabel($isAvailable ? N("Available") : N("Not Available")); } sub go2State { my $state = shift; |