Enlightenment CVS committal
Author : devilhorns
Project : e_modules
Module : tclock
Dir : e_modules/tclock
Modified Files:
e_mod_config.c
Log Message:
If we're not showing time, no need to poll every second.
===================================================================
RCS file: /cvs/e/e_modules/tclock/e_mod_config.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- e_mod_config.c 19 May 2006 10:43:18 -0000 1.19
+++ e_mod_config.c 21 May 2006 15:29:30 -0000 1.20
@@ -121,16 +121,21 @@
Config_Item *ci;
ci = cfd->data;
- ci->resolution = cfdata->resolution;
+ ci->show_date = cfdata->show_date;
+ ci->show_time = cfdata->show_time;
+ ci->time_format = cfdata->time_format;
+ ci->date_format = cfdata->date_format;
+
+ ci->resolution = cfdata->resolution;
if (cfdata->resolution == RESOLUTION_MINUTE)
ci->poll_time = 60.0;
else
ci->poll_time = 1.0;
-
- ci->show_date = cfdata->show_date;
- ci->show_time = cfdata->show_time;
- ci->time_format = cfdata->time_format;
- ci->date_format = cfdata->date_format;
+
+ /* If we're not showing time, no reason to update every second */
+ if (!cfdata->show_time)
+ ci->poll_time = 60.0;
+
e_config_save_queue();
_tclock_config_updated(ci->id);
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs