summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-27 00:52:17 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-27 00:52:17 +0000
commit3cb4c891f814a5e22f48a355e8a42b128739e693 (patch)
tree03e54e982e6fce8bf532e5c0fa66f6b76cb27011 /bin
parentbf044543c197e277d131b5b3bd46e8690e6cfbbf (diff)
downloaddrakguard-3cb4c891f814a5e22f48a355e8a42b128739e693.tar
drakguard-3cb4c891f814a5e22f48a355e8a42b128739e693.tar.gz
drakguard-3cb4c891f814a5e22f48a355e8a42b128739e693.tar.bz2
drakguard-3cb4c891f814a5e22f48a355e8a42b128739e693.tar.xz
drakguard-3cb4c891f814a5e22f48a355e8a42b128739e693.zip
make the whole time control hbox insensitive to simplify
Diffstat (limited to 'bin')
-rwxr-xr-xbin/drakguard14
1 files changed, 5 insertions, 9 deletions
diff --git a/bin/drakguard b/bin/drakguard
index 89db0fc..b3ab84e 100755
--- a/bin/drakguard
+++ b/bin/drakguard
@@ -105,23 +105,19 @@ gtkadd($w->{window},
0, gtknew('CheckButton', text => N("Allow connections only between these times:"),
active_ref => \$time_control, sensitive_ref => \$enable,
toggled => \&update_time_change),
- 0, gtknew('HBox', spacing => 20, children_tight => [
+ 0, gtknew('HBox', sensitive_ref => \$allow_time_change, spacing => 20, children_tight => [
gtknew('Label', text => N("Start:")),
gtknew('HBox', spacing => 2, children_tight => [
- gtknew('SpinButton', lower => 0, upper => 24, step_increment => 1, value => 18,
- sensitive_ref => \$allow_time_change),
+ gtknew('SpinButton', lower => 0, upper => 24, step_increment => 1, value => 18),
gtknew('Label', text => ':'),
- gtknew('SpinButton', lower => 0, upper => 60, step_increment => 1,
- sensitive_ref => \$allow_time_change),
+ gtknew('SpinButton', lower => 0, upper => 60, step_increment => 1),
]),
gtknew('Label'),
gtknew('Label', text => N("End:")),
gtknew('HBox', spacing => 2, children_tight => [
- gtknew('SpinButton', lower => 0, upper => 24, step_increment => 1, value => 21,
- sensitive_ref => \$allow_time_change),
+ gtknew('SpinButton', lower => 0, upper => 24, step_increment => 1, value => 21),
gtknew('Label', text => ':'),
- gtknew('SpinButton', lower => 0, upper => 60, step_increment => 1,
- sensitive_ref => \$allow_time_change),
+ gtknew('SpinButton', lower => 0, upper => 60, step_increment => 1),
]),
]),
]),