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
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
Philip Withnall
74502f51a6
Merge branch 'mime-type-leak' into 'main'
...
glib.supp: Suppress the global_mime_dirs allocations
See merge request GNOME/glib!3702
2023-11-08 15:24:39 +00:00
Philip Withnall
2b544c3f66
girepository: Remove _
prefix from private functions
...
Now that libgirepository uses `GI_AVAILABLE_IN_*` macros, that’s what
controls symbol visibility. The `_` prefixes are redundant, and out of
keeping with the rest of GLib.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3155
2023-11-08 15:23:31 +00:00
Philip Withnall
7b029e564d
girepository: Remove redundant GLib version checks
...
Now that libgirepository is inside glib.git, it’s guaranteed access to
all the latest APIs, so there’s no need for version checks.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3155
2023-11-08 15:06:21 +00:00
Philip Withnall
b32da06a7c
girepository: Rename symbols to the GI namespace
...
Rather than a mix of structs being in `GI` and their methods being in
`g_`.
We’ve chosen not to use the `g_` namespace because a number of the
libgirepository class names are quite generic, so we’d end up with
confusing symbols like `GScopeType` and `GArgument`.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3155
2023-11-08 15:05:20 +00:00
Philip Withnall
f4db8af9de
gitypeinfo: Remove deprecated API
...
It’s not needed after a major version bump.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3155
2023-11-08 15:05:20 +00:00
Philip Withnall
9c10f3ec02
girepository: Remove backwards compatibility symbol renames
...
After bumping the major version number, we don’t need backwards
compatibility any more.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3155
2023-11-08 12:52:23 +00:00
Philip Withnall
2787a86693
Merge branch 'ebassi/girepository' into 'main'
...
Move libgirepository into GLib
Closes #455 , #457 , #49 , #13 , #318 , #298 , #38 , #200 , #96 , #244 , #175 , and #218
See merge request GNOME/glib!3642
2023-11-08 12:24:03 +00:00
Emmanuele Bassi
ebb0346380
gir: Do not include builtin directories in pkgconfig.generate()
...
It's deprecated since Meson 0.62, and breaks the build with fatal
warnings enabled for Meson.
2023-11-08 12:04:12 +00:00
Philip Withnall
342b654e35
Merge branch 'main' into 'ebassi/girepository'
...
This needs to be done as a merge rather than a rebase because !3642 cannot be rebased.
Conflicts:
meson_options.txt
2023-11-08 11:54:28 +00:00
Philip Withnall
8f36997aaa
Merge branch 'wip/pwithnall/macos-gio-tool-fix' into 'main'
...
tests: Fix gio-tool.py test on macOS
See merge request GNOME/glib!3701
2023-11-08 11:26:27 +00:00