From 1b68c21e76e919e5e157c3d6250a820793bc1bb3 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Tue, 17 Mar 2009 13:47:14 +0000 Subject: If no profile is selected in netprofile, disable buttons until a profile is chosen (#26776). --- bin/draknetprofile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') 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 }), ]), ]), -- cgit v1.2.1