summaryrefslogtreecommitdiffstats
path: root/lib/network/connection_manager.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-09-19 22:38:37 +0000
committerOlivier Blin <oblin@mandriva.com>2007-09-19 22:38:37 +0000
commit3dc4f28c116fb76dfa82b039fa684a96a6f37610 (patch)
tree85099f264c0cb78aceb1edcdec17c9ec9b2bd8f2 /lib/network/connection_manager.pm
parenta4dccd8bed1783e7bf2f09bb382f26bb756fd931 (diff)
downloaddrakx-net-3dc4f28c116fb76dfa82b039fa684a96a6f37610.tar
drakx-net-3dc4f28c116fb76dfa82b039fa684a96a6f37610.tar.gz
drakx-net-3dc4f28c116fb76dfa82b039fa684a96a6f37610.tar.bz2
drakx-net-3dc4f28c116fb76dfa82b039fa684a96a6f37610.tar.xz
drakx-net-3dc4f28c116fb76dfa82b039fa684a96a6f37610.zip
update status icon on connection change
Diffstat (limited to 'lib/network/connection_manager.pm')
-rw-r--r--lib/network/connection_manager.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm
index 9f12b77..1e6e68c 100644
--- a/lib/network/connection_manager.pm
+++ b/lib/network/connection_manager.pm
@@ -277,6 +277,12 @@ sub update_on_status_change {
(!$cmanager->{connection}->can('get_networks') || $cmanager->{connection}{network});
$cmanager->{gui}{buttons}{configure}->set_sensitive($may_have_network)
if $cmanager->{gui}{buttons}{configure};
+
+ if ($cmanager->{gui}{status_image} && $cmanager->{connection}) {
+ my $icon = $cmanager->{connection}->get_status_icon;
+ ugtk2::_find_imgfile($icon) or $icon = $cmanager->{connection}->get_type_icon;
+ gtkset($cmanager->{gui}{status_image}, file => $icon);
+ }
}
1;