summaryrefslogtreecommitdiffstats
path: root/lib/network/drakroam.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-08-03 14:25:28 +0000
committerOlivier Blin <oblin@mandriva.com>2007-08-03 14:25:28 +0000
commitea4c697a82a940663e139edb6116756beaf2d082 (patch)
tree80e3dff95c6b4a67c26807b1aa469f931bb981a8 /lib/network/drakroam.pm
parentadd2b6439ca2212a939f9f197defc128d8903570 (diff)
downloaddrakx-net-ea4c697a82a940663e139edb6116756beaf2d082.tar
drakx-net-ea4c697a82a940663e139edb6116756beaf2d082.tar.gz
drakx-net-ea4c697a82a940663e139edb6116756beaf2d082.tar.bz2
drakx-net-ea4c697a82a940663e139edb6116756beaf2d082.tar.xz
drakx-net-ea4c697a82a940663e139edb6116756beaf2d082.zip
allow to filter networks
Diffstat (limited to 'lib/network/drakroam.pm')
-rwxr-xr-xlib/network/drakroam.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/network/drakroam.pm b/lib/network/drakroam.pm
index 73dff01..4bf01a6 100755
--- a/lib/network/drakroam.pm
+++ b/lib/network/drakroam.pm
@@ -115,7 +115,10 @@ sub update_networks {
my $interface = $droam->{connection}->get_interface;
my $connected = exists $routes->{$interface}{network};
- while (my ($ap, $network) = each(%{$droam->{connection}{networks}})) {
+ my @networks = values %{$droam->{connection}{networks}};
+ $droam->{filter_networks} and @networks = $droam->{filter_networks}(@networks);
+ foreach my $network (@networks) {
+ my $ap = $network->{ap};
push @{$droam->{gui}{networks_list}{data}}, [
$ap || $network->{name},
$network->{current} ? $connected ? $droam->{gui}{pixbufs}{state}{connected} : $droam->{gui}{pixbufs}{state}{refresh} : undef,