Philip Withnall
6e4d50fa5c
docs: Move the gunixmounts SECTION
...
Move it to a separate page.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-15 11:48:23 +00:00
Philip Withnall
9c414d437e
docs: Move the gpollableutils SECTION
...
Move it to a separate page.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-15 11:48:23 +00:00
Philip Withnall
708de2fc12
docs: Move the gnetworking SECTION
...
Move it to a separate page.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-15 11:48:23 +00:00
Philip Withnall
de8e39b344
docs: Move the gmenumodel SECTION
...
Move it to a separate page, since it doesn’t quite make sense to
incorporate into the `GDBusConnection` docs.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-15 11:48:23 +00:00
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
4ef365e5d0
ghmac: Add a boxed type so it can be introspected properly
...
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2023-11-15 11:09:39 +00:00
Philip Withnall
e594321ca4
docs: Move the GIOChannel SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-15 11:09:39 +00:00
Philip Withnall
08f914b290
gobject: Ensure gobject from builddir is used when generating GLib-2.0.gir
...
Otherwise the installed one will be used, which will mean that new API
will not be available when linking.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2023-11-15 11:09:39 +00:00
Philip Withnall
7d5b6e1a85
docs: Move the GHmac SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-15 11:09:39 +00:00
Philip Withnall
09b728b2da
Merge branch 'migrate-to-gi-docgen10' into 'main'
...
Switch to using gi-docgen for docs (batch 10)
See merge request GNOME/glib!3709
2023-11-14 15:46:30 +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
924e164a73
docs: Move the GRelation SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-14 14:47:53 +00:00
Philip Withnall
3981c1c704
docs: Move the GCompletion SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-14 14:47:53 +00:00
Philip Withnall
a11d3604c2
docs: Move the GCache SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3037
2023-11-14 14:47: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
Philip Withnall
00f836b11a
Merge branch 'leak-fixes' into 'main'
...
Fix various leaks in cmph-bdz-test and gutils
See merge request GNOME/glib!3708
2023-11-14 13:59:58 +00:00
Philip Withnall
0dd712a07c
Merge branch 'gir-disable-asserts' into 'main'
...
girepository: Ignore set-but-not-used warnings with G_DISABLE_ASSERT
See merge request GNOME/glib!3707
2023-11-14 13:59:42 +00:00
Philip Withnall
89b0c1b304
glib.supp: Allow definite leaks of util dir paths
...
These are one-time leaks, and happen if the util dir paths are built via
these code paths, and then subsequently overwritten using
`g_set_user_dirs()` (typically as part of a unit test).
The additions to `glib.supp` correspond to the `g_ignore_leak()` calls
in `gutils.c`. Unfortunately `g_ignore_leak()` only affects asan, not
valgrind.
See https://gitlab.gnome.org/GNOME/glib/-/jobs/3294034
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2023-11-14 11:01:04 +00:00
Philip Withnall
1a979ab494
gutils: Fix an unlikely minor leak in g_build_user_data_dir()
...
A leak can happen if the `data_dir` is the empty string.
See https://gitlab.gnome.org/GNOME/glib/-/jobs/3294034
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2023-11-14 11:00:21 +00:00
Philip Withnall
aed9098530
girepository: Fix various leaks in cmph-bdz-test
...
See https://gitlab.gnome.org/GNOME/glib/-/jobs/3294034
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2023-11-14 11:00:01 +00:00
Philip Withnall
d00bbf94a6
girepository: Ignore set-but-not-used warnings with G_DISABLE_ASSERT
...
This fixes some compiler warnings when building with
`-Dglib_assert=false`.
See https://gitlab.gnome.org/GNOME/glib/-/jobs/3294022
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2023-11-14 10:37:27 +00:00
Philip Withnall
24776cb5bd
tests: Use g_assert_*() rather than g_assert() in girepository tests
...
It won’t get compiled out with `G_DISABLE_ASSERT`.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2023-11-14 10:36:06 +00:00
Philip Withnall
af30e69140
Merge branch 'wip/oholy/gcontenttype-make-valid' into 'main'
...
gcontenttype: Make filename valid utf-8 string before processing
Closes #3168
See merge request GNOME/glib!3700
2023-11-13 12:14:01 +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
Philip Withnall
b50a8a69d9
Merge branch 'th/prgname' into 'main'
...
[th/prgname] use atomic pointers for g_prgname/g_application_name and add g_set_prgname_once()
See merge request GNOME/glib!3699
2023-11-13 11:47:44 +00:00
Pablo Correa Gómez
8901ffeffe
ci: add muslc CI
2023-11-12 15:39:14 +01:00
Emmanuele Bassi
4144341e7a
Merge branch '3155-cleanups-renames' into 'main'
...
girepository: Rename symbols to the GI namespace
See merge request GNOME/glib!3704
2023-11-08 17:56:43 +00: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
Thomas Haller
54e0b2d75b
gutils: use atomic pointers for g_application_name
...
The mutex is not necessary to guard a single pointer.
2023-11-08 16:36:14 +01:00
Thomas Haller
0d61895ef1
gutils: assert against calling g_set_application_name()
...
g_set_application_name() guards against being reset, but it doesn't
remember whether it was set, it only checks whether g_application_name
was set to non-NULL. When allowing g_set_application_name(NULL) that leads
to odd behaviors, like:
g_set_application_name(NULL);
g_set_application_name("foo");
would not warn.
Disallow that and assert against a NULL application_name.
Note that application_name argument is also not marked as "(nullable)".
2023-11-08 16:36:14 +01:00
Thomas Haller
167deee94d
gutils: use atomic pointers for g_prgname
...
The mutex is not necessary to guard a single pointer.
2023-11-08 16:36:14 +01:00