diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-12-15 10:33:23 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-12-15 10:33:23 +0000 |
commit | 4168aafe5f3e322a2a131631519f2fde74229b81 (patch) | |
tree | a24a2d8d0e80e40ba51d8eaaf2b61ec97caff11f | |
parent | c048448ded1f9fa6705e1758a1a54bd4230b792b (diff) | |
download | drakx-net-4168aafe5f3e322a2a131631519f2fde74229b81.tar drakx-net-4168aafe5f3e322a2a131631519f2fde74229b81.tar.gz drakx-net-4168aafe5f3e322a2a131631519f2fde74229b81.tar.bz2 drakx-net-4168aafe5f3e322a2a131631519f2fde74229b81.tar.xz drakx-net-4168aafe5f3e322a2a131631519f2fde74229b81.zip |
catch new events from com.mandriva.monitoring.wireless
-rwxr-xr-x | lib/network/netcenter.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/network/netcenter.pm b/lib/network/netcenter.pm index 74e77c5..77c181b 100755 --- a/lib/network/netcenter.pm +++ b/lib/network/netcenter.pm @@ -195,8 +195,13 @@ sub main { $cmanager->network::connection_manager::update_on_status_change; } } + if ($msg->get_interface eq 'com.mandriva.monitoring.wireless' && $msg->get_member eq 'Event') { + my ($event) = $msg->get_args_list; + print "got wireless event: $event\n"; + } }); $dbus->{connection}->add_match("type='signal',interface='com.mandriva.network'"); + $dbus->{connection}->add_match("type='signal',interface='com.mandriva.monitoring.wireless'"); dbus_object::set_gtk2_watch_helper($dbus); } |