summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-08-13 13:51:21 +0000
committerOlivier Blin <oblin@mandriva.com>2008-08-13 13:51:21 +0000
commit94723312ae578b847827f56df0a67a2df2e24f68 (patch)
treebc464bb2d9c61f6b28ab371e286ffb48d7d4374d
parent67ef9f0900970968b71421ebed01f0da697a4da2 (diff)
downloaddrakguard-94723312ae578b847827f56df0a67a2df2e24f68.tar
drakguard-94723312ae578b847827f56df0a67a2df2e24f68.tar.gz
drakguard-94723312ae578b847827f56df0a67a2df2e24f68.tar.bz2
drakguard-94723312ae578b847827f56df0a67a2df2e24f68.tar.xz
drakguard-94723312ae578b847827f56df0a67a2df2e24f68.zip
update time settings when modified in widgets
-rwxr-xr-xbin/drakguard12
1 files changed, 8 insertions, 4 deletions
diff --git a/bin/drakguard b/bin/drakguard
index 707f89f..8bb581b 100755
--- a/bin/drakguard
+++ b/bin/drakguard
@@ -144,16 +144,20 @@ gtkadd($w->{window},
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 => $time_start_h),
+ gtknew('SpinButton', lower => 0, upper => 23, step_increment => 1, value => $time_start_h,
+ value_changed => sub { $time_start_h = $_[0]->get_value } ),
gtknew('Label', text => ':'),
- gtknew('SpinButton', lower => 0, upper => 60, step_increment => 1, value => $time_start_m),
+ gtknew('SpinButton', lower => 0, upper => 59, step_increment => 1, value => $time_start_m,
+ value_changed => sub { $time_start_m = $_[0]->get_value } ),
]),
gtknew('Label'),
gtknew('Label', text => N("End:")),
gtknew('HBox', spacing => 2, children_tight => [
- gtknew('SpinButton', lower => 0, upper => 24, step_increment => 1, value => $time_stop_h),
+ gtknew('SpinButton', lower => 0, upper => 23, step_increment => 1, value => $time_stop_h,
+ value_changed => sub { $time_stop_h = $_[0]->get_value } ),
gtknew('Label', text => ':'),
- gtknew('SpinButton', lower => 0, upper => 60, step_increment => 1, value => $time_stop_m),
+ gtknew('SpinButton', lower => 0, upper => 59, step_increment => 1, value => $time_stop_m,
+ value_changed => sub { $time_stop_m = $_[0]->get_value } ),
]),
]) ) : ()),
]),