summaryrefslogtreecommitdiffstats
path: root/lib/network/connection_manager.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-12-15 11:59:08 +0000
committerOlivier Blin <oblin@mandriva.com>2008-12-15 11:59:08 +0000
commit12903bc3c97a7e39a130ffc9b07631186fb7c9ba (patch)
tree79719b3ee69a72a9aa5dd6ec392a0771fba58f5a /lib/network/connection_manager.pm
parent78b07f05660628e6d00efe69022c2c1248b79df4 (diff)
downloaddrakx-net-12903bc3c97a7e39a130ffc9b07631186fb7c9ba.tar
drakx-net-12903bc3c97a7e39a130ffc9b07631186fb7c9ba.tar.gz
drakx-net-12903bc3c97a7e39a130ffc9b07631186fb7c9ba.tar.bz2
drakx-net-12903bc3c97a7e39a130ffc9b07631186fb7c9ba.tar.xz
drakx-net-12903bc3c97a7e39a130ffc9b07631186fb7c9ba.zip
keep wireless wait messages while wpa_supplicant is associating
Diffstat (limited to 'lib/network/connection_manager.pm')
-rw-r--r--lib/network/connection_manager.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm
index a3cfe41..05f345e 100644
--- a/lib/network/connection_manager.pm
+++ b/lib/network/connection_manager.pm
@@ -199,7 +199,7 @@ sub start_connection {
}
gtkset_mousecursor_wait($cmanager->{gui}{w}{window}->window);
- my $_wait = $cmanager->{in}->wait_message(N("Please wait"), N("Connecting..."));
+ my $wait = $cmanager->{in}->wait_message(N("Please wait"), N("Connecting..."));
if ($cmanager->{connection}->can('apply_network_selection')) {
$cmanager->load_settings;
$cmanager->{connection}->apply_network_selection($cmanager);
@@ -210,6 +210,10 @@ sub start_connection {
gtkset_mousecursor_normal($cmanager->{gui}{w}{window}->window);
$cmanager->update_on_status_change;
+ if ($cmanager->{wait_message_timeout}) {
+ $cmanager->{wait_message} = $wait;
+ Glib::Timeout->add($cmanager->{wait_message_timeout}, sub { undef $cmanager->{wait_message} });
+ };
}
sub stop_connection {