Philip Withnall
ef049cbaca
docs: Move the GIOScheduler SECTION
...
Move it to a separate page, as there isn’t a `GIOScheduler` struct.
Ensure that all its functions/methods/types are correctly marked as
deprecated. Fix a few broken links about I/O priority which pointed to
it.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-15 11:48:23 +00:00
Philip Withnall
de56743bf6
docs: Move the GTask SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-14 15:17:22 +00:00
Philip Withnall
3d8f1dc203
docs: Move the GUnixFDMessage SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-14 15:12:53 +00:00
Philip Withnall
a84a704dc6
docs: Move the GVfs SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-14 15:12:53 +00:00
Philip Withnall
e42bfcb9ae
docs: Move the GSocketConnectable SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-14 14:32:19 +00:00
Philip Withnall
b480a733c0
docs: Move the GSubprocess SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-14 14:32:19 +00:00
Philip Withnall
7f6a126f39
docs: Move the GSocketControlMessage SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-14 14:32:19 +00:00
Philip Withnall
8af86abefb
docs: Move the GTlsConnection SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-14 14:32:19 +00:00
Philip Withnall
2abbaac589
docs: Move the GIOModule and GIOExtensionPoint SECTIONs
...
Move them to the struct docs.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-14 14:32:19 +00:00
Philip Withnall
fe8785862a
docs: Move the GIOError SECTION
...
Move it to a separate page as there’s no struct documentation to hang it
off.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-14 14:32:19 +00:00
Philip Withnall
d00a53416f
docs: Move the GFileIOStream SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-14 14:32:19 +00:00
Philip Withnall
172bb52e3f
docs: Move the GFile SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-14 14:32:19 +00:00
Philip Withnall
70881dbabe
docs: Move the GDBusObjectSkeleton SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-14 14:32:19 +00:00
Philip Withnall
108f7e4c65
docs: Move the GDBusObjectManagerServer SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-14 14:32:19 +00:00
Philip Withnall
74735d878f
docs: Move the dbusutils SECTION
...
Move it to a separate page as there’s no struct to hang the
documentation off.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-14 14:32:19 +00:00
Philip Withnall
3205b03df6
docs: Move the GDBusProxy SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-14 14:32:19 +00:00
Philip Withnall
e4de0868ee
docs: Move the GDBusObjectManager SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-14 14:32:19 +00:00
Philip Withnall
6492dd7054
docs: Move the GDBus name watching SECTION
...
Move it to a separate content page as there’s no struct to hang the docs
off.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-14 14:32:19 +00:00
Philip Withnall
beb56279ef
docs: Move the GDBus name owning SECTION
...
Move it to a separate content page as there’s no struct to hang the docs
off.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-14 14:32:19 +00:00
Philip Withnall
f25ede6d1c
docs: Move the GDBusMenuModel SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-14 14:32:19 +00:00
Philip Withnall
c7e21d2f59
docs: Move the GDBusIntrospection SECTION
...
Move it to a separate content page as there is no `GDBusIntrospection`
type to hang the rest of the documentation off.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-14 14:32:19 +00:00
Philip Withnall
84bed2f6ae
docs: Move the GDBusError SECTION
...
Adding it all to the docs for the `GDBusError` enum seemed a bit much,
so I moved it to its own content page.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-14 14:32:19 +00:00
Ondrej Holy
30e102518a
gcontenttype: Make filename valid utf-8 string before processing
...
The `g_content_type_guess_for_tree` function segfaults currently when
processing filenames that are not valid unicode strings. Let's use the
`g_filename_to_utf8` and `g_utf8_make_valid` functions before other
processing to prevent that.
Let's also add a test for it to avoid this in future.
Fixes: https://gitlab.gnome.org/GNOME/glib/-/issues/3168
2023-11-13 12:14:01 +00:00
Pablo Correa Gómez
8901ffeffe
ci: add muslc CI
2023-11-12 15:39:14 +01:00
Thomas Haller
7098250e7a
gutils: avoid race setting prgname from g_option_context_parse()/g_application_run()
...
g_option_context_parse()/g_application_run()/g_test_init() for
convenience also call g_set_prgname(), when the prgname is unset at this
point. This was racy.
Fix the race by using an atomic compare-and-exchange and only reset the
value, if it is unset still.
2023-11-08 16:36:14 +01:00
Philip Withnall
d59bac3f32
tests: Fix gio-tool.py test on macOS
...
Content types are different on macOS.
This fixes commit 9028c9bdf
.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3158
2023-11-08 10:29:43 +00:00
Emmanuele Bassi
85d93fb581
Merge branch 'codegen-deps-fixes' into 'main'
...
meson: Add missing dependencies for utility files for gdbus-codegen
See merge request GNOME/glib!3689
2023-11-07 15:21:27 +00:00
Philip Withnall
e87f8e9c5a
Merge branch '3158-info-critical' into 'main'
...
gio-tool-info: Fix critical warning when --attributes are specified and add basic unit tests
Closes #3158
See merge request GNOME/glib!3684
2023-11-07 14:37:11 +00:00
Philip Withnall
9028c9bdf3
gio-tool-info: Fix critical warning when --attributes are specified
...
When `--attributes` is specified and doesn’t include `standard::name` in
its list, `gio` would print a critical warning from the (mandatory) call
to `g_file_info_get_name()`.
Fix that by making the call to `g_file_info_get_name()` optional.
Add a unit test too.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Fixes : #3158
2023-11-07 13:51:56 +00:00
Philip Withnall
3e0a99a059
tests: Add a very basic test suite for gio-tool
...
It gives nowhere near full coverage, but it’s something we can build on
in future.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3158
Helps: #2950
2023-11-07 13:51:56 +00:00
Philip Withnall
077104e63b
tests: Run processes under test with G_DEBUG=fatal-warnings
...
Modify all the similar Python test wrappers to set
`G_DEBUG=fatal-warnings` in the environment of the program being tested,
so we can catch unexpected warnings/criticals.
Adding this because I noticed it was missing, not because I noticed a
warning/critical was being ignored.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
2023-11-07 13:51:56 +00:00
Philip Withnall
120e0ee649
tests: Set a default timeout value for GIO Python tests
...
Otherwise every test has to set one explicitly, which is a bit tedious.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
2023-11-07 13:51:56 +00:00
Philip Withnall
96ee1ea086
gio-tool: Print help output to stdout when --help is passed
...
If the help output is explicitly requested by the user, it’s
conventional for it to be printed to stdout rather than stderr.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
2023-11-07 13:51:56 +00:00
Philip Withnall
7c97b93837
gio-tool: Factor out repetitive lists of subcommands
...
Store their details in an array which can be iterated over instead.
This introduces no functional changes, just a cleanup which will allow
following commits to be neater.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
2023-11-07 13:51:56 +00:00
Sergey Bugaev
150965a9b3
gsocket: Fix detecting timeouts
...
If she socket is dispatched at exactly the previously set ready time,
it should already be considered to have timed out. This can easily
happen in practice when using a low resolution timer.
This fixes a test failure on GNU/Hurd, see
https://gitlab.gnome.org/GNOME/glib/-/issues/3148
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
2023-11-06 15:14:02 +03:00
Sergey Bugaev
6b7b211338
gio: Add G_IO_ERROR_DESTINATION_UNSET
...
...and map EDESTADDRREQ to it.
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
2023-11-06 15:04:01 +03:00
Philip Withnall
c37bf851e5
tests: Use g_assert_*() rather than g_assert() in stream-rw_all tests
...
It won’t get compiled out with `G_DISABLE_ASSERT`.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
2023-11-02 17:49:31 +00:00
Philip Withnall
a0de4963e8
tests: Use a pipe rather than a socketpair in stream-rw_all test
...
The test only needs a unidirectional channel, and a pipe is sufficient
for that.
This may simplify things when running the test on Hurd; see
https://gitlab.gnome.org/GNOME/glib/-/issues/3148#note_1874198 .
Additionally, set `O_NONBLOCK` on the pipe since the test seems to
expect that partial writes will succeed and that writes to a full buffer
will fail rather than block.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3148
2023-11-02 17:47:53 +00:00
Philip Withnall
9e95163a3c
docs: Move the GZlib*Compressor SECTIONs
...
Move them to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-11-02 16:30:23 +00:00
Philip Withnall
38c4809719
docs: Move the GWin32RegistryKey SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-11-02 16:30:23 +00:00
Philip Withnall
754047849c
docs: Move the GWin32*Stream SECTIONs
...
Move them to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-11-02 16:30:23 +00:00
Philip Withnall
7df150eaac
docs: Move the GVolumeMonitor SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-11-02 16:30:23 +00:00
Philip Withnall
ed247401bf
docs: Move the GVolume SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-11-02 16:30:23 +00:00
Philip Withnall
830db4e3c0
docs: Move the GUnixSocketAddress SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-11-02 16:30:23 +00:00
Philip Withnall
1390713af9
docs: Move the GUnix*Stream SECTIONs
...
Move them to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-11-02 16:30:23 +00:00
Philip Withnall
68d3f6e53a
docs: Move the GUnixCredentialsMessage SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-11-02 16:30:23 +00:00
Philip Withnall
2be7859f10
docs: Move the GUnixConnection SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-11-02 16:30:23 +00:00
Philip Withnall
78411d0975
docs: Move the GTlsDatabase SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-11-02 16:30:23 +00:00
Philip Withnall
15ae12628d
docs: Move the GTls*Connection SECTIONs
...
Move them to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-11-02 16:30:23 +00:00
Philip Withnall
a463a29522
docs: Move the GTlsCertificate SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-11-02 16:30:23 +00:00
Philip Withnall
45a815ae6d
docs: Move the GSocketService SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-11-02 16:30:23 +00:00
Philip Withnall
bf5c0cc2ba
docs: Move the GSocketListener SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-11-02 16:30:23 +00:00
Philip Withnall
1c34680833
docs: Move the GSocketAddressEnumerator SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-11-02 16:30:23 +00:00
Philip Withnall
832bf0f90c
docs: Move the GSimpleProxyResolver SECTIONs
...
Move them to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
2023-11-02 16:30:23 +00:00
Philip Withnall
c16c639729
docs: Move the GSettings SECTIONs
...
Move them to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-11-02 16:30:23 +00:00
Philip Withnall
8c3e0aa406
docs: Move the GRemoteActionGroup SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-11-02 16:30:23 +00:00
Philip Withnall
bfa5d99305
docs: Move the GDBusObject SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-11-02 16:30:23 +00:00
Philip Withnall
ac7cbb146e
docs: Move the gtls SECTION
...
Move it to a separate Markdown page.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-11-02 16:30:23 +00:00
Philip Withnall
1fdbc06385
meson: Add missing dependencies for utility files for gdbus-codegen
...
Various parts of the build (such as `objectmanager-rst-gen`) depend on
running `gdbus-codegen` after it’s been built, but they currently only
encode a dependency to the main codegen Python file and not the
supporting files. This can cause `gdbus-codegen` to fail with an
`ImportError` if the build races so that `objectmanager-rst-gen` is
built before the codegen supporting files.
Example failure here: https://gitlab.gnome.org/pwithnall/glib/-/jobs/3266471
```
FAILED: gio/tests/gdbus-object-manager-example/objectmanager-rst-gen-org.gtk.GDBus.Example.ObjectManager.Animal.rst gio/tests/gdbus-object-manager-example/objectmanager-rst-gen-org.gtk.GDBus.Example.ObjectManager.Cat.rst
/usr/bin/python3 gio/gdbus-2.0/codegen/gdbus-codegen --interface-prefix org.gtk.GDBus.Example.ObjectManager. --generate-rst objectmanager-rst-gen --output-directory gio/tests/gdbus-object-manager-example ../gio/tests/gdbus-object-manager-example/gdbus-example-objectmanager.xml
Traceback (most recent call last):
File "/builds/pwithnall/glib/_build/gio/gdbus-2.0/codegen/gdbus-codegen", line 53, in <module>
from codegen import codegen_main
File "/builds/pwithnall/glib/_build/gio/gdbus-2.0/codegen/codegen_main.py", line 29, in <module>
from . import dbustypes
File "/builds/pwithnall/glib/_build/gio/gdbus-2.0/codegen/dbustypes.py", line 22, in <module>
from . import utils
ImportError: cannot import name 'utils' from 'codegen' (/builds/pwithnall/glib/_build/gio/gdbus-2.0/codegen/__init__.py)
```
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
2023-11-02 14:26:31 +00:00
Zander Brown
d33752b5ce
gtask: Add g_task_return_prefixed_error()
...
An equivalent to g_propagate_prefixed_error, but for errors sent though
GTask, allowing tasks to easily provide extra context to callers.
2023-11-02 02:55:55 +00:00
Philip Withnall
d1eb463ce2
gio-tool: Remove unnecessary exit() call
...
All the calls to `usage()` are immediately followed by a `return` from
`main()` which sets an appropriate exit status.
Calling `exit()` early means that running `gio --help` returns exit
status 1, which is incorrect — it should (by convention) return 0.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
2023-11-02 00:50:21 +00:00
Simon McVittie
76148fc6db
tests: Don't assume that sh optimizes simple commands into exec
...
Depending on the operating system, /bin/sh might either be bash (for
example on Fedora or Arch) or dash (for example on Debian or Ubuntu)
or some other POSIX shell.
When bash is asked to run a simple command with no shell keywords or
metacharacters, like this one, it replaces itself with the program
via execve(), but dash does not have that optimization and treats it
like any other program invocation in a larger script: it will fork,
exec the program in the child, and wait for the child in the parent.
This seems like it conflicts with sleep_and_kill() assuming that it can
use the subprocess's process ID as the sleep(1) process ID. Specifically,
if it sends SIGKILL, it will go to the sh(1) process and not the sleep(1)
child, which could result in the sh(1) process being terminated and
its sleep(1) child being leaked.
To get the bash-like behaviour portably, explicitly use the exec builtin
to instruct the shell to replace itself with sleep(1), so that the
process ID previously used for the shell becomes the process ID of the
sleep process.
This appears to resolve an intermittent hang and test timeout on Debian
machines (especially slower ones), although I'm not 100% clear on the
mechanics of how it happens.
Resolves: https://gitlab.gnome.org/GNOME/glib/-/issues/3157
Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-11-01 17:56:48 +00:00
Marco Trevisan
d1fcb4f253
Merge branch 'gio-test-dependencies' into 'main'
...
tests: Fix dependency of test.gresource on test-generated.txt
See merge request GNOME/glib!3682
2023-11-01 14:55:25 +00:00
Philip Withnall
5ff31ae57d
Merge branch 'zbrown/fix-4ce58df8' into 'main'
...
codegen: install codegen, not just the wrapper
Closes #3161
See merge request GNOME/glib!3670
2023-11-01 14:22:29 +00:00
Philip Withnall
a61888bceb
tests: Fix dependency of test.gresource on test-generated.txt
...
`test-generated.txt` is listed in `test.gresource.xml`, so it needs to
be specified as a dependency in the `custom_target()` which uses
`test.gresource.xml`.
Fixes intermittent build failures like:
```
FAILED: gio/tests/test.gresource
/builds/GNOME/glib/_build/gio/glib-compile-resources --compiler=gcc --target=gio/tests/test.gresource --sourcedir=/builds/GNOME/glib/gio/tests --sourcedir=/builds/GNOME/glib/_build/gio/tests --internal ../gio/tests/test.gresource.xml
../gio/tests/test.gresource.xml: Failed to locate test-generated.txt in any source directory.
```
See !3671 and #3163 .
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
2023-11-01 11:24:17 +00:00
Philip Withnall
9695ddfc70
Revert "gio/tests: Add test generated txt as the resources test dependency"
...
This reverts commit 0b9900e4e7
.
The dependency was added in the wrong place: `test-generated.txt` is
needed when compiling `test.gresource`, not when compiling the test
which ultimately uses that gresource.
See !3671 and #3163 .
2023-11-01 11:10:39 +00:00
Marco Trevisan (Treviño)
0b9900e4e7
gio/tests: Add test generated txt as the resources test dependency
...
This is required by the resources used in some tests, however we did not
depend on it so we had some random build failures:
https://gitlab.gnome.org/3v1n0/glib/-/jobs/3253787
2023-10-27 18:41:51 +02:00
Zander Brown
e2433308c4
codegen: install codegen, not just the wrapper
...
Turns out, wasn't jhbuild this time
Fix: 4ce58df854
2023-10-27 04:21:58 +01:00
Alessandro Bono
168de73a73
meson: Improve PTRACE_O_EXITKILL presence check
...
The PTRACE_O_EXITKILL symbol in sys/ptrace.h is an enum member, not
a macro. The #ifdef check added to the GSubprocess test-case in
272ec5dbca
will not detect it.
Use cc.has_header_symbol() to properly detect it. According to the
documentation: "Symbols here include function, variable, #define,
type definition, etc.".
Fixes: 272ec5dbca
Closes: https://gitlab.gnome.org/GNOME/glib/-/issues/3156
2023-10-26 10:54:34 +02:00
Philip Withnall
58cce38f37
Merge branch 'migrate-to-gi-docgen8' into 'main'
...
Switch to using gi-docgen for docs (batch 8)
See merge request GNOME/glib!3667
2023-10-25 14:28:43 +00:00
Philip Withnall
14b02d2631
docs: Move the GUnixFDList SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
2f662b6063
docs: Move the GTlsPassword SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
c015ecf0b7
docs: Move the GTlsInteraction SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
850878dfaa
docs: Move the GTlsFileDatabase SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
74fbc75920
docs: Move the GThreadedSocketService SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
325e3a6f5b
docs: Move the GThemedIcon SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
5817f52222
docs: Move the GTestDBus SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
ed875eb4c9
docs: Move the GTcpWrapperConnection SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
97886412e8
docs: Move the GTcpConnection SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
8d45e4c66b
docs: Move the GSubprocessLauncher SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
1b94e0351f
docs: Move the GSrvTarget SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
481c856e04
docs: Move the GSimpleActionGroup SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
838388cc68
docs: Move the GSimpleAction SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
b0b5ed8c34
docs: Move the GResource SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
bbb5479d5a
docs: Move the GResolver SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
dfab5a3d29
docs: Move the GProxyResolver SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
7b32b5a9f0
docs: Move the GProxyAddressEnumerator SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
34fc02d5ac
docs: Move the GProxy SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
06c2e33707
docs: Move the GNetworkService SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
822521215b
docs: Move the GFilter*Stream SECTIONs
...
Move them to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
607eb851ba
docs: Move the GFile*Stream SECTIONs
...
Move them to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
6c930587ad
docs: Move the GDesktopAppInfo SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
47e58fb4c6
docs: Move the GDBusObjectProxy SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
99e25e74ef
docs: Move the GDBusObjectManagerClient SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:15 +01:00
Philip Withnall
264ebbbb2b
docs: Move the GDBusMethodInvocation SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:15 +01:00
Michael Catanzaro
eadbdb439e
Merge branch 'meson-version-bump' into 'main'
...
build: Bump Meson dependency to 1.2.0
See merge request GNOME/glib!3666
2023-10-25 13:23:53 +00:00
Alex Richardson
d0e03f0930
GType: introduce GTYPE_TO_POINTER/GPOINTER_TO_TYPE
...
On CHERI-enabled systems we use uintptr_t as the underlying storage for
GType and therefore casting to gsize strips the upper bits from a pointer.
Fix this by casting via uintptr_t instead and introduce a new set of
macros to convert between GType and pointers.
2023-10-25 12:01:02 +01:00
Philip Withnall
7fd9045065
build: Drop pkgconfig.generate variables for builtin directories
...
Meson has added these automatically since 0.62. This fixes a Meson
warning.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
2023-10-25 11:21:24 +01:00
Philip Withnall
4ce58df854
build: Change configure_file() to fs.copyfile() when copy is set
...
Meson has preferred `fs.copyfile()` since 0.62. This fixes a set of
Meson warnings.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
2023-10-25 11:20:36 +01:00
Philip Withnall
8831f65a4d
build: Drop a no-longer-needed Meson backwards compatibility check
...
See the previous commit.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
2023-10-24 17:00:24 +01:00
Philip Withnall
051c5336d4
docs: Move the GSocketConnection SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-24 10:58:56 +01:00
Philip Withnall
43b4e7e097
docs: Move the GSocketClient SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-24 10:58:56 +01:00
Philip Withnall
4f4ca75b4d
docs: Move the GSocketAddress SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-24 10:58:56 +01:00
Philip Withnall
bd753fb87c
docs: Move the GSocket SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-24 10:58:56 +01:00
Philip Withnall
0b0179678a
docs: Move the GSimplePermission SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-24 10:58:56 +01:00
Philip Withnall
2fc8f47358
docs: Move the GSimpleIOStream SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-24 10:58:56 +01:00
Philip Withnall
dcb382457d
docs: Move the GSimpleAsyncResult SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-24 10:58:56 +01:00
Philip Withnall
0d39a138c7
docs: Move the GSeekable SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-24 10:58:56 +01:00
Philip Withnall
bea92c4882
docs: Move the GProxyAddress SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-24 10:58:56 +01:00
Philip Withnall
658bb30f06
docs: Move the GPropertyAction SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-24 10:58:56 +01:00
Philip Withnall
ca02613987
docs: Move the GPowerProfileMonitor SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-24 10:58:56 +01:00
Philip Withnall
d9e35c264b
docs: Move the GPolllable*Stream SECTIONs
...
Move them to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-24 10:58:56 +01:00
Philip Withnall
ed34ddc355
docs: Move the GPermission SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-24 10:58:56 +01:00
Philip Withnall
723fc46223
docs: Move the GNotification SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-24 10:58:56 +01:00
Philip Withnall
e044045ea4
docs: Move the GNetworkMonitor SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-24 10:58:56 +01:00
Philip Withnall
ffff217a9d
docs: Move the GMemory*Stream SECTIONs
...
Move them to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-24 10:58:56 +01:00
Philip Withnall
22275f389b
docs: Move the GLoadableIcon SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-24 10:58:56 +01:00
Philip Withnall
226e9f16ea
docs: Move the GDBusServer SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-24 10:58:56 +01:00
Philip Withnall
1c2207d9fb
docs: Move the GOsxAppInfo SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 14:45:51 +01:00
Philip Withnall
cf7fd070c8
docs: Move the GNativeSocketAddress SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 14:45:51 +01:00
Philip Withnall
f17cb81ce5
docs: Move the GMountOperation SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 14:45:51 +01:00
Philip Withnall
47da98d7f7
docs: Move the GMenu SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 14:45:51 +01:00
Philip Withnall
49a94280c1
docs: Move the GListStore SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 14:45:51 +01:00
Philip Withnall
c834b843b9
docs: Move the GListModel SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 14:45:51 +01:00
Philip Withnall
b45c554da5
docs: Move the GOutputStream SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 14:45:51 +01:00
Philip Withnall
08a16e9143
docs: Move the GInputStream SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 14:45:51 +01:00
Philip Withnall
a8b28e312f
docs: Move the GInetSocketAddress SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 14:45:51 +01:00
Philip Withnall
55bf188365
docs: Move the GInetAddressMask SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 14:45:51 +01:00
Philip Withnall
d424383877
docs: Move the GInetAddress SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 14:45:51 +01:00
Philip Withnall
ca505f34f2
docs: Move the GFileEnumerator SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 14:45:51 +01:00
Philip Withnall
0576e82e9a
docs: Move the GFileDescriptorBased SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 14:45:51 +01:00
Philip Withnall
7e15d56013
docs: Move the GDebugControllerDBus SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 14:45:51 +01:00
Philip Withnall
9180d9234c
docs: Move the GNetworkAddress SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 13:43:27 +01:00
Philip Withnall
444d9be09c
docs: Move the GMount SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 13:43:27 +01:00
Philip Withnall
c5fb817b02
docs: Move the GMenuModel SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 13:43:27 +01:00
Philip Withnall
5ce7e8c4f9
docs: Move the GMemoryMonitor SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 13:43:27 +01:00
Philip Withnall
663f1a64f6
docs: Move the GFilenameCompleter SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 13:43:27 +01:00
Philip Withnall
4f9b00907e
docs: Move the GFileMonitor SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 13:43:27 +01:00
Philip Withnall
c8abf62ff1
docs: Move the GFileIcon SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 13:43:27 +01:00
Philip Withnall
ac6cc7e2b6
docs: Move the GEmblemedIcon SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 13:43:27 +01:00
Philip Withnall
7418261f4e
docs: Move the GEmblem SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 13:43:27 +01:00
Philip Withnall
396b0af3ab
docs: Move the GDrive SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 13:43:27 +01:00
Philip Withnall
508e164056
docs: Move the GFileAttribute SECTION to Markdown
...
It needs to be in a separate page because there isn’t actually a
`GFileAttribute` type.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 13:43:27 +01:00
Philip Withnall
34bb869da1
docs: Move the GFileInfo SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 13:18:13 +01:00
Philip Withnall
eefda8158e
docs: Move the GIOStream SECTION
...
Move the contents to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 13:18:13 +01:00
Philip Withnall
71ff617159
docs: Move the GDebugController SECTION
...
Move the contents to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 13:18:13 +01:00
Philip Withnall
bd5219a0c0
docs: Move the GDtlsConnection SECTIONs
...
Move them to the struct docs, for all DTLS classes.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 13:18:13 +01:00
Philip Withnall
92d8da4895
docs: Move the GInitable SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 13:18:13 +01:00
Philip Withnall
824ae3f931
docs: Move the GIcon SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 13:18:13 +01:00
Philip Withnall
9b4bcf1a44
docs: Move the GDBusMessage SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 13:18:13 +01:00