summaryrefslogtreecommitdiffstats
path: root/bin/draknetprofile
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-03-17 13:47:14 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-03-17 13:47:14 +0000
commit1b68c21e76e919e5e157c3d6250a820793bc1bb3 (patch)
tree341e335bccf03111456ddb627109e2822e291945 /bin/draknetprofile
parentaa17984f4858b924a22c5f0bfdd3928a8fc4cbdd (diff)
downloaddrakx-net-1b68c21e76e919e5e157c3d6250a820793bc1bb3.tar
drakx-net-1b68c21e76e919e5e157c3d6250a820793bc1bb3.tar.gz
drakx-net-1b68c21e76e919e5e157c3d6250a820793bc1bb3.tar.bz2
drakx-net-1b68c21e76e919e5e157c3d6250a820793bc1bb3.tar.xz
drakx-net-1b68c21e76e919e5e157c3d6250a820793bc1bb3.zip
If no profile is selected in netprofile, disable buttons until a profile
is chosen (#26776).
Diffstat (limited to 'bin/draknetprofile')
-rwxr-xr-xbin/draknetprofile6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/draknetprofile b/bin/draknetprofile
index 13ceabc..f06d8b7 100755
--- a/bin/draknetprofile
+++ b/bin/draknetprofile
@@ -177,9 +177,9 @@ gtkadd($w->{window},
0, gtknew('WrappedLabel', text => N("This tool allows to activate an existing network profile, and to manage (clone, delete) profiles.") . "\n\n" . N("To modify a profile, you have to activate it first.")),
1, gtknew('ScrolledWindow', width => 300, height => 150, child => $profiles_list),
0, gtknew('HButtonBox', children_loose => [
- $buttons{activate} = gtknew('Button', text => N("Activate"), clicked => \&set_selected_profile),
- $buttons{clone} = gtknew('Button', text => N("Clone"), clicked => \&clone_profile),
- $buttons{delete} = gtknew('Button', text => N("Delete"), clicked => \&delete_selected_profile),
+ $buttons{activate} = gtknew('Button', text => N("Activate"), clicked => \&set_selected_profile, sensitive => 0),
+ $buttons{clone} = gtknew('Button', text => N("Clone"), clicked => \&clone_profile, sensitive => 0),
+ $buttons{delete} = gtknew('Button', text => N("Delete"), clicked => \&delete_selected_profile, sensitive => 0),
gtknew('Button', text => N("Quit"), clicked => sub { Gtk2->main_quit }),
]),
]),