summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]bin/net_applet15
-rwxr-xr-xdata/pixmaps/connected.pngbin785 -> 1231 bytes
-rw-r--r--data/pixmaps/disconnected.pngbin977 -> 1134 bytes
-rw-r--r--data/pixmaps/unconfigured.pngbin0 -> 1126 bytes
4 files changed, 5 insertions, 10 deletions
diff --git a/bin/net_applet b/bin/net_applet
index f1a0f12..78dc311 100644..100755
--- a/bin/net_applet
+++ b/bin/net_applet
@@ -43,7 +43,7 @@ my %pixbufs =
(
firewall => gtknew('Pixbuf', file => 'drakfirewall'),
firewall_icon => gtknew('Pixbuf', file => 'drakfirewall')->scale_simple(24, 24, 'hyper'),
- state => { map { $_ => gtknew('Pixbuf', file => $_) } qw(connected disconnected) },
+ state => { map { $_ => gtknew('Pixbuf', file => $_) } qw(connected disconnected unconfigured) },
link_level => { map {
$_ => gtknew('Pixbuf', file => 'wifi-' . sprintf('%03d', $_))->scale_simple(24, 24, 'hyper');
} qw(20 40 60 80 100) },
@@ -332,15 +332,10 @@ sub get_current_network() {
sub get_state_pixbuf() {
my $pixbuf;
- if ($current_state eq 'connected') {
- my $wnet = get_current_network();
- $pixbuf = $wnet ?
- network::signal_strength::get_strength_icon($wnet) :
- $pixbufs{state}{connected};
- } else {
- $pixbuf = $pixbufs{state}{disconnected};
- }
- $pixbuf;
+ my $wnet = $current_state eq 'connected' && get_current_network();
+ $wnet ?
+ network::signal_strength::get_strength_icon($wnet) :
+ $pixbufs{state}{$current_state};
}
sub update_tray_icon() {
diff --git a/data/pixmaps/connected.png b/data/pixmaps/connected.png
index 3fc98ce..b8b2442 100755
--- a/data/pixmaps/connected.png
+++ b/data/pixmaps/connected.png
Binary files differ
diff --git a/data/pixmaps/disconnected.png b/data/pixmaps/disconnected.png
index 1c05090..07c19e6 100644
--- a/data/pixmaps/disconnected.png
+++ b/data/pixmaps/disconnected.png
Binary files differ
diff --git a/data/pixmaps/unconfigured.png b/data/pixmaps/unconfigured.png
new file mode 100644
index 0000000..a17811d
--- /dev/null
+++ b/data/pixmaps/unconfigured.png
Binary files differ