- Dec 29, 2024
-
-
Philip Withnall authored
Remove incorrect (inout) annotations from GWeakRef Closes #3558 See merge request !4426
-
- Dec 22, 2024
-
-
Michael Catanzaro authored
Use autorelease pool to manage cocoa memory. Closes #3568 See merge request !4448
-
- Dec 21, 2024
-
-
John Ralls authored
Fixes #3568
-
- Dec 20, 2024
-
-
Philip Withnall authored
gunixmounts: Clarify GUnixMountMonitor documentation and convert to gi-docgen linking syntax Closes #3569 See merge request !4447
-
Philip Withnall authored
These symbols are documented in the {glib,gio}-{unix,win32} documentation builds, and shouldn’t be duplicated in the main documentation. It’s a historical (and unavoidable) accident that those symbols are in the main GIR files. If we don’t hide the symbols from the main docs build, we now run into the problem of the `GioUnix` namespace not being known to gi-docgen while building the `Gio` docs. This is because of the previous two commits, which ported more of the `gunixmounts` documentation to gi-docgen syntax. I don’t know of another way to fix this, other than to hide the `GioUnix` symbols from the `Gio` docs build. Signed-off-by: Philip Withnall <[email protected]> Helps: #3250
-
Philip Withnall authored
Improve formatting while I’m there, and try and ensure all the docs in these two files matches the [guidelines](https://developer.gnome.org/documentation/guidelines/devel-docs.html#writing-api-references ). Signed-off-by: Philip Withnall <[email protected]> Helps: #3250
-
Michael Catanzaro authored
gio: Fix a link to a specifications document See merge request !4446
-
Philip Withnall authored
Let’s not go with SHOUTY UNIX or quiet unix, let’s just call it what Wikipedia calls it (https://en.wikipedia.org/wiki/Unix ). Signed-off-by: Philip Withnall <[email protected]>
-
Philip Withnall authored
They need a `GUnixMountMonitor` to give valid timestamps, and if you have one of those then you might as well listen to its signals anyway. Signed-off-by: Philip Withnall <[email protected]> Fixes: #3569
-
Philip Withnall authored
Signed-off-by: Philip Withnall <[email protected]>
-
- Dec 19, 2024
-
-
Philip Withnall authored
If only someone would go ahead and invent a whole section of the list of HTTP status codes which could be used to inform a client of where a document has been moved to. For the sake of argument, let’s say it could be status codes 300–399, since they appear to be completely unused at the moment.
😩 Signed-off-by: Philip Withnall <[email protected]>
-
- Dec 18, 2024
-
-
Philip Withnall authored
gbytes: Squash data to `NULL` if length is zero Closes #3562 See merge request !4445
-
- Dec 17, 2024
-
-
Philip Withnall authored
This used to happen consistently before !4290, but that MR changed it so that `data` could be non-`NULL` if `size == 0` if the new inline code path is taken. While users of `GBytes` shouldn’t be dereferencing the data if the bytes’ length is zero, it’s definitely safer to make sure the data is `NULL` in that case. This shouldn’t break the expectations of any third party code because it’s restoring the behaviour from before !4290. Signed-off-by: Philip Withnall <[email protected]> Fixes: #3562
-
Philip Withnall authored
Don't define test setups unless we're testing See merge request !4442
-
Matthias Clasen authored
This is problematic since meson is defective when it comes to default test setups. It only allows a single such across all (sub)projects. See https://github.com/mesonbuild/meson/issues/12700
-
- Dec 16, 2024
-
-
Philip Withnall authored
build: Make the introspection feature yield See merge request !4443
-
Philip Withnall authored
girepository: Correct --c-include arguments for GIO Unix/Windows headers Closes #3564 See merge request !4439
-
Philip Withnall authored
Fix pointer-to-paramref syntax in docs See merge request !4444
-
- Dec 15, 2024
-
-
FeRD (Frank Dana) authored
The documentation for GLib and Gio contains a number of documentation comment blocks where a parameter reference (e.g. `@err`) is also discussed in its dereferenced pointer form, which is generally annotated as `*@err`. This inevitably confuses the MarkDown parser, which sees the `*` as the beginning of an italicized text span. To avoid this, replace all `*@foo` with <code>`*foo`</code>, which loses the `@`-sigil linking it to the `@foo` parameter, but formats correctly in the rendered documentation. (`@foo` is automatically formatted like <code>`foo`</code>, so the resulting appearance in the docs is as intended.)
-
- Dec 14, 2024
-
-
Simon McVittie authored
gstrfuncs: Drop a redundant paragraph See merge request !4441
-
Matthias Clasen authored
This is expected by other projects who use glib as a subproject, and there is little point in making the option a feature unless you inherit it.
-
Emmanuele Bassi authored
gio, gobject: Improve reproducibility of enumtypes headers See merge request !4440
-
Adrien Plazas authored
Signed-off-by: Adrien Plazas <[email protected]>
-
- Dec 13, 2024
-
-
Simon McVittie authored
`@filename@` expands to the (absolute or relative) path from the build directory to the source directory, which can be rather verbose. In practice Meson usually (always?) generates a relative path, but even so, the resulting installed header is not necessarily reproducible if using different build directories outside the source directory. We don't really need a full path here anyway: the basename is enough of a hint to point a reader towards the file where the underlying enum was defined. Signed-off-by: Simon McVittie <[email protected]>
-
Simon McVittie authored
The deprecated construct '@0@'.format(h) (where h is a file object) expanded to the filename relative to the project root, which in this particular case happens to be what we wanted: `--c-include=gio/gunixmounts.h` resulted in a recommendation to `#include <gio/gunixmounts.h>` and so on. Replacing it with h.full_path() resulted in GIR XML and documentation that recommended constructs like `#include </home/me/src/glib/gio/gunixmounts.h>`, which is not what was intended (and caused new differences between different architectures' Gio-2.0.gir on multiarch systems, which is how I discovered this). Hard-coding `gio/` and appending the basename of the header seems like the simplest non-deprecated spelling that will do what we wanted. Fixes: 51e3e7d9 "build: Bump Meson dependency to 1.4.0" Resolves: #3564 Signed-off-by: Simon McVittie <[email protected]>
-
Philip Withnall authored
Add nullable annotations for GVfsFileLookupFunc Closes #3561 See merge request !4438
-
Philip Withnall authored
GWin32: Add g_win32_com_clear() See merge request !4392
-
Chun-wei Fan authored
As suggested by Luca Bacci, so that we keep track of things more clearly in terms of COM.
-
Chun-wei Fan authored
...for C++ implementations, as suggested by Luca Bacci. Make things safer in terms of avoiding ODR violations[1]. [1]: !4392 (comment 2296862)
-
Chun-wei Fan authored
This tests the C++ version of g_win32_clear_com() as there are some COM interfaces that are only available in C++, such as DirectWrite from the headers shipped with the Windows SDK. This mimicks the test for the same function in glib/tests/win32.c but done in a C++ fashion.
-
Chun-wei Fan authored
This mimicks the test for g_clear_object() in gobject/tests/reference.c. We use the system's wincodec library for our sample here.
-
Chun-wei Fan authored
This is quite similar in concept to what g_clear_object() does, except that is meant to deal with Windows COM objects. Note that there is a separate C++ version available for this as there are COM interfaces that are available in C++ only, such as DirectWrite that is shipped with the Windows SDK (albeit a C interface is provided with the mingw-w64 toolchain. This will call `->Release()` on the non-NULL COM object referenced by its pointer and sets the COM object to NULL; if the pointer refers to a NULL COM object, this is a no-op.
-
- Dec 12, 2024
-
-
Frédéric Brouillé authored
Add the nullable annotation on the parameter 'user_data' and fix the description. Add the nullable annotation on the return value. Fixes #3561
-
Emmanuele Bassi authored
docs: Fix some backslash escaping issues in doc comments See merge request !4437
-
Philip Withnall authored
None of these comments have been ported to gi-docgen format properly yet, but let’s at least fix the backslash escaping so that `G_DIR_SEPARATOR_S` can be documented usefully. A full port of this file to gi-docgen format can happen in future. Spotted on https://discourse.gnome.org/t/escaped-char-in-glib-dir-separator-s-doc/25607 . Signed-off-by: Philip Withnall <[email protected]>
-
Philip Withnall authored
docs: Add --generate-md to the gdbus-codegen documentation See merge request !4436
-
Add it to the documentation the same way it is done for reStructured and docbook.
-
- Dec 11, 2024
-
-
Philip Withnall authored
Signed-off-by: Philip Withnall <[email protected]>
-
Philip Withnall authored
ci: Enable -Dintrospection for dist builds See merge request !4433
-
Philip Withnall authored
Otherwise they’re not picked up as artifacts, and hence are basically lost. Signed-off-by: Philip Withnall <[email protected]>
-