summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-08-09 19:47:31 +0000
committerOlivier Blin <oblin@mandriva.com>2007-08-09 19:47:31 +0000
commit278ab9853f4f293a92ad3ae265f51ba454cf24a7 (patch)
tree90cd691c1495f00904f8c68ac2977c9246996ef8 /lib
parent11cde907f53b5ed62beaeebe62fec22cf236991b (diff)
downloaddrakx-net-278ab9853f4f293a92ad3ae265f51ba454cf24a7.tar
drakx-net-278ab9853f4f293a92ad3ae265f51ba454cf24a7.tar.gz
drakx-net-278ab9853f4f293a92ad3ae265f51ba454cf24a7.tar.bz2
drakx-net-278ab9853f4f293a92ad3ae265f51ba454cf24a7.tar.xz
drakx-net-278ab9853f4f293a92ad3ae265f51ba454cf24a7.zip
move more code in network::connection_manager
Diffstat (limited to 'lib')
-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) = @_;