Mon, 14 Oct 2024 23:41:43 -0500
Port Debug Window to GSettings
Testing Done:
Opened debug window, set filter string, toggled invert/highlight, and confirmed the window changed, along with stuff ending up in the `.ini`.
Reviewed at https://reviews.imfreedom.org/r/3572/
|
43009
df1a36761198
Port Debug Window to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
1 | schemas_dir = get_option('datadir') / 'glib-2.0' / 'schemas' |
|
df1a36761198
Port Debug Window to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
2 | settings_schemas = [ |
|
df1a36761198
Port Debug Window to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
3 | 'im.pidgin.Pidgin3.Debug.gschema.xml', |
|
df1a36761198
Port Debug Window to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
4 | ] |
|
df1a36761198
Port Debug Window to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
5 | |
|
df1a36761198
Port Debug Window to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
6 | install_data(settings_schemas, install_dir: schemas_dir) |
|
df1a36761198
Port Debug Window to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
7 | gnome.post_install(glib_compile_schemas: true) |
|
df1a36761198
Port Debug Window to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
8 | |
|
df1a36761198
Port Debug Window to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
9 | # Compile the schemas in the current directory; this is only useful for testing |
|
df1a36761198
Port Debug Window to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
10 | pidgin_schemas = [gnome.compile_schemas(depend_files: files(settings_schemas))] |
|
df1a36761198
Port Debug Window to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
11 | testenv.prepend('GSETTINGS_SCHEMA_DIR', meson.current_build_dir()) |