[balsa/gtk3] Remove source in public method



commit e676cd5810f106a70a4c18ceaec64891bce03ebd
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sun Mar 17 09:15:39 2013 -0400

    Remove source in public method
    
        * libbalsa/libbalsa-conf.c (libbalsa_conf_sync),
        (libbalsa_conf_sync_idle_cb): remove source in public method.

 ChangeLog                |    5 +++++
 libbalsa/libbalsa-conf.c |   22 +++++++++++-----------
 2 files changed, 16 insertions(+), 11 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 72a28ab..887c9aa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-17  Peter Bloomfield
+
+       * libbalsa/libbalsa-conf.c (libbalsa_conf_sync),
+       (libbalsa_conf_sync_idle_cb): remove source in public method.
+
 2013-03-16  Peter Bloomfield
 
        * libbalsa/mailbox_local.c (lbm_local_queue_save_tree): build
diff --git a/libbalsa/libbalsa-conf.c b/libbalsa/libbalsa-conf.c
index d4996aa..6c9888d 100644
--- a/libbalsa/libbalsa-conf.c
+++ b/libbalsa/libbalsa-conf.c
@@ -536,22 +536,13 @@ lbc_sync(LibBalsaConf * conf)
     g_free(buf);
 }
 
-void
-libbalsa_conf_sync(void)
-{
-    lbc_lock();
-    lbc_sync(&lbc_conf);
-    lbc_sync(&lbc_conf_priv);
-    lbc_unlock();
-}
-
 static guint lbc_sync_idle_id;
 #ifdef BALSA_USE_THREADS
 G_LOCK_DEFINE_STATIC(lbc_sync_idle_id);
 #endif                          /* BALSA_USE_THREADS */
 
-static gboolean
-libbalsa_conf_sync_idle_cb(gpointer data)
+void
+libbalsa_conf_sync(void)
 {
 #ifdef BALSA_USE_THREADS
     G_LOCK(lbc_sync_idle_id);
@@ -566,6 +557,15 @@ libbalsa_conf_sync_idle_cb(gpointer data)
 #ifdef BALSA_USE_THREADS
     G_UNLOCK(lbc_sync_idle_id);
 #endif                          /* BALSA_USE_THREADS */
+    lbc_lock();
+    lbc_sync(&lbc_conf);
+    lbc_sync(&lbc_conf_priv);
+    lbc_unlock();
+}
+
+static gboolean
+libbalsa_conf_sync_idle_cb(gpointer data)
+{
     libbalsa_conf_sync();
 
     return FALSE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]