diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-08-09 13:00:00 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-08-09 13:00:00 +0000 |
commit | bf2063ce89293a7d53e8f7cc0f8edeb7121398de (patch) | |
tree | 21924d46329045a917bff1d491b55181dc39f39b /lib/network | |
parent | 104154b38b51ff53bc0902d32562ae4fe9fe19c5 (diff) | |
download | drakx-net-bf2063ce89293a7d53e8f7cc0f8edeb7121398de.tar drakx-net-bf2063ce89293a7d53e8f7cc0f8edeb7121398de.tar.gz drakx-net-bf2063ce89293a7d53e8f7cc0f8edeb7121398de.tar.bz2 drakx-net-bf2063ce89293a7d53e8f7cc0f8edeb7121398de.tar.xz drakx-net-bf2063ce89293a7d53e8f7cc0f8edeb7121398de.zip |
rename connect as connect_toggle
Diffstat (limited to 'lib/network')
-rwxr-xr-x | lib/network/drakroam.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/network/drakroam.pm b/lib/network/drakroam.pm index 7da17c7..be0740d 100755 --- a/lib/network/drakroam.pm +++ b/lib/network/drakroam.pm @@ -223,10 +223,10 @@ sub select_network { sub update_on_network_change { my ($droam) = @_; - if ($droam->{gui}{buttons}{connect}) { - $droam->{gui}{buttons}{connect}->set_label(toggle_would_disconnect($droam) ? N("Disconnect") : N("Connect")); + if ($droam->{gui}{buttons}{connect_toggle}) { + $droam->{gui}{buttons}{connect_toggle}->set_label(toggle_would_disconnect($droam) ? N("Disconnect") : N("Connect")); #- always allow to disconnect if connected - $droam->{gui}{buttons}{connect}->set_sensitive($droam->{connection} && ($droam->{connection}->get_status || $droam->{connection}{network})); + $droam->{gui}{buttons}{connect_toggle}->set_sensitive($droam->{connection} && ($droam->{connection}->get_status || $droam->{connection}{network})); } #- allow to configure only if a network is selected @@ -340,7 +340,7 @@ sub create_drakroam_gui { 1, gtknew('ScrolledWindow', width => 500, height => 300, child => $droam->{gui}{networks_list}), 0, gtknew('HButtonBox', layout => 'edge', children_loose => [ $droam->{gui}{buttons}{configure} = gtknew('Button', text => N("Configure"), clicked => sub { configure_network($droam) }), - $droam->{gui}{buttons}{connect} = gtknew('Button', relief => 'half', clicked => sub { toggle_connection($droam) }), + $droam->{gui}{buttons}{connect_toggle} = gtknew('Button', relief => 'half', clicked => sub { toggle_connection($droam) }), $droam->{gui}{buttons}{refresh} = gtknew('Button', text => N("Refresh"), clicked => sub { update_networks($droam) }), gtknew('Button', text => N("Quit"), clicked => sub { Gtk2->main_quit }) ]), |