diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 9 | ||||
| -rw-r--r-- | src/fileio.c | 4 | ||||
| -rw-r--r-- | src/xsettings.c | 22 |
3 files changed, 29 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 72e78724bab..5d06882cee7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2014-05-12 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * fileio.c (Ffile_executable_p): Doc tweak. | ||
| 4 | |||
| 5 | 2014-05-12 Jan Djärv <jan.h.d@swipnet.se> | ||
| 6 | |||
| 7 | * xsettings.c (init_gsettings): Use g_settings_schema_source_lookup | ||
| 8 | instead of deprecated g_settings_list_schemas if possible (Bug#17434). | ||
| 9 | |||
| 1 | 2014-05-08 Paul Eggert <eggert@cs.ucla.edu> | 10 | 2014-05-08 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 11 | ||
| 3 | * minibuf.c (read_minibuf): Avoid C99ism in previous patch (Bug#17430). | 12 | * minibuf.c (read_minibuf): Avoid C99ism in previous patch (Bug#17430). |
diff --git a/src/fileio.c b/src/fileio.c index 5659b6555d8..dcee70aa8b4 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -2546,7 +2546,9 @@ Use `file-symlink-p' to test for such links. */) | |||
| 2546 | 2546 | ||
| 2547 | DEFUN ("file-executable-p", Ffile_executable_p, Sfile_executable_p, 1, 1, 0, | 2547 | DEFUN ("file-executable-p", Ffile_executable_p, Sfile_executable_p, 1, 1, 0, |
| 2548 | doc: /* Return t if FILENAME can be executed by you. | 2548 | doc: /* Return t if FILENAME can be executed by you. |
| 2549 | For a directory, this means you can access files in that directory. */) | 2549 | For a directory, this means you can access files in that directory. |
| 2550 | \(It is generally better to use `file-accessible-directory-p' for that | ||
| 2551 | purpose, though.) */) | ||
| 2550 | (Lisp_Object filename) | 2552 | (Lisp_Object filename) |
| 2551 | { | 2553 | { |
| 2552 | Lisp_Object absname; | 2554 | Lisp_Object absname; |
diff --git a/src/xsettings.c b/src/xsettings.c index 844da19f638..5f4275df545 100644 --- a/src/xsettings.c +++ b/src/xsettings.c | |||
| @@ -795,17 +795,29 @@ init_gsettings (void) | |||
| 795 | { | 795 | { |
| 796 | #ifdef HAVE_GSETTINGS | 796 | #ifdef HAVE_GSETTINGS |
| 797 | GVariant *val; | 797 | GVariant *val; |
| 798 | const gchar *const *schemas; | ||
| 799 | int schema_found = 0; | 798 | int schema_found = 0; |
| 800 | 799 | ||
| 801 | #if ! GLIB_CHECK_VERSION (2, 36, 0) | 800 | #if ! GLIB_CHECK_VERSION (2, 36, 0) |
| 802 | g_type_init (); | 801 | g_type_init (); |
| 803 | #endif | 802 | #endif |
| 804 | 803 | ||
| 805 | schemas = g_settings_list_schemas (); | 804 | #if GLIB_CHECK_VERSION (2, 32, 0) |
| 806 | if (schemas == NULL) return; | 805 | { |
| 807 | while (! schema_found && *schemas != NULL) | 806 | GSettingsSchema *sc = g_settings_schema_source_lookup |
| 808 | schema_found = strcmp (*schemas++, GSETTINGS_SCHEMA) == 0; | 807 | (g_settings_schema_source_get_default (), |
| 808 | GSETTINGS_SCHEMA, | ||
| 809 | TRUE); | ||
| 810 | schema_found = sc != NULL; | ||
| 811 | if (sc) g_settings_schema_unref (sc); | ||
| 812 | } | ||
| 813 | #else | ||
| 814 | { | ||
| 815 | const gchar *const *schemas = g_settings_list_schemas (); | ||
| 816 | if (schemas == NULL) return; | ||
| 817 | while (! schema_found && *schemas != NULL) | ||
| 818 | schema_found = strcmp (*schemas++, GSETTINGS_SCHEMA) == 0; | ||
| 819 | } | ||
| 820 | #endif | ||
| 809 | if (!schema_found) return; | 821 | if (!schema_found) return; |
| 810 | 822 | ||
| 811 | gsettings_client = g_settings_new (GSETTINGS_SCHEMA); | 823 | gsettings_client = g_settings_new (GSETTINGS_SCHEMA); |