summaryrefslogtreecommitdiffstats
path: root/mgaapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2011-11-26 14:32:36 +0000
committerThierry Vignaud <tv@mageia.org>2011-11-26 14:32:36 +0000
commit47920b845658ab39a8a02942d87b214d51e7a92e (patch)
tree178c2722cf4a4d3b782619725ea5b91541939176 /mgaapplet
parent03f17a083bddc3a81413c347c2f758e89dcd6e2c (diff)
downloadmgaonline-47920b845658ab39a8a02942d87b214d51e7a92e.tar
mgaonline-47920b845658ab39a8a02942d87b214d51e7a92e.tar.gz
mgaonline-47920b845658ab39a8a02942d87b214d51e7a92e.tar.bz2
mgaonline-47920b845658ab39a8a02942d87b214d51e7a92e.tar.xz
mgaonline-47920b845658ab39a8a02942d87b214d51e7a92e.zip
fix warnings
Diffstat (limited to 'mgaapplet')
-rwxr-xr-xmgaapplet5
1 files changed, 3 insertions, 2 deletions
diff --git a/mgaapplet b/mgaapplet
index 8998a7f7..f7e9a65d 100755
--- a/mgaapplet
+++ b/mgaapplet
@@ -27,6 +27,7 @@ use lib qw(/usr/lib/libDrakX);
use standalone; # for explanations
use common;
use run_program;
+use feature 'state';
BEGIN { unshift @::textdomains, 'mgaonline' }
@@ -709,7 +710,7 @@ sub update_backport_media {
}
sub silentCheck() {
- my $check_time if 0;
+ state $check_time;
my $new_time = time();
if (!$check_time || $new_time - $check_time > $config{DISTRO_CHECK_DELAY}) {
clean_distro_cache();
@@ -915,7 +916,7 @@ sub about_dialog() {
sub setState {
my ($state) = @_;
my $checkme;
- my $previous_state if 0;
+ state $previous_state;
my @arr = @{$state{$state}{menu}};
my $tmp = eval { gtkcreate_pixbuf($state{$state}{colour}[0]) };
$icon->set_from_pixbuf($tmp) if $tmp;