From 00112c66ad0a561492a517129028fc6ebe1d5ce4 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 10 Jul 2003 14:46:48 +0000 Subject: grey instead of hide stuff in normal mode (more user friendly) --- perl-install/standalone/drakconnect | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect index dc85bf894..763136c89 100755 --- a/perl-install/standalone/drakconnect +++ b/perl-install/standalone/drakconnect @@ -240,7 +240,7 @@ $window1->{window}->add( my $button_expert = new Gtk2::Button(N("Expert Mode")); $button_expert->signal_connect(clicked => sub { - foreach ($button_internet, $button_lan) { $expert_mode ? $_->hide : $_->show } + foreach ($button_internet, $button_lan) { $expert_mode ? $_->set_sensitive(0) : $_->set_sensitive(1) } $button_expert->child->set($expert_mode ? N("Expert Mode") : N("Normal Mode")); $expert_mode = !$expert_mode; }); @@ -283,7 +283,7 @@ $combo1->signal_connect(realize => sub { }); $window1->{rwindow}->show_all; -$_->hide foreach $button_internet, $button_lan; +$_->set_sensitive(0) foreach $button_internet, $button_lan; gtkflush(); my $tag = Glib::Timeout->add(4000, \&update2); $window1->main; -- cgit v1.2.1