summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/net_applet9
-rw-r--r--data/pixmaps/connected_big.pngbin0 -> 21921 bytes
-rw-r--r--data/pixmaps/connecting_big.pngbin0 -> 20788 bytes
-rw-r--r--data/pixmaps/disconnected_big.pngbin0 -> 21802 bytes
4 files changed, 5 insertions, 4 deletions
diff --git a/bin/net_applet b/bin/net_applet
index 1844e36..8fb00c4 100755
--- a/bin/net_applet
+++ b/bin/net_applet
@@ -47,7 +47,7 @@ our %wireless_networks;
our %pixbufs =
(
- state => { map { $_ => gtknew('Pixbuf', file => $_) } qw(connected disconnected unconfigured connecting) },
+ state => { map { $_ => gtknew('Pixbuf', file => $_) } 'unconfigured', map { $_, $_ . "_big" } qw(connected disconnected connecting) },
encryption => { map {
$_ => gtknew('Pixbuf', file => "encryption-$_-24");
} qw(open weak strong) },
@@ -57,11 +57,12 @@ sub get_current_network() {
detect_devices::is_wireless_interface($current_interface) && find { $_->{current} } values %wireless_networks;
}
-sub get_state_pixbuf() {
+sub get_state_pixbuf {
+ my ($o_big) = @_;
my $wnet = $current_state eq 'connected' && get_current_network();
$wnet ?
network::signal_strength::get_strength_icon($wnet) :
- $pixbufs{state}{$current_state};
+ $pixbufs{state}{$current_state . ($o_big ? '_big' : '')};
}
sub update_tray_icon() {
@@ -436,7 +437,7 @@ sub go2State {
$current_state = $state_type;
$notification_queue->add({
title => $old_description || $current_description || N("Network connection"),
- pixbuf => network::net_applet::get_state_pixbuf(),
+ pixbuf => network::net_applet::get_state_pixbuf(1) || network::net_applet::get_state_pixbuf(),
message => get_state_message($old_interface || $current_interface),
}) if $show;
$need_update = 1;
diff --git a/data/pixmaps/connected_big.png b/data/pixmaps/connected_big.png
new file mode 100644
index 0000000..5805a02
--- /dev/null
+++ b/data/pixmaps/connected_big.png
Binary files differ
diff --git a/data/pixmaps/connecting_big.png b/data/pixmaps/connecting_big.png
new file mode 100644
index 0000000..f6d1b63
--- /dev/null
+++ b/data/pixmaps/connecting_big.png
Binary files differ
diff --git a/data/pixmaps/disconnected_big.png b/data/pixmaps/disconnected_big.png
new file mode 100644
index 0000000..0e829ce
--- /dev/null
+++ b/data/pixmaps/disconnected_big.png
Binary files differ