summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2017-03-04 11:57:21 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2017-03-04 11:57:21 +0100
commit356dd449344c9b214a5008306a47b6e18e08ef25 (patch)
treeb5b20717e27aa1792901b6d5639df4e670498844 /bin
parent372b4286b5e6d0424059d5c213da820e10979e9b (diff)
downloaddrakx-net-356dd449344c9b214a5008306a47b6e18e08ef25.tar
drakx-net-356dd449344c9b214a5008306a47b6e18e08ef25.tar.gz
drakx-net-356dd449344c9b214a5008306a47b6e18e08ef25.tar.bz2
drakx-net-356dd449344c9b214a5008306a47b6e18e08ef25.tar.xz
drakx-net-356dd449344c9b214a5008306a47b6e18e08ef25.zip
Force get_strength_icon() to return only the PixBuf object when called from set_from_pixbuf()
Diffstat (limited to 'bin')
-rwxr-xr-xbin/net_applet2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/net_applet b/bin/net_applet
index 115c479..794f152 100755
--- a/bin/net_applet
+++ b/bin/net_applet
@@ -385,7 +385,7 @@ sub update_wireless_item {
my ($menuitem, $wnet) = @_;
$menuitem->{label}->set_text($wnet->{name});
$menuitem->{security}->set_from_pixbuf($pixbufs{encryption}{$wnet->{flags} =~ /WPA/i ? 'strong' : $wnet->{flags} =~ /WEP/i ? 'weak' : 'open'});
- $menuitem->{strength}->set_from_pixbuf(network::signal_strength::get_strength_icon($wnet));
+ $menuitem->{strength}->set_from_pixbuf(scalar network::signal_strength::get_strength_icon($wnet));
$menuitem->{widget}->signal_handler_block($menuitem->{activate});
$menuitem->{widget}->set_active($wnet->{current});