diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-09-25 15:55:32 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-09-25 15:55:32 +0000 |
commit | 44e5e9d991ed9749943f21588e1f5a05a299b27f (patch) | |
tree | 9865fd085191437c4a8205ba1a792d10042512d0 | |
parent | 049ac868ce11785216e24fcb66af38e7e23c364d (diff) | |
download | drakx-net-44e5e9d991ed9749943f21588e1f5a05a299b27f.tar drakx-net-44e5e9d991ed9749943f21588e1f5a05a299b27f.tar.gz drakx-net-44e5e9d991ed9749943f21588e1f5a05a299b27f.tar.bz2 drakx-net-44e5e9d991ed9749943f21588e1f5a05a299b27f.tar.xz drakx-net-44e5e9d991ed9749943f21588e1f5a05a299b27f.zip |
run net center instead of simple menu on left click
-rwxr-xr-x | bin/net_applet | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/net_applet b/bin/net_applet index 78dc311..03322b4 100755 --- a/bin/net_applet +++ b/bin/net_applet @@ -175,7 +175,9 @@ $eventbox->signal_connect(button_press_event => sub { run_drakids(); } elsif ($simple_menu) { $simple_menu->popup(undef, undef, undef, undef, $_[1]->button, $_[1]->time); - } + } else { + run_netcenter(); + } } elsif ($_[1]->button == 3 && $menu) { $menu->popup(undef, undef, undef, undef, $_[1]->button, $_[1]->time); } @@ -211,6 +213,10 @@ sub shouldStart() { sub run_net_monitor() { run_program::raw({ detach => 1 }, '/usr/sbin/net_monitor', '--defaultintf', $current_interface) unless is_running('net_monitor'); } +sub run_netcenter { + my ($o_ap) = @_; + run_program::raw({ detach => 1 }, '/usr/bin/draknetcenter') unless is_running('netcenter'); +} sub run_drakroam { my ($o_ap) = @_; run_program::raw({ detach => 1 }, '/usr/sbin/drakroam', if_($o_ap, "--ap=$o_ap")) unless is_running('drakroam'); @@ -366,7 +372,6 @@ sub disable_ifw_alert() { sub update_applet() { $wireless_device = detect_devices::get_wireless_interface(); - generate_simple_menu(); generate_menu(); update_tray_icon(); |