diff options
-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; } |