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
Philip Withnall
72b44dce76
docs: Move the GDBusAddress SECTION
...
Move it to the struct docs, although again this is a little suspect
because there is actually no `GDBusAddress` struct/type.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 13:18:13 +01:00
Philip Withnall
ef5ca0952b
docs: Move the GContentType SECTION
...
This might not work, as `GContentType` isn’t actually a defined type
(content types are just strings). It would be a bit weird to create a
separate page for content types, though, as the functions handling them
are very method-like and feel like they should be grouped together like
methods of a class.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 13:18:13 +01:00
Philip Withnall
b3b744aec6
docs: Move the GAsyncHelper SECTION
...
Move it to the struct docs (although this documentation is private
anyway).
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 13:18:13 +01:00
Philip Withnall
52248a9d69
docs: Move the GActionGroupExporter 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
1d2507a7e5
Merge branch 'ebassi/gir' into 'main'
...
Generate introspection data
See merge request GNOME/glib!3636
2023-10-23 12:13:39 +00:00
Philip Withnall
635100b1f5
gio: Fix invalid doc links
...
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-23 11:26:53 +01:00
Emmanuele Bassi
fe32c3f5c5
Generate introspection data
...
Currently, the introspection data for GLib and its sub-libraries is
generated by gobject-introspection, to avoid the cyclic dependency
between the two projects.
Since gobject-introspection is generally available on installed systems,
we can check for its presence, and generate the introspection data
directly from GLib.
This does introduce a cyclic dependency, which is why it's possible to
build GLib without introspection, then build gobject-introspection, and
finally rebuild GLib.
By having introspection data available during the GLib build, we can do
things like generating documentation; validating newly added API; and
close the loop between adding new API and it becoming available to non-C
consumers of the C ABI (i.e. language bindings).
2023-10-23 11:26:53 +01:00
Emmanuele Bassi
6e771f0e84
docs: Add missing annotation separator
2023-10-23 10:25:31 +01:00
Emmanuele Bassi
c5a1e4f6c3
docs: Remove duplicate interface field
2023-10-23 10:25:31 +01:00
Emmanuele Bassi
d026534753
docs: Replace deprecated Virtual tag
...
Use the (virtual) symbol annotation.
2023-10-23 10:25:31 +01:00
Emmanuele Bassi
3013a0ef4a
docs: Fix the annotation for GSubprocessLauncher
2023-10-23 10:25:31 +01:00
Emmanuele Bassi
d3d69cb8ba
docs: Fix annotations for GSimpleProxyResolver
...
Drop "nullable" from the default-proxy property docblock, and correctly
separate the annotation from the return value's description.
2023-10-23 10:25:31 +01:00
Emmanuele Bassi
cfb11a8d63
docs: Avoid a bare "returns:"
...
Lines inside a docblock cannot begin with "returns:", as that is the tag
for the documentation of the return value.
2023-10-23 10:25:30 +01:00
Emmanuele Bassi
c86f469c1e
Ignore autocleanups when generating introspection data
2023-10-23 10:25:30 +01:00
Philip Withnall
8629024243
tests: Skip appinfo/associations test if update-*-database not installed
...
If `update-desktop-database` or `update-mime-database` are not
installed, there are a few `GAppInfo` methods for modifying file
associations which will print a `g_warning()` when called. Something
like:
```
GLib-GIO-FATAL-WARNING: Failed to execute child process ‘update-desktop-database’ (No such file or directory)
```
(Example: https://gitlab.gnome.org/zamaudio/glib/-/jobs/3190053 )
This will cause the appinfo/associations test to fail, as warnings are
fatal.
If that’s going to happen, skip the test. We can’t hard-depend on these
tools as they are external to GLib and only needed for a few operations.
Instead we have a soft runtime dependency on them; that should be
reflected in the tests.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3148
2023-10-22 23:34:00 +01:00
Damien Zammit
f25a9ca10c
Initial test of Hurd CI - (run_tests.sh status ignored)
2023-10-18 23:33:04 +00:00
Philip Withnall
21c6ebf65b
Merge branch 'wip/kabus/new-mtime' into 'main'
...
gio: add a file copy flag for default modification time
Closes #3140
See merge request GNOME/glib!3643
2023-10-18 14:45:49 +00:00
Aleksandr Mezin
b9c90c3a3e
GApplicationCommandLine: add print[err]_literal()
...
GJS (and likely other language bindigs relying on introspection)
can't use `g_application_command_line_print()`/`_printerr()`.
2023-10-18 01:20:23 +03:00
Philip Withnall
130c2d6373
build: Fix -Dlibelf=disabled on Linux
...
Commit f6c40b1d
fixed libelf detection on FreeBSD (where the library has
no pkg-config file and needs to be found via `find_library()`), but
broke `-Dlibelf=disabled` on Linux, as `get_option('libelf')` was no
longer checked.
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
Fixes : #3120
2023-10-17 15:04:19 +01:00
Matthias Clasen
2b22b43edd
docs: Move the GDBusInterfaceSkeleton SECTION
...
Move content to struct docs.
Helps: #3037
2023-10-17 11:20:20 +01:00
Matthias Clasen
8c7591addf
docs: Move the GDBusInterface SECTION
...
Move content to struct docs.
Helps: #3037
2023-10-17 11:20:17 +01:00
Matthias Clasen
2d1a9ed5a3
docs: Move the GDBusConnection SECTION
...
Move contents to struct docs.
Helps: #3037
2023-10-17 11:20:14 +01:00
Matthias Clasen
c0243f7eaa
docs: Move the GDBusAuthObserver SECTION
...
Move contents to struct docs.
Helps: #3037
2023-10-17 11:20:12 +01:00
Matthias Clasen
985bc0fab3
docs: Move the GDBusActionGroup SECTION
...
Move content to struct docs.
Helps: #3037
2023-10-17 11:20:10 +01:00
Matthias Clasen
f39640b759
docs: Move the GDataOutputStream SECTION
...
Move content to struct docs.
Helps: #3037
2023-10-17 11:20:08 +01:00
Matthias Clasen
8371b893a2
docs: Move the GDataInputStream SECTION
...
Not much to move.
Helps: #3037
2023-10-17 11:20:06 +01:00
Matthias Clasen
081cc5af25
docs: Move the GDatagramBased SECTION
...
Move contents to struct docs.
Helps: #3037
2023-10-17 11:20:03 +01:00
Matthias Clasen
926f56c7c7
docs: Move the GCredentials SECTION
...
Move contents to struct docs.
Helps: #3037
2023-10-17 11:20:00 +01:00
Matthias Clasen
dad6ec9651
docs: Move the GConverterOutputStream SECTION
...
Move content to struct docs.
Helps: #3037
2023-10-17 11:19:57 +01:00
Matthias Clasen
b70b164ba6
docs: Move the GConverterInputStream SECTION
...
Move content to struct docs.
Helps: #3037
2023-10-17 11:19:55 +01:00
Matthias Clasen
174073722e
docs: Move the GConverter SECTION
...
Move the content to the struct docs.
Helps: #3037
2023-10-17 11:19:52 +01:00
Matthias Clasen
747b81409d
docs: Move the GCharsetConverter SECTION
...
Not much to move here.
Helps: #3037
2023-10-17 11:19:49 +01:00
Matthias Clasen
e267653eab
docs: Move the GCancellable SECTION
...
Move the contents into the struct docs.
Helps: #3037
2023-10-17 11:19:46 +01:00
Matthias Clasen
3d5d3bceea
docs: Move the GBytesIcon SECTION
...
Move the contents into the struct docs.
Helps: #3037
2023-10-17 11:19:44 +01:00
Matthias Clasen
93788dfb07
docs: Move the GAppInfoMonitor SECTION
...
Move the contents to the struct docs.
Helps: #3037
2023-10-17 11:19:41 +01:00
Matthias Clasen
bf9bf0b0cc
docs: Move the GBufferedOutputStream SECTION
...
Move the contents to the struct docs.
Helps: #3037
2023-10-17 11:19:38 +01:00
Matthias Clasen
08990badb6
docs: Move the GBufferedInputStream SECTION
...
Move the contents to the struct docs.
Helps: #3037
2023-10-17 11:19:27 +01:00
Matthias Clasen
f7b5e3b37e
docs: Move the GAsyncResult SECTION
...
Move the content to the struct docs.
Helps: #3037
2023-10-17 10:57:22 +01:00
Matthias Clasen
331c137ee1
docs: Move the GAsyncInitable SECTION
...
Move the contents to the struct docs.
Helps: #3037
2023-10-17 10:57:14 +01:00
Matthias Clasen
840cfd1ab7
docs: Move the GApplicationCommandline SECTION
...
Move the contents to the struct docs.
Helps: #3037
2023-10-17 10:57:10 +01:00
Matthias Clasen
75de7e8628
docs: Move the GApplication SECTION
...
Move the contents to the struct docs.
Helps: #3037
2023-10-17 10:57:06 +01:00
Matthias Clasen
61d869467f
docs: Move the GAppInfo SECTION
...
Move the contents to the struct docs.
Helps: #3037
2023-10-17 10:57:01 +01:00
Matthias Clasen
5ab04d05dc
docs: Move the GActionMap SECTION
...
Move the contents to the struct docs.
Helps: #3037
2023-10-17 10:56:54 +01:00
Matthias Clasen
524610ab6e
docs: Move the GActionGroup SECTION
...
Move the contents to the struct docs.
Helps: #3037
2023-10-17 10:56:50 +01:00
Matthias Clasen
34bdf32b38
docs: Move the GAction SECTION
...
Move it to the struct docs.
Helps: #3037
2023-10-17 10:56:42 +01:00
Philip Withnall
fa165204ae
Merge branch 'fix-warnings-clang-windows' into 'main'
...
Fix warnings with Clang on Windows and enable --Werror in CI
See merge request GNOME/glib!3635
2023-10-16 21:29:09 +00:00
Khalid Abu Shawarib
c70b8a7500
gio-tool: add a "default-modified-time" option
...
As with `default-permissions` option, this overrides the `perserve`
option.
2023-10-16 18:12:49 +03:00
Khalid Abu Shawarib
db01c11540
gio: add tests for default modification time flag
...
Add test cases for the G_FILE_COPY_TARGET_DEFAULT_MODIFIED_TIME
file copy flag.
2023-10-16 18:12:49 +03:00
Khalid Abu Shawarib
8d91430279
gio: add a file copy flag for default modification time
...
Add a default modification timestamp flag to g_file_copy so that it
doesn't copy the modification time from the source file as it does by
default. Similarly to G_FILE_COPY_TARGET_DEFAULT_PERMS, this flag
overrides the G_FILE_COPY_ALL_METADATA flag.
Fixes: https://gitlab.gnome.org/GNOME/glib/-/issues/3140
2023-10-16 18:12:49 +03:00
Emmanuele Bassi
ccc36a2fde
build: Simplify MIPS test check
...
Make the condition more readable, and easy to extend if necessary.
Follow-up to: !3640
2023-10-16 13:11:27 +01:00
Philip Withnall
0a6e19feee
Merge branch 'test5-no-mips' into 'main'
...
GIO/tests: skip test_resources_binary on MIPS platforms
See merge request GNOME/glib!3640
2023-10-16 12:05:06 +00:00
YunQiang Su
8105916998
GIO/tests: skip test_resources_binary on MIPS platform
...
There are some flavors of MIPS ABIs, such like r6 vs legacy,
nan2008 vs nan1985 etc.
The `cc -r` may not produce the correct elf binaries.
So let's skip this test for MIPS.
2023-10-16 07:20:21 -04:00