[Xfce4-commits] <xfconf:master> Use a seconds timeout to reduce system wakeups.
Nick Schermer
noreply at xfce.org
Mon Jan 25 12:14:03 CET 2010
Updating branch refs/heads/master
to 2c92f17925395ec33c1aa38730c07e7bec0db101 (commit)
from cbc151cb685896c0700f4d5cb31851a7db3aa02f (commit)
commit 2c92f17925395ec33c1aa38730c07e7bec0db101
Author: Nick Schermer <nick at xfce.org>
Date: Mon Jan 25 12:11:22 2010 +0100
Use a seconds timeout to reduce system wakeups.
xfconfd/xfconf-backend-perchannel-xml.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/xfconfd/xfconf-backend-perchannel-xml.c b/xfconfd/xfconf-backend-perchannel-xml.c
index 0e329e4..3a0fbea 100644
--- a/xfconfd/xfconf-backend-perchannel-xml.c
+++ b/xfconfd/xfconf-backend-perchannel-xml.c
@@ -69,7 +69,7 @@
#define CONFIG_DIR_STEM "xfce4/xfconf/" XFCONF_BACKEND_PERCHANNEL_XML_TYPE_ID "/"
#define CONFIG_FILE_FMT CONFIG_DIR_STEM "%s.xml"
#define CACHE_TIMEOUT (20*60*1000) /* 20 minutes */
-#define WRITE_TIMEOUT (5*1000) /* 5 seconds */
+#define WRITE_TIMEOUT (5) /* 5 seconds */
#define MAX_PROP_PATH (4096)
struct _XfconfBackendPerchannelXml
@@ -1014,9 +1014,9 @@ xfconf_backend_perchannel_xml_schedule_save(XfconfBackendPerchannelXml *xbpx,
if(xbpx->save_id)
g_source_remove(xbpx->save_id);
- xbpx->save_id = g_timeout_add(WRITE_TIMEOUT,
- xfconf_backend_perchannel_xml_save_timeout,
- xbpx);
+ xbpx->save_id = g_timeout_add_seconds(WRITE_TIMEOUT,
+ xfconf_backend_perchannel_xml_save_timeout,
+ xbpx);
}
static XfconfChannel *
More information about the Xfce4-commits
mailing list