1
0
mirror of https://gitlab.gnome.org/GNOME/glib.git synced 2026-10-24 00:49:00 +03:00

3107 Commits

Author SHA1 Message Date
Luca Bacci
775d32e995 CI: set msys2-clang64 as default job for merges
...and thus for generating coverage data, GIR data, and docs.

At the same time we set msys2-mingw32 as weekly-schedule or
manual.

MSYS2 has deprecated the MINGW32 environment since quite some:
https://www.msys2.org/news/#2023-12-13-starting-to-drop-some-32-bit-packages

(Backport 2.88: Minor cherry pick conflict fixes in
supported-platforms.md)
2026-06-23 14:56:28 +01:00
Sebastian Dröge
4dfa7a4ea7 docs: Remove myself from CODEOWNERS 2026-03-29 10:15:43 +03:00
Philip Withnall
73266e06bc docs: Expand docs for GLIB_VERSION_MAX_ALLOWED
Make it a little clearer what its effects are.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2026-03-19 14:48:43 +00:00
Philip Withnall
be65d20182 docs: Expand docs for GLIB_VERSION_MAX_ALLOWED
In particular, point out that `G_ENCODE_VERSION()` needs to be used to
encode versions which are newer than the minimum GLib dependency of your
project.

Also add a code example for Meson.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2026-03-19 14:19:58 +00:00
Marco Trevisan
e02603d44d Merge branch 'glib-platform-break' into 'main'
introspection: Remove platform-specific backward compatibility from GLib-2.0

Closes #3839

See merge request GNOME/glib!4881
2026-01-26 06:48:20 +01:00
Marco Trevisan (Treviño)
4e7da65cd5 docs/reference/glib/unix: Add GLibUnix.fd_query_path 2026-01-26 05:17:04 +01:00
Marco Trevisan (Treviño)
cdeaf9b181 reference/glib/unix: Add links to the GLibUnix.Pipe methods
They are now exposed by gir, so gi-docgen should handle them.

Related to:
 - https://gitlab.gnome.org/GNOME/gi-docgen/-/issues/173
 - https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/438
2026-01-26 05:17:04 +01:00
Maximiliano Sandoval
ba48794b08 docs: Fix typo 2026-01-22 18:31:49 +01:00
Maximiliano Sandoval
8995844520 docs: Set code block lang to C 2026-01-22 18:31:34 +01:00
Sebastian Wick
4405fe5fc8 gdbus-codegen: Add an extension system which allows hooking codegen
The extension points are chosen by what libdex needs to generate future
based method calls.
2025-11-02 11:18:37 +00:00
Marco Trevisan
6c980a1242 Merge branch 'bump-fedora-ci' into 'main'
ci: Update Fedora CI image to Fedora 41

See merge request GNOME/glib!4864
2025-10-17 03:54:21 +02:00
FeRD (Frank Dana)
fabe2113c3 Docs: Migrate gvariant-*.svg licenses to comments
Remove the overrides in `.reuse/dep5`, and instead store the license
information in a comment near the top of each file.
2025-10-16 19:37:00 +00:00
Philip Withnall
de5521cd27 ci: Update Fedora CI image to Fedora 41
Fedora 39 is out of support so, as per our policy, update the CI image
to the oldest still-supported release, which is 41.

systemtap-sdt-dtrace needs to be installed separately (for the `dtrace`
binary), as it appears to have been split out of some other package.

Update the mingw CI image too, as it’s built on top of the Fedora one.

Update the supported platforms documentation.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2025-10-16 18:15:31 +01:00
FeRD (Frank Dana)
c2f6337d8f Docs: New file-name-encodings image: light/dark, color
- Redid the old StarOffice-format drawing file in OpenDocument
  format, and updated with two different `-light` and `-dark`
  versions.
  - Added color to the rectangles
  - Bolded all of the text
  - Added background transparency
- Exported both as `file-name-encodings-{light,dark}.svg`
- Tweaked in Inkscape to simplify SVG structure, scale to
  fixed pixel sizes, align to page dimensions.
- Added License/Copyright data as Custom Document Properties
  in OpenDocument sources, comments in SVG source.
  - Federico Mena Quintero, uploader of the originals, is
    credited in the `SPDX-FileCopyrightText` data, along
    with myself.
  - License chosen was `CC0-1.0`, because again I don't believe
    these files are complex enough to actually be copyrightable.
- Added data for `.odg` files to `/.reuse/dep5` file, as
  reuse can't extract license data from that format.
- Updated `character-set.md` and `glib.toml.in` to use
  new SVGs in place of old PNG.
2025-10-16 13:35:12 +00:00
Tobias Stoeckmann
5285c18b88 docs: Fix typos in win32-build.md
Fixed some grammar typos.

While "continue to use" is correct, "continue using" is a better
fitting form in this context.
2025-09-23 13:45:24 +02:00
Tobias Stoeckmann
48bf508bc1 docs: Fix typos
Typos found with codespell
2025-09-03 21:47:11 +02:00
Philip Withnall
a812c778b7 docs: Add Thomas Haller as a co-maintainer of GObject
He’s made a lot of detailed contributions recently, and has a good
understanding of large parts of GObject.

I‘ve asked him (by private email) if he’d agree to be added to the
co-maintainers list, and he said he’d be pleased to.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2025-08-11 13:55:58 +01:00
Nick Steel
267b1246d7 docs: Calling gmodule funcs in constructors may deadlock
Fixes #1443.
2025-07-15 11:18:27 +00:00
Philip Withnall
3d84aa264c docs: Stop hiding the Unix-like APIs which are in Gio-2.0.gir
There are four `Unix.+` classes in `Gio-2.0.gir` which need to be
exposed in the `Gio-2.0.gir` docs because they are actually now
cross-platform (which is a move which has caused a lot of pain).

Change the code which filters out the rest of the `Unix.+` classes to
ignore these ones. The rest of the classes continue to be documented via
`GioUnix-2.0.gir`.

Changing the regexs for this involved a fun use of negative lookahead.

See https://gitlab.gnome.org/GNOME/glib/-/issues/3697#note_2459405

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3697
2025-06-03 14:10:52 +01:00
Jan Tojnar
ec19c0c6b5 docs: Fix formatting of definition lists
Definitions in definition lists in most markdown implementations,
including the GitLab one, support laziness for the definition text
(https://spec.commonmark.org/0.31.2/#lazy-continuation-line).
As a result, each defined term would be collapsed into preceding definition.
To fix this, definitions need to be separated by blank line.
2025-05-16 21:43:34 +02:00
Laurent Lyaudet
2bf5064655 docs: add INT(16|32|64)_(MAX|MIN) and fix some typos 2025-04-22 17:00:38 +00:00
Matthias Clasen
e8b9319a66 docs: Add some detail
Mention that glib-compile-resources accepts multiple --sourcedir
options.
2025-03-30 09:22:32 -04:00
Philip Withnall
73ee0d5e53 docs: Fix man page link for xattrs
It seems to have moved.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2025-02-26 10:16:57 +00:00
Philip Withnall
cd32927cdb Merge branch '3424-release-instructions' into 'main'
docs: Tweak release instructions around signing

Closes #3424

See merge request GNOME/glib!4474
2025-02-26 09:30:02 +00:00
Reuben Thomas
7804f13d26 doc: Simplify instructions for testing with Automake
This documentation used to link to GLib’s TAP harness. However, the built-in
Automake support works fine, and is simpler to use. Hence, remove most of
the old documentation, and refer users to the Automake manual, adding just
one hint for use with GLib.
2025-02-22 14:34:34 +02:00
Philip Withnall
0234f8e1b1 Merge branch 'ppd-api-rename' into 'main'
gio/powerprofilemonitordbus: Use newer D-Bus API

See merge request GNOME/glib!4478
2025-02-07 08:34:19 +00:00
Marco Trevisan (Treviño)
236abac6fb gio/powerprofilemonitordbus: Use newer DBus API
Since some time the power-profiles-daemon project has been moved under
the upower umbrella and renamed its API to follow that.

While the legacy name is still supported, there are plans to not support
it anymore in future [2]. So let's update GLib code to use the
current main name instead.

[1] https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/merge_requests/148
[2] https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/merge_requests/166
2025-02-07 00:55:32 +01:00
Mavroudis Chatzilazaridis
cb1502ed66 docs: Fix invalid references and broken links
This commit fixes quite a few broken links and references, minor typos,
and improves wording in some sections.
2025-02-05 22:28:26 +02:00
Philip Withnall
aea78c9ac7 docs: Tweak release instructions around signing
Suggest to sign the release commit itself (to keep us in sync with the
Handbook; https://handbook.gnome.org/maintainers/making-a-release.html);
and allow `git tag -s` if `git evtag` is not available (also as per the
Handbook).

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Fixes: #3424
2025-02-04 17:02:04 +00:00
Demi Obenour
9eb0828bd8 Document function pointer cast requirements
Helps: #3596
Fixes: #3595
2025-02-03 11:40:12 +00:00
Philip Withnall
9e3c017df8 docs: Update various outdated links which pointed to wiki.gnome.org
wiki.gnome.org has been retired but for some reason none of the old
pages were given HTTP redirects, so everyone has to update all their
links manually everywhere.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2025-01-23 14:00:46 +00:00
Philip Withnall
d11dac3836 docs: Update the release documentation for the new release workflow
Make it more closely match
https://handbook.gnome.org/maintainers/making-a-release.html again.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2025-01-23 13:59:48 +00:00
Philip Withnall
58c4ab46f2 docs: Port GIO overview to gi-docgen linking syntax and fix a few typos
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2025-01-22 22:48:43 +00:00
Matthias Clasen
d760bfef00 docs: Document more extension points
GIO is more extensible than we know! Document more of the existing
extension points, their included implementations and their purpose.
2025-01-21 12:00:42 +00:00
Philip Withnall
b65e950b3e docs: More gi-docgen linking in main-loop.md
Port the rest of the document to gi-docgen syntax, so we don’t have to
track partially-ported files.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3250
2025-01-13 17:47:12 +00:00
Niels De Graef
bd148fd04d docs: Use gi-docgen syntax in main-loop.md
The "Main Loop" documentation wasn't actually linking to `GMainContext`
properly, so let's fix this.
2025-01-12 15:33:19 +01:00
Philip Withnall
2ebd1c8f15 docs: Hide Unix and Win32 symbols from main GLib and GIO docs
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 <pwithnall@gnome.org>

Helps: #3250
2024-12-20 15:13:16 +00:00
Corentin Noël
2021e20a8a docs: Add --generate-md to the gdbus-codegen documentation
Add it to the documentation the same way it is done for reStructured and docbook.
2024-12-12 11:51:49 +00:00
Philip Withnall
e9670d3c3c docs: Warn if building documentation without enable_gir
If `-Ddocumentation=true` is specified without
`-Dintrospection=enabled`, warn the user. They might expect the
documentation to be built, but it won’t.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-12-11 15:36:50 +00:00
Philip Withnall
fa33e232d2 gio-tool: Clarify that gio mount -l only lists user-interesting things
It doesn’t list all mounts, only the ones you’d expect to see in a file
chooser sidebar.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: #3555
2024-12-08 23:03:07 +00:00
Philip Withnall
c50836535a Merge branch 'debug-invocation' into 'main'
gmessages: Treat DEBUG_INVOCATION=1 same as G_MESSAGES_DEBUG=all

See merge request GNOME/glib!4412
2024-11-29 16:13:02 +00:00
Philip Withnall
8b29c53057 gmessages: Treat DEBUG_INVOCATION=1 same as G_MESSAGES_DEBUG=all
systemd 257 will now set `DEBUG_INVOCATION=1` in the execution context
of services which need to be debugged — for example if they’ve failed
and been restarted (and `RestartMode=debug`).

If we handle `DEBUG_INVOCATION=1` as being equivalent to
`G_MESSAGES_DEBUG=all`, then any processes using GLib’s default log
writer function (or `g_log_writer_default_would_drop()`) automatically
gains support for this feature.

See https://mastodon.social/@pid_eins/113548825942383777

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-11-27 16:10:22 +00:00
John Ralls
9bbb1acd7d Raise minimum supported macOS version to 10.13 (High Sierra).
Allows removing all macOS version ifdefs.

Closes https://gitlab.gnome.org/GNOME/glib/-/issues/3441
2024-11-20 18:15:34 -08:00
Philip Withnall
3348e942b2 docs: Document 32-bit support policy
Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Fixes: #3477
2024-10-18 13:59:23 +01:00
Philip Withnall
ac55270b1b docs: Fix a broken link in the CODEOWNERS documentation
I wish people would stop moving their documentation around without
adding redirects. This is not how the internet is supposed to work.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-10-17 11:38:26 +01:00
Philip Withnall
62bc1a500a docs: Add CI runner maintainers to CODEOWNERS
I can never remember them on demand otherwise.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-10-17 11:38:11 +01:00
Philip Withnall
837d14d36a docs: Update CI platforms list and Visual Studio recommendation
Follow up to !4318 because I didn’t think of it during review.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-10-07 15:09:03 +01:00
Philip Withnall
efab4c1c71 build: Bump the gi-docgen dependency to 2024.1
This gives us an updated enumeration template and link validation,
amongst other things.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-09-25 17:27:46 +01:00
Christian Hergert
ff00e9c2ed docs/gvariant: fix a(si) example in specification
This has a trailing 0x15 on it when you create it with GVariant and the
specification should match.

Closes: #3478
2024-09-24 09:22:52 -07:00
FeRD (Frank Dana)
0bda424669 docs(glib): Fix link in string-utils ref 2024-09-12 06:04:34 -04:00