[Telepathy-commits] [telepathy-mission-control/master] Use _mcd_file_set_contents()

Alberto Mardegan alberto.mardegan at nokia.com
Mon Mar 16 03:14:18 PDT 2009


---
 src/mcd-account-manager.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/mcd-account-manager.c b/src/mcd-account-manager.c
index d2dfe9f..d1b6e09 100644
--- a/src/mcd-account-manager.c
+++ b/src/mcd-account-manager.c
@@ -39,6 +39,7 @@
 #include "mcd-account.h"
 #include "mcd-account-config.h"
 #include "mcd-dbusprop.h"
+#include "mcd-misc.h"
 #include "_gen/interfaces.h"
 
 #define WRITE_CONF_DELAY    500
@@ -598,7 +599,7 @@ write_conf (gpointer userdata)
 	return FALSE;
     }
     filename = get_account_conf_filename ();
-    ok = g_file_set_contents (filename, data, len, &error);
+    ok = _mcd_file_set_contents (filename, data, len, &error);
     g_free (filename);
     g_free (data);
     if (G_UNLIKELY (!ok))
@@ -823,8 +824,9 @@ mcd_account_manager_init (McdAccountManager *account_manager)
 	g_free (dirname);
 
         DEBUG ("Creating file");
-	g_file_set_contents (conf_filename, INITIAL_CONFIG_FILE_CONTENTS,
-			     sizeof (INITIAL_CONFIG_FILE_CONTENTS) - 1, NULL);
+	_mcd_file_set_contents (conf_filename, INITIAL_CONFIG_FILE_CONTENTS,
+                                sizeof (INITIAL_CONFIG_FILE_CONTENTS) - 1,
+                                NULL);
     }
     g_key_file_load_from_file (priv->keyfile, conf_filename,
 			       G_KEY_FILE_KEEP_COMMENTS, &error);
-- 
1.5.6.5




More information about the telepathy-commits mailing list