b18215bd6f
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); + } ``` |
||
---|---|---|
.. | ||
applications | ||
build-support | ||
common-updater | ||
data | ||
desktops | ||
development | ||
games | ||
misc | ||
os-specific | ||
servers | ||
shells | ||
stdenv | ||
test | ||
tools | ||
top-level |