diff options
author | Thierry Vignaud <tv@mageia.org> | 2011-11-26 14:32:36 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2011-11-26 14:32:36 +0000 |
commit | 47920b845658ab39a8a02942d87b214d51e7a92e (patch) | |
tree | 178c2722cf4a4d3b782619725ea5b91541939176 /mgaapplet | |
parent | 03f17a083bddc3a81413c347c2f758e89dcd6e2c (diff) | |
download | mgaonline-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-x | mgaapplet | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |