summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/drakconnect-old2
-rw-r--r--lib/network/drakconnect/edit.pm8
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)),
),
);