summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-03-25 17:50:19 +0000
committerThierry Vignaud <tv@mandriva.org>2009-03-25 17:50:19 +0000
commita7dc045cf720a62371cc946cca72e11c234f3c96 (patch)
tree7ec61aa4456da640cc0e659c78c7e835406f7e8b
parentb1e81e208b8553f1263b748991d2c4ecec7be578 (diff)
downloadmgaonline-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--NEWS4
-rwxr-xr-xmdkapplet-config14
2 files changed, 16 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 71866457..7cc5113e 100644
--- a/NEWS
+++ b/NEWS
@@ -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;