summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/network/connection_manager.pm10
-rwxr-xr-xlib/network/drakroam.pm10
2 files changed, 10 insertions, 10 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm
index 462ae80..d8d9c80 100644
--- a/lib/network/connection_manager.pm
+++ b/lib/network/connection_manager.pm
@@ -193,6 +193,16 @@ sub create_networks_list {
$cmanager->{gui}{networks_list}->set_has_tooltip(1);
}
+sub select_network {
+ my ($droam) = @_;
+
+ if ($droam->{connection}) {
+ my ($selected) = $droam->{gui}{networks_list}->get_selected_indices;
+ $droam->{connection}{network} = defined $selected && $droam->{gui}{networks_list}{data}[$selected][0];
+ }
+ update_on_network_change($droam);
+}
+
sub update_networks {
my ($cmanager) = @_;
@{$cmanager->{gui}{networks_list}{data}} = ();
diff --git a/lib/network/drakroam.pm b/lib/network/drakroam.pm
index b3fb057..6c704f4 100755
--- a/lib/network/drakroam.pm
+++ b/lib/network/drakroam.pm
@@ -63,16 +63,6 @@ sub get_network_event_message {
}
}
-sub select_network {
- my ($droam) = @_;
-
- if ($droam->{connection}) {
- my ($selected) = $droam->{gui}{networks_list}->get_selected_indices;
- $droam->{connection}{network} = defined $selected && $droam->{gui}{networks_list}{data}[$selected][0];
- }
- network::connection_manager::update_on_network_change($droam);
-}
-
sub create_drakroam_gui {
my ($droam, $dbus, $title, $icon) = @_;