diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-18 01:41:34 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-24 11:00:41 +0100 |
commit | a2e2b6f40d41586bf073bd1c156ec8b8eb7ef27d (patch) | |
tree | e49a5db53eb1132ddda5bcf1f595819c51765785 | |
parent | 31f5f934a335a0fe639ec7925225d2731bec12b3 (diff) | |
download | drakx-net-a2e2b6f40d41586bf073bd1c156ec8b8eb7ef27d.tar drakx-net-a2e2b6f40d41586bf073bd1c156ec8b8eb7ef27d.tar.gz drakx-net-a2e2b6f40d41586bf073bd1c156ec8b8eb7ef27d.tar.bz2 drakx-net-a2e2b6f40d41586bf073bd1c156ec8b8eb7ef27d.tar.xz drakx-net-a2e2b6f40d41586bf073bd1c156ec8b8eb7ef27d.zip |
Gtk3::ComboBox->new_text => Gtk3::ComboBoxText->new
-rwxr-xr-x | bin/drakconnect-old | 2 | ||||
-rw-r--r-- | lib/network/drakconnect/edit.pm | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/bin/drakconnect-old b/bin/drakconnect-old index 10d5a0b..9c13fe0 100755 --- a/bin/drakconnect-old +++ b/bin/drakconnect-old @@ -224,7 +224,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 = Gtk3::ComboBox->new_text; + $c = Gtk3::ComboBoxText->new; $c->set_popdown_strings(@{$j->[2]}); $infos[2*$i+1] = $c->entry; $infos[2*$i]->pack_start($c,0,0,0); diff --git a/lib/network/drakconnect/edit.pm b/lib/network/drakconnect/edit.pm index 8a258f8..24b1286 100644 --- a/lib/network/drakconnect/edit.pm +++ b/lib/network/drakconnect/edit.pm @@ -49,7 +49,7 @@ sub manage { $window->{rwindow}->add(gtkpack_(Gtk3::VBox->new, 0, gtkpack__(Gtk3::HBox->new, gtknew('Label', text => N("Device: "), alignment => [ 0, 0 ]), - $interface_menu = gtksignal_connect(Gtk3::ComboBox->new_text, + $interface_menu = gtksignal_connect(Gtk3::ComboBoxText->new, changed => sub { $selected = $interface_menu->get_text; $notebook->set_current_page($p->{$selected}{gui}{index}); @@ -134,7 +134,7 @@ sub build_notebook { if_($is_ethernet, gtkpack(Gtk3::HBox->new(1,0), gtknew('Label_Left', text => N("Protocol")), - $gui->{intf}{BOOTPROTO} = gtksignal_connect(Gtk3::ComboBox->new_text, changed => sub { + $gui->{intf}{BOOTPROTO} = gtksignal_connect(Gtk3::ComboBoxText->new, changed => sub { return if !$_[0]->realized; my $proto = $gui->{intf}{BOOTPROTO}; my $protocol = $intf->{BOOTPROTO} = { reverse %{$proto->{protocols}} }->{$proto->get_text}; @@ -311,7 +311,7 @@ sub build_notebook { if_($interface eq 'modem', 0, gtkpack(Gtk3::VBox->new(1,0), gtkpack__(Gtk3::HBox->new, Gtk3::Label->new(N("Authentication"))), - gtkpack__(Gtk3::HBox->new, $gui->{intf}{auth} = gtksignal_connect(Gtk3::ComboBox->new_text, + gtkpack__(Gtk3::HBox->new, $gui->{intf}{auth} = gtksignal_connect(Gtk3::ComboBoxText->new, changed => $apply)), )), map { (0, gtkpack(Gtk3::VBox->new(1,0), @@ -340,7 +340,7 @@ sub build_notebook { gtkpack__(Gtk3::VBox->new(0,5), (map { (gtkpack(Gtk3::VBox->new(1,0), gtkpack__(Gtk3::HBox->new, Gtk3::Label->new($_->[0])), - gtkpack__(Gtk3::HBox->new, $gui->{intf}{$_->[1]} = gtksignal_connect(Gtk3::ComboBox->new_text, + gtkpack__(Gtk3::HBox->new, $gui->{intf}{$_->[1]} = gtksignal_connect(Gtk3::ComboBoxText->new, changed => $apply)), ), ); |