diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-03-25 17:50:19 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-03-25 17:50:19 +0000 |
commit | a7dc045cf720a62371cc946cca72e11c234f3c96 (patch) | |
tree | 7ec61aa4456da640cc0e659c78c7e835406f7e8b | |
parent | b1e81e208b8553f1263b748991d2c4ecec7be578 (diff) | |
download | mgaonline-a7dc045cf720a62371cc946cca72e11c234f3c96.tar mgaonline-a7dc045cf720a62371cc946cca72e11c234f3c96.tar.gz mgaonline-a7dc045cf720a62371cc946cca72e11c234f3c96.tar.bz2 mgaonline-a7dc045cf720a62371cc946cca72e11c234f3c96.tar.xz mgaonline-a7dc045cf720a62371cc946cca72e11c234f3c96.zip |
(configure) display update frenquency in hours and intial delay in minutes
-rw-r--r-- | NEWS | 4 | ||||
-rwxr-xr-x | mdkapplet-config | 14 |
2 files changed, 16 insertions, 2 deletions
@@ -1,3 +1,7 @@ +- mdkapplet-config + o display update frenquency in hours + o display intial delay in minutes + Version 2.75 - 19 March 2009 - mdkapplet diff --git a/mdkapplet-config b/mdkapplet-config index 955afffc..ab412b6e 100755 --- a/mdkapplet-config +++ b/mdkapplet-config @@ -46,6 +46,10 @@ sub configure() { # convert from ms to seconds: $config{FIRST_CHECK_DELAY} /= 1000; + # convert from seconds to minutes : + $config{FIRST_CHECK_DELAY} /= 60; + # convert from seconds to hours : + $config{UPDATE_FREQUENCY} /= 3600; my $res = fill_n_run_portable_dialog( @@ -54,15 +58,21 @@ sub configure() { get_banner(N("Updates Configuration")), gtknew('Label_Left', text => N("Here you can configure the updates applet"), @common), gtknew('Table', col_spacings => 5, row_spacings => 5, children => [ - [ N("Update frequency (seconds)"), + [ N("Update frequency (hours)"), gtknew('Entry', text_ref => \$config{UPDATE_FREQUENCY}) ], - [ N("First check delay (seconds)"), + [ N("First check delay (minutes)"), gtknew('Entry',text_ref => \$config{FIRST_CHECK_DELAY}) ], ]), create_okcancel($w), #, N("Next"), N("Cancel")), ]); if ($res) { + # convert from seconds to minutes : + $config{FIRST_CHECK_DELAY} *= 60; + + # convert from seconds to hours : + $config{UPDATE_FREQUENCY} *= 3600; + # convert back into ms from seconds: $config{FIRST_CHECK_DELAY} *= 1000; |