gnome3.evolution-data-server: Hardcode more GSettings schemas
I used Coccinelle to create a base patch: spatch --sp-file hardcode-gsettings.cocci --dir src/ --in-place ```cocci @@ expression GSETTINGS_SCHEMA; expression settings; @@ - settings = g_settings_new (GSETTINGS_SCHEMA); + { + GSettingsSchemaSource *schema_source; + GSettingsSchema *schema; + schema_source = g_settings_schema_source_new_from_directory ("@ESD_GSETTINGS_PATH@", g_settings_schema_source_get_default (), TRUE, NULL); + schema = g_settings_schema_source_lookup (schema_source, GSETTINGS_SCHEMA, FALSE); + settings = g_settings_new_full (schema, NULL, NULL); + g_settings_schema_source_unref (schema_source); + g_settings_schema_unref (schema); + } ```
parent
4557b9f1
Please register or sign in to comment