From 94723312ae578b847827f56df0a67a2df2e24f68 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 13 Aug 2008 13:51:21 +0000 Subject: update time settings when modified in widgets --- bin/drakguard | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'bin') 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 } ), ]), ]) ) : ()), ]), -- cgit v1.2.1