3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/gnome-3/core/evolution-data-server
Jan Tojnar b18215bd6f
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);
+ }
```
2019-08-12 18:31:09 +02:00
..
default.nix gnome3.evolution-data-server: 3.32.3 -> 3.32.4 2019-07-19 19:01:14 -04:00
fix-paths.patch
hardcode-gsettings.patch gnome3.evolution-data-server: Hardcode more GSettings schemas 2019-08-12 18:31:09 +02:00