summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/network/signal_strength.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/network/signal_strength.pm b/lib/network/signal_strength.pm
index 4dd17aa..8a3a5be 100644
--- a/lib/network/signal_strength.pm
+++ b/lib/network/signal_strength.pm
@@ -9,9 +9,7 @@ my %pixbufs;
sub get_strength_icon {
my ($network) = @_;
my $approx = 20 + min(80, int($network->{signal_strength}/20)*20);
- my $file_name = 'wifi-' . sprintf('%03d', $approx);
- $pixbufs{$approx} ||= ugtk3::gtkcreate_pixbuf($file_name);
- return wantarray ? ($pixbufs{$approx}, $file_name) : $pixbufs{$approx};
+ return $pixbufs{$approx} ||= ugtk3::gtkcreate_pixbuf('wifi-' . sprintf('%03d', $approx));
}
1;