changeset 77140:f9e6e90b6141

(xrm_get_preference_database, Fmac_get_preference) [TARGET_API_MAC_CARBON]: Use CFPreferencesAppSynchronize.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Thu, 12 Apr 2007 08:11:16 +0000
parents 8658cdd16704
children a2c0f9d173e8
files src/mac.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/mac.c	Thu Apr 12 04:16:47 2007 +0000
+++ b/src/mac.c	Thu Apr 12 08:11:16 2007 +0000
@@ -1835,6 +1835,8 @@
       if (app_id == NULL)
 	goto out;
     }
+  if (!CFPreferencesAppSynchronize (app_id))
+    goto out;
 
   key_set = CFSetCreateMutable (NULL, 0, &kCFCopyStringSetCallBacks);
   if (key_set == NULL)
@@ -4650,6 +4652,9 @@
       if (app_id == NULL)
 	goto out;
     }
+  if (!CFPreferencesAppSynchronize (app_id))
+    goto out;
+
   key_str = cfstring_create_with_string (XCAR (key));
   if (key_str == NULL)
     goto out;