diff options
author | Olivier Blin <oblin@mandriva.org> | 2006-03-09 15:59:05 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2006-03-09 15:59:05 +0000 |
commit | 059822313ada017d710a6900d8c3d28e1ac992c3 (patch) | |
tree | ab180c0484633830b346bdee3acd4d166436f887 | |
parent | abb0ec20f14b952802f8352288466c191df52ee8 (diff) | |
download | drakx-059822313ada017d710a6900d8c3d28e1ac992c3.tar drakx-059822313ada017d710a6900d8c3d28e1ac992c3.tar.gz drakx-059822313ada017d710a6900d8c3d28e1ac992c3.tar.bz2 drakx-059822313ada017d710a6900d8c3d28e1ac992c3.tar.xz drakx-059822313ada017d710a6900d8c3d28e1ac992c3.zip |
use "Active interfaces" menu label for network interfaces list, and use checkboxes instead of radio buttons (#18636)
-rw-r--r-- | perl-install/standalone/net_applet | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/perl-install/standalone/net_applet b/perl-install/standalone/net_applet index 7949f4add..a0c9efe40 100644 --- a/perl-install/standalone/net_applet +++ b/perl-install/standalone/net_applet @@ -69,12 +69,9 @@ my %actions = ( } }, 'setInterface' => { - name => N("Network interface"), + name => N("Active interfaces"), + use_checkbox => 1, choices => sub { sort keys %{$net->{ifcfg}} }, - format_choice => sub { - my ($is_up, $_gw) = network::tools::get_interface_status($_[0]); - $is_up ? N("Disconnect %s", $_[0]) : N("Connect %s", $_[0]); - }, choice_selected => sub { my ($is_up, $_gw) = network::tools::get_interface_status($_[0]); $is_up; @@ -304,7 +301,7 @@ sub generate_menu { my $choice = $_; my $w = gtkshow(gtkset_active(Gtk2::CheckMenuItem->new_with_label($format ? $format->($choice) : $choice), $selected->($choice))); gtksignal_connect($w, activate => sub { $launch->($choice) }); - $w->set_draw_as_radio(1); + $w->set_draw_as_radio(!$actions{$action}{use_checkbox}); $w; } $actions{$action}{choices}->())); } |