Tue, 15 Oct 2024 00:47:42 -0500
Port prefs to AdwSwitchRow
Now that we depend on Adwaita 1.4, we can flip the switch on using these (pun intended).
This also simplifies some extra tracking we needed to do for activations and focus, since the Adwaita widgets do that for us.
Testing Done:
Opened prefs, confirmed all the switches were there, and toggled them all without any warnings.
Also used the mnemonics to toggle the switches from the keyboard.
Reviewed at https://reviews.imfreedom.org/r/3582/
|
41164
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
1 | libpurple_doc_content_files = [ |
|
41655
f0fdd404bfc4
Replace the old contributing docs with a link to the online version.
Gary Kramlich <grim@reaperworld.com>
parents:
41164
diff
changeset
|
2 | 'contributing.md', |
|
41164
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
3 | 'tut_c_plugins.md', |
|
40678
8f1d8122f07e
Add extra-dir options for gtkdoc-fixxref to correctly link to other gtkdoc books
Gary Kramlich <grim@reaperworld.com>
parents:
40613
diff
changeset
|
4 | ] |
|
8f1d8122f07e
Add extra-dir options for gtkdoc-fixxref to correctly link to other gtkdoc books
Gary Kramlich <grim@reaperworld.com>
parents:
40613
diff
changeset
|
5 | |
|
41164
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
6 | if get_option('doc') |
|
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
7 | libpurple_toml = configure_file( |
|
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
8 | input : 'libpurple.toml.in', |
|
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
9 | output : 'libpurple.toml', |
|
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
10 | configuration : version_conf, |
|
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
11 | install : true, |
|
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
12 | install_dir : docs_dir / 'libpurple', |
|
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
13 | ) |
|
38515
2d4d3a8fd23c
Add documentation to Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
14 | |
|
41164
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
15 | libpurple_doc = custom_target('libpurple-doc', |
|
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
16 | input : [ libpurple_toml, libpurple_gir[0] ], |
|
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
17 | output : 'libpurple', |
|
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
18 | command : [ |
|
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
19 | gidocgen, |
|
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
20 | 'generate', |
|
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
21 | '--quiet', |
|
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
22 | '--fatal-warnings', |
|
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
23 | '--config=@INPUT0@', |
|
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
24 | '--output-dir=@OUTPUT@', |
|
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
25 | '--no-namespace-dir', |
|
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
26 | '--content-dir=@0@'.format(meson.current_source_dir()), |
|
42581
73eda937c387
Add purple_contact_info_get_menu and PurpleContactInfo::populate-menu
Gary Kramlich <grim@reaperworld.com>
parents:
41801
diff
changeset
|
27 | '--add-include-path=@0@'.format(meson.global_build_root() / 'subprojects/birb/birb'), |
|
41164
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
28 | '--add-include-path=@0@'.format(meson.global_build_root() / 'subprojects/gplugin/gplugin'), |
|
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
29 | '@INPUT1@' |
|
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
30 | ], |
|
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
31 | depend_files : [ libpurple_doc_content_files ], |
|
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
32 | build_by_default : true, |
|
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
33 | install : true, |
|
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
34 | install_dir : docs_dir, |
|
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
35 | ) |
|
42656
df9aafbae930
Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
36 | |
|
df9aafbae930
Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
37 | test('doc-check', |
|
df9aafbae930
Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
38 | gidocgen, |
|
df9aafbae930
Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
39 | args: [ |
|
df9aafbae930
Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
40 | 'check', |
|
df9aafbae930
Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
41 | '--config', libpurple_toml, |
|
df9aafbae930
Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
42 | '--add-include-path=@0@'.format(meson.global_build_root() / 'subprojects/birb/birb'), |
|
df9aafbae930
Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
43 | '--add-include-path=@0@'.format(meson.global_build_root() / 'subprojects/gplugin/gplugin'), |
|
df9aafbae930
Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
44 | libpurple_gir[0], |
|
df9aafbae930
Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
45 | ], |
|
df9aafbae930
Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
46 | depends: libpurple_gir[0], |
|
df9aafbae930
Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
47 | verbose: true, |
|
df9aafbae930
Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
48 | ) |
|
42847
fbb0d252bc35
Move the documentation into more appropriate places
Gary Kramlich <grim@reaperworld.com>
parents:
42755
diff
changeset
|
49 | |
|
fbb0d252bc35
Move the documentation into more appropriate places
Gary Kramlich <grim@reaperworld.com>
parents:
42755
diff
changeset
|
50 | doc_targets += libpurple_doc |
|
41164
d861b10105fb
Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41056
diff
changeset
|
51 | endif |
|
38515
2d4d3a8fd23c
Add documentation to Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
52 |