From 4168aafe5f3e322a2a131631519f2fde74229b81 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 15 Dec 2008 10:33:23 +0000 Subject: catch new events from com.mandriva.monitoring.wireless --- lib/network/netcenter.pm | 5 +++++ 1 file changed, 5 insertions(+) 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); } -- cgit v1.2.1