summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-12-15 10:33:23 +0000
committerOlivier Blin <oblin@mandriva.com>2008-12-15 10:33:23 +0000
commit4168aafe5f3e322a2a131631519f2fde74229b81 (patch)
treea24a2d8d0e80e40ba51d8eaaf2b61ec97caff11f
parentc048448ded1f9fa6705e1758a1a54bd4230b792b (diff)
downloaddrakx-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-xlib/network/netcenter.pm5
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);
}