# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1176365476 0 # Node ID f9e6e90b6141b6f750d08e507ab1d22fafcf84a6 # Parent 8658cdd167048c9031a673e79a0b91bf3b117583 (xrm_get_preference_database, Fmac_get_preference) [TARGET_API_MAC_CARBON]: Use CFPreferencesAppSynchronize. diff -r 8658cdd16704 -r f9e6e90b6141 src/mac.c --- 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;