diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/drakguard | 12 |
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 } ), ]), ]) ) : ()), ]), |