diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-05-24 13:10:24 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-05-24 13:10:24 +0000 |
commit | 762dee42a6cbe4a3e803d402ccadc8050897752e (patch) | |
tree | dc99aaa2ba5ec957f2c1854557e96be6778b3618 /perl-install/standalone/drakconnect | |
parent | 55e82bbb21c394f5d939a3b3827ceb99364554cb (diff) | |
download | drakx-762dee42a6cbe4a3e803d402ccadc8050897752e.tar drakx-762dee42a6cbe4a3e803d402ccadc8050897752e.tar.gz drakx-762dee42a6cbe4a3e803d402ccadc8050897752e.tar.bz2 drakx-762dee42a6cbe4a3e803d402ccadc8050897752e.tar.xz drakx-762dee42a6cbe4a3e803d402ccadc8050897752e.zip |
switch from deprecated OptionMenu into new ComboBox widget
Diffstat (limited to 'perl-install/standalone/drakconnect')
-rwxr-xr-x | perl-install/standalone/drakconnect | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect index dbcfe9533..22ac69826 100755 --- a/perl-install/standalone/drakconnect +++ b/perl-install/standalone/drakconnect @@ -216,7 +216,7 @@ sub manage { $window->{rwindow}->add(gtkpack_(Gtk2::VBox->new, 0, gtkpack__(Gtk2::HBox->new, Gtk2::Label->new(N("Device selected")), - $interface_menu = gtksignal_connect(Gtk2::OptionMenu->new, + $interface_menu = gtksignal_connect(Gtk2::ComboBox->new_text, changed => sub { $selected = $interface_menu->get_text; $notebook->set_current_page($p->{$selected}{gui}{index}); @@ -252,6 +252,7 @@ sub manage { } (sort keys %$p); $interface_menu->set_popdown_strings(sort keys %$p); + $interface_menu->set_active(0); $apply_button->set_sensitive(0); $window->{rwindow}->show_all; @@ -315,7 +316,7 @@ sub build_notebook { if_($is_ethernet, 0, gtkpack__(Gtk2::HBox->new, Gtk2::Label->new(N("Protocol")), - $gui->{intf}{BOOTPROTO} = gtksignal_connect(Gtk2::OptionMenu->new, + $gui->{intf}{BOOTPROTO} = gtksignal_connect(Gtk2::ComboBox->new_text, changed => sub { return if !$_[0]->realized; my $proto = $gui->{intf}{BOOTPROTO}; @@ -458,7 +459,7 @@ sub build_notebook { if_($interface eq 'modem', 0, gtkpack(Gtk2::VBox->new(1,0), gtkpack__(Gtk2::HBox->new, Gtk2::Label->new(N("Authentication"))), - gtkpack__(Gtk2::HBox->new, $gui->{intf}{auth} = gtksignal_connect(Gtk2::OptionMenu->new, + gtkpack__(Gtk2::HBox->new, $gui->{intf}{auth} = gtksignal_connect(Gtk2::ComboBox->new_text, changed => $apply)), )), map { (0, gtkpack(Gtk2::VBox->new(1,0), @@ -485,7 +486,7 @@ sub build_notebook { gtkpack__(Gtk2::VBox->new(0,5), (map { (gtkpack(Gtk2::VBox->new(1,0), gtkpack__(Gtk2::HBox->new, Gtk2::Label->new($_->[0])), - gtkpack__(Gtk2::HBox->new, $gui->{intf}{$_->[1]} = gtksignal_connect(Gtk2::OptionMenu->new, + gtkpack__(Gtk2::HBox->new, $gui->{intf}{$_->[1]} = gtksignal_connect(Gtk2::ComboBox->new_text, changed => $apply)), ), ), @@ -842,7 +843,7 @@ Configure them first by clicking on 'Configure'"))); $vbox_local->pack_start($infos[2*$i], 1, 1, 0); my $c; if (defined $j->[2]) { - $c = Gtk2::OptionMenu->new; + $c = Gtk2::ComboBox->new_text; $c->set_popdown_strings(@{$j->[2]}); $infos[2*$i+1] = $c->entry; $infos[2*$i]->pack_start($c,0,0,0); |