diff options
-rw-r--r-- | lib/network/connection_manager.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm index 7ceada9..0ac2cda 100644 --- a/lib/network/connection_manager.pm +++ b/lib/network/connection_manager.pm @@ -298,6 +298,12 @@ sub create_networks_list { #FIXME Should define an explicit order OPEN < WEP < WPA return $s1 cmp $s2; }); + $cmanager->{gui}{networks_list}->set_enable_search(1); + $cmanager->{gui}{networks_list}->set_search_column(1); + $cmanager->{gui}{networks_list}->set_search_equal_func(sub { + my ($model, $column, $key, $iter, $data) = @_; + return $model->get($iter, 2) !~ /^\Q$key/i; + }); } sub select_network { |