diff options
author | Stefano Karapetsas <[email protected]> | 2014-07-12 16:05:49 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-07-12 16:05:49 +0200 |
commit | 597c6684b817f34dd9dfb5bfc2943c0e2f052d93 (patch) | |
tree | 7d37d63c7091e978f48c88b0d7c919bdaa00c7ea /libmate-desktop | |
parent | 8a01e860a60e2254cbd8e5a8b57de1ec5602adf0 (diff) | |
download | mate-desktop-597c6684b817f34dd9dfb5bfc2943c0e2f052d93.tar.bz2 mate-desktop-597c6684b817f34dd9dfb5bfc2943c0e2f052d93.tar.xz |
libmate-desktop: Remove some compatibility with glib < 2.32
Diffstat (limited to 'libmate-desktop')
-rw-r--r-- | libmate-desktop/mate-gsettings.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/libmate-desktop/mate-gsettings.c b/libmate-desktop/mate-gsettings.c index 8f20e98..c29bcde 100644 --- a/libmate-desktop/mate-gsettings.c +++ b/libmate-desktop/mate-gsettings.c @@ -37,32 +37,15 @@ gboolean mate_gsettings_schema_exists (const gchar* schema) { -#if GLIB_CHECK_VERSION (2, 40, 0) GSettingsSchemaSource *schema_source; GSettingsSchema *schema_schema; -#else - const char * const *schemas; - gint i; -#endif gboolean schema_exists; -#if GLIB_CHECK_VERSION (2, 40, 0) schema_source = g_settings_schema_source_get_default(); schema_schema = g_settings_schema_source_lookup (schema_source, schema, FALSE); schema_exists = (schema_schema != NULL); if (schema_schema) g_settings_schema_unref (schema_schema); -#else - schemas = g_settings_list_schemas (); - schema_exists = FALSE; - - for (i = 0; schemas[i] != NULL; i++) { - if (g_strcmp0 (schemas[i], schema) == 0) { - schema_exists = TRUE; - break; - } - } -#endif return schema_exists; } |