diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-02-25 16:05:08 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-02-25 16:05:08 +0000 |
commit | 7d9015fd60584528c3daa32a99363e921042ce73 (patch) | |
tree | 5569bb962260eebb7ed06244c607d9e4b9c1aebf /lib/network | |
parent | 833eefcb5d6b41cd0870344e907f57cfc66d5e2e (diff) | |
download | drakx-net-7d9015fd60584528c3daa32a99363e921042ce73.tar drakx-net-7d9015fd60584528c3daa32a99363e921042ce73.tar.gz drakx-net-7d9015fd60584528c3daa32a99363e921042ce73.tar.bz2 drakx-net-7d9015fd60584528c3daa32a99363e921042ce73.tar.xz drakx-net-7d9015fd60584528c3daa32a99363e921042ce73.zip |
cosmetics
Diffstat (limited to 'lib/network')
-rw-r--r-- | lib/network/connection_manager.pm | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm index b005e76..7098a6e 100644 --- a/lib/network/connection_manager.pm +++ b/lib/network/connection_manager.pm @@ -442,13 +442,14 @@ sub _get_network_event_message { sub setup_dbus_handlers { my ($cmanagers, $connections, $on_network_event, $dbus) = @_; #- FIXME: use network::monitor? - $dbus->{connection}->add_filter(sub { - my ($_con, $msg) = @_; - my $member = $msg->get_member; - my $message = get_network_event_message($droam, $member, $msg->get_args_list) or return; - $droam->{on_network_event}($message) if $droam->{on_network_event}; - $droam->update_networks if $member eq 'status'; - }); + $dbus->{connection}->add_filter( + sub { + my ($_con, $msg) = @_; + my $member = $msg->get_member; + my $message = get_network_event_message($droam, $member, $msg->get_args_list) or return; + $droam->{on_network_event}($message) if $droam->{on_network_event}; + $droam->update_networks if $member eq 'status'; + }); $dbus->{connection}->add_match("type='signal',interface='com.mandriva.network'"); dbus_object::set_gtk2_watch_helper($dbus); } |