summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-02-25 16:01:30 +0000
committerOlivier Blin <oblin@mandriva.com>2009-02-25 16:01:30 +0000
commit179b2801bdce99147f35b1429ccdcbac76a26fb4 (patch)
tree5e47b742783440b521dccf09ea38df2c70ef0ae9
parentbf76817d1333bbe66954fd59191a723d0f233409 (diff)
downloaddrakx-net-179b2801bdce99147f35b1429ccdcbac76a26fb4.tar
drakx-net-179b2801bdce99147f35b1429ccdcbac76a26fb4.tar.gz
drakx-net-179b2801bdce99147f35b1429ccdcbac76a26fb4.tar.bz2
drakx-net-179b2801bdce99147f35b1429ccdcbac76a26fb4.tar.xz
drakx-net-179b2801bdce99147f35b1429ccdcbac76a26fb4.zip
setup dbus handlers after all_connections and connection are properly initialized
-rwxr-xr-xlib/network/drakroam.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/network/drakroam.pm b/lib/network/drakroam.pm
index edf886e..9ff8189 100755
--- a/lib/network/drakroam.pm
+++ b/lib/network/drakroam.pm
@@ -77,8 +77,6 @@ sub create_drakroam_gui {
Glib::Timeout->add(20000, sub { $status_bar->remove($status_bar_cid, $m_id); 0 });
};
- network::connection_manager::setup_dbus_handlers([ $droam ], $droam->{all_connections}, $droam->{on_network_event}, $dbus) if $dbus;
-
(undef, my $rootwin_height) = gtkroot()->get_size();
my $scrolled_height = $rootwin_height > 480 ? 300 : 225;
gtkadd($droam->{gui}{w}{window},
@@ -125,6 +123,8 @@ sub main {
update_connections_list($droam);
update_on_connection_change($droam);
+ network::connection_manager::setup_dbus_handlers([ $droam ], $droam->{all_connections}, $droam->{on_network_event}, $dbus) if $dbus;
+
if ($o_ap && $droam->{connection}) {
$droam->{connection}{network} = $o_ap;
$droam->start_connection;