[balsa] Save mtime when syncing
- From: Peter Bloomfield <PeterB src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [balsa] Save mtime when syncing
- Date: Sat, 23 Jan 2010 04:16:28 +0000 (UTC)
commit 6073607d91cc9e2c23cb60357098a53cf7c1def9
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Fri Jan 22 23:15:43 2010 -0500
Save mtime when syncing
* libbalsa/libbalsa-conf.c (lbc_sync): do not insert blank
comments; save mtime when syncing.
ChangeLog | 5 +++++
libbalsa/libbalsa-conf.c | 11 +----------
2 files changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5df2a55..daebb42 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2010-01-22 Peter Bloomfield
+ * libbalsa/libbalsa-conf.c (lbc_sync): do not insert blank
+ comments; save mtime when syncing.
+
+2010-01-22 Peter Bloomfield
+
* libbalsa/address-book-gpe.c (libbalsa_address_book_gpe_load):
more sqlite3_free fixes.
diff --git a/libbalsa/libbalsa-conf.c b/libbalsa/libbalsa-conf.c
index 00f728c..b724599 100644
--- a/libbalsa/libbalsa-conf.c
+++ b/libbalsa/libbalsa-conf.c
@@ -477,7 +477,6 @@ libbalsa_conf_drop_all(void)
static void
lbc_sync(LibBalsaConf * conf)
{
- gchar **groups;
gchar *buf;
gsize len;
GError *error = NULL;
@@ -485,15 +484,6 @@ lbc_sync(LibBalsaConf * conf)
if (!conf->changes)
return;
- groups = g_key_file_get_groups(conf->key_file, NULL);
- if (*groups) {
- gchar **group;
-
- for (group = &groups[1]; *group; group++)
- g_key_file_set_comment(conf->key_file, *group, NULL, "", NULL);
- }
- g_strfreev(groups);
-
buf = g_key_file_to_data(conf->key_file, &len, &error);
if (error) {
#if DEBUG
@@ -505,6 +495,7 @@ lbc_sync(LibBalsaConf * conf)
return;
}
+ conf->mtime = time(NULL);
if (!g_file_set_contents(conf->path, buf, len, &error)) {
if (error) {
#if DEBUG
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]