diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-07-24 15:57:21 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-07-24 15:57:21 +0000 |
commit | e87ae4cc58f1a40c695e3c41c0335682b3fb9f87 (patch) | |
tree | 82edef0949974f015cc6066d1b2ad1a33ac31e0b | |
parent | cea766fb5e247760d1a8fc406e667a58cb29129c (diff) | |
download | drakx-e87ae4cc58f1a40c695e3c41c0335682b3fb9f87.tar drakx-e87ae4cc58f1a40c695e3c41c0335682b3fb9f87.tar.gz drakx-e87ae4cc58f1a40c695e3c41c0335682b3fb9f87.tar.bz2 drakx-e87ae4cc58f1a40c695e3c41c0335682b3fb9f87.tar.xz drakx-e87ae4cc58f1a40c695e3c41c0335682b3fb9f87.zip |
- use option menus instead of combos
- fix crash on profile change due to netconnect api change
-rwxr-xr-x | perl-install/standalone/net_monitor | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/perl-install/standalone/net_monitor b/perl-install/standalone/net_monitor index 3cc30ec8f..4ef113d1b 100755 --- a/perl-install/standalone/net_monitor +++ b/perl-install/standalone/net_monitor @@ -75,10 +75,9 @@ my ($width, $height) = (300, 150); network::netconnect::load_conf($netcnx, $netc, $intf); network::netconnect::read_net_conf('', $netcnx, $netc); -my $combo1 = Gtk2::Combo->new; +my $combo1 = Gtk2::OptionMenu->new; $combo1->set_popdown_strings(network::netconnect::get_profiles()); $combo1->entry->set_text($netcnx->{PROFILE} || "default"); -$combo1->entry->set_editable(0); MDK::Common::Globals::init( in => $in, prefix => '', @@ -135,7 +134,6 @@ $window1->{rwindow}->realize; $combo1->entry->signal_connect(changed => sub { network::netconnect::set_profile($netcnx, $combo1->entry->get_text); network::netconnect::load_conf($netcnx, $netc, $intf); - network::netconnect::set_net_conf($netcnx, $netc, $intf); network::netconnect::read_net_conf('', $netcnx, $netc); }); my $gct = Gtk2::Gdk::GC->new($window1->{rwindow}->window); |