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

33351 Commits

Author SHA1 Message Date
Philip Withnall
436d47a723 2.90.0
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2.90.0
2026-09-09 14:40:59 +01:00
Philip Withnall
60852348e6 Merge branch 'output-stream-assert-variable' into 'main'
goutputstream: Fix an unused-variable warning with G_DISABLE_ASSERT

See merge request GNOME/glib!5347
2026-09-09 11:56:29 +00:00
Marco Trevisan
5bda2efd3f Merge branch 'testutils-leak-annotation' into 'main'
gtestutils: Mark a TLS variable as not really a leak

See merge request GNOME/glib!5346
2026-09-09 13:08:43 +02:00
Philip Withnall
7b23d217fe goutputstream: Fix an unused-variable warning with G_DISABLE_ASSERT
`op` is only used in an assert.

Fixes the `G_DISABLE_ASSERT` CI job:
https://gitlab.gnome.org/GNOME/glib/-/jobs/6975634.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2026-09-08 23:17:22 +01:00
Philip Withnall
2be55d4666 Merge branch '4038-unused-but-set-global' into 'main'
gtype: Mark the G_DEFINE_TYPE parent_class variable as unused

Closes #4038

See merge request GNOME/glib!5345
2026-09-08 22:09:15 +00:00
Philip Withnall
49e512494f gtestutils: Mark a TLS variable as not really a leak
It’s allocated once for the lifetime of each thread, so isn’t really a
leak.

This fixes valgrind reports as in
https://gitlab.gnome.org/GNOME/glib/-/jobs/6975647.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2026-09-08 23:04:01 +01:00
Sunil Dora
1567250294 gtype: Mark the G_DEFINE_TYPE parent_class variable as unused
clang 23 added -Wunused-but-set-global, which fires on the
type_name##_parent_class variable that _G_DEFINE_TYPE_EXTENDED_BEGIN_PRE
emits whenever a type never chains up to its parent:

  error: variable 'my_thing_parent_class' set but not used
  [-Werror,-Wunused-but-set-global]

Projects that promote the unused-but-set group to an error (pango, for
one) now fail to build with clang 23, and they cannot fix it on their
side because the variable comes from this macro.

Annotate it G_GNUC_UNUSED, the same treatment the adjacent
get_instance_private helper already gets.

Signed-off-by: Sunil Dora <sunilkumar.dora@windriver.com>
Fixes: #4038
2026-09-08 22:56:43 +01:00
Philip Withnall
9eb9436786 Merge branch 'fix-gdbusactiongroup-c99-header' into 'main'
gio: Keep GDBusActionGroup headers compatible with C99

Closes #4040

See merge request GNOME/glib!5338
2026-09-08 21:49:18 +00:00
Hyunsik Parker
9242f5788c gio: Keep GDBusActionGroup headers compatible with C99
Closes: #4040
2026-09-08 21:49:18 +00:00
Philip Withnall
aa72923288 Merge branch 'update-translation-hu-from-main-dfb162dc-aa96-11f1-b48a-0a580a830557' into 'main'
Update Hungarian translation

See merge request GNOME/glib!5343
2026-09-08 17:07:25 +00:00
Philip Withnall
8c30dbee32 Merge branch 'update-translation-da-from-main-84ae3810-ab09-11f1-9863-0a580a8205ea' into 'main'
Update Danish translation

See merge request GNOME/glib!5344
2026-09-08 17:02:29 +00:00
Philip Withnall
eb5dd73300 Merge branch 'update-translation-sr-from-main-fc1b5a3a-a95c-11f1-9777-0a580a830557' into 'main'
Update Serbian translation

See merge request GNOME/glib!5342
2026-09-08 16:50:56 +00:00
Ask Hjorth Larsen
f05ecfd1e6 Update Danish translation 2026-09-07 22:14:59 +00:00
Balázs Úr
4d5e899d51 Update Hungarian translation 2026-09-07 08:34:18 +00:00
Марко Костић
b79182157c Update Serbian translation 2026-09-05 19:07:23 +00:00
Philip Withnall
6f98b0b8ad Merge branch 'update-translation-ko-from-main-b67a87bc-a45c-11f1-9be2-0a580a8001cd' into 'main'
Update Korean translation

See merge request GNOME/glib!5334
2026-09-04 16:15:31 +00:00
Philip Withnall
f108f89734 Merge branch 'update-translation-ru-from-main-a1f99776-a7c0-11f1-9fe3-0a580a830533' into 'main'
Update Russian translation

See merge request GNOME/glib!5339
2026-09-04 16:05:23 +00:00
Philip Withnall
6b7fd46ffc Merge branch 'update-translation-ug-from-main-ba754914-a408-11f1-ba79-0a580a8304d3' into 'main'
Update Uighur translation

See merge request GNOME/glib!5333
2026-09-04 16:00:25 +00:00
Artur S0
4a2c4ac2a6 Update Russian translation
Co-authored-by: Artur S0 <arturios05@bk.ru>
Contributed-by: JTux <juliette.tux@gmail.com>
2026-09-03 17:55:44 +00:00
Changwoo Ryu
a3054a8e48 Update Korean translation
Co-authored-by: Changwoo Ryu <cwryu@debian.org>
Reviewed-by: Seong-ho Cho <shcho@gnome.org>
2026-08-30 10:22:52 +00:00
Abduqadir Abliz
83a8737652 Update Uighur translation 2026-08-30 00:21:38 +00:00
Marco Trevisan
d7d2dbaba4 Merge branch 'tests/adequate-signal-stack' into 'main'
tests: allocate an adequate alternate signal stack

See merge request GNOME/glib!5328
2026-08-30 00:46:37 +02:00
Philip Withnall
1d89d2fb35 Merge branch 'update-translation-fr-from-main-c3117204-a31e-11f1-b89d-0a580a810370' into 'main'
Update French translation

See merge request GNOME/glib!5331
2026-08-29 16:18:22 +00:00
Guillaume Bernard
d49def2dcb Update French translation
Co-authored-by: Guillaume Bernard <associations@guillaume-bernard.fr>
Reviewed-by: Jean-Marc TISSIERES <jmetissieres@gmail.com>
2026-08-28 20:26:49 +00:00
Philip Withnall
b0612ad5cd Merge branch 'update-translation-tr-from-main-5284c552-a2d0-11f1-ba3a-0a580a810370' into 'main'
Update Turkish translation

See merge request GNOME/glib!5329
2026-08-28 11:55:27 +00:00
Philip Withnall
253e77f679 Merge branch 'update-translation-pl-from-main-1cf5ea9c-a136-11f1-8e07-0a580a8305f6' into 'main'
Update Polish translation

See merge request GNOME/glib!5325
2026-08-28 11:52:31 +00:00
Philip Withnall
fa39036405 Merge branch 'update-translation-he-from-main-a0a4b96e-a22a-11f1-ac39-0a580a8305f6' into 'main'
Update Hebrew translation

See merge request GNOME/glib!5327
2026-08-28 11:42:55 +00:00
Philip Withnall
7a980e1ec0 Merge branch 'update-translation-cs-from-main-b4609d00-a140-11f1-9370-0a580a8305f6' into 'main'
Update Czech translation

See merge request GNOME/glib!5326
2026-08-28 11:42:37 +00:00
Emin Tufan Çetin
006170e615 Update Turkish translation 2026-08-28 11:05:28 +00:00
Martin Rehak
a713e6ceac tests: allocate an adequate alternate signal stack
MINSIGSTKSZ is only the minimum accepted by sigaltstack().
It does not necessarily provide enough space for the kernel signal
frame and the test signal handler.

Prefer SIGSTKSZ when it is available, while retaining MINSIGSTKSZ
as a fallback. Allow a larger positive _SC_MINSIGSTKSZ value to raise
the allocation, but never let it reduce it.
2026-08-28 10:48:13 +02:00
Yaron Shahrabani
d18ca2d59d Update Hebrew translation 2026-08-27 15:19:24 +00:00
Daniel Rusek
83f36860ff Update Czech translation
Co-authored-by: Patrik Sivek <sivekpatrik@gmail.com>
Reviewed-by: Daniel Rusek <mail@asciiwolf.com>
2026-08-26 11:24:35 +00:00
Victoria Niedzielska
13865bbd79 Update Polish translation
Reviewed-by: Marcel Mrówka <micro.mail88@gmail.com>
Reviewed-by: Victoria Niedzielska <victorian@gnome.org>
2026-08-26 10:09:01 +00:00
Philip Withnall
2f13f6af0d Merge branch 'main' into 'main'
fix: handle long filenames in trash by truncating from front

See merge request GNOME/glib!5311
2026-08-26 09:06:01 +00:00
Liu Zhangjian
d5827e9b42 fix: handle long filenames in trash by truncating from front
The `g_local_file_trash` function previously truncated filenames from
the front
on a plain byte boundary when encountering `ENAMETOOLONG`. This could
produce
invalid UTF-8 filenames, causing garbled names in the trash for UTF-
8 locales.

A new helper `truncate_basename_front` is introduced that:
- Truncates from the front, preserving the trailing part (extension)
of the
  original name.
- For UTF-8 filenames, skips continuation bytes to align the cut to
a character
  boundary, ensuring the result remains valid UTF-8.
- For non-UTF-8 (single-byte or best-effort), falls back to a plain
byte cut.

The code now uses this helper in both the `".trashinfo"` suffix and
`".XXXXXX"`
template cases, removing the duplicated inline logic. The helper returns
0 if
the base name is too short to truncate safely, in which case the
original
`ENAMETOOLONG` error is preserved.
2026-08-25 19:25:17 +08:00
Philip Withnall
3494c5d97e Merge branch 'update-translation-nb-from-main-4c33bb94-9ff2-11f1-bd81-0a580a8305f6' into 'main'
Update Norwegian Bokmål translation

See merge request GNOME/glib!5319
2026-08-25 08:25:33 +00:00
Kjartan Maraas
c5b9eb31e6 Update Norwegian Bokmål translation 2026-08-24 19:31:09 +00:00
Philip Withnall
fa41d356ee 2.89.4
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2.89.4
2026-08-23 16:13:07 +01:00
Philip Withnall
8382533483 Merge branch 'wip/chergert/splice-buffer-size' into 'main'
gio/outputstream: increase splice buffer size

See merge request GNOME/glib!5316
2026-08-23 14:53:46 +00:00
Philip Withnall
d075453fe2 Merge branch 'update-translation-sv-from-main-2bdb6378-9ef4-11f1-8cb6-0a580a80003b' into 'main'
Update Swedish translation

See merge request GNOME/glib!5318
2026-08-23 14:22:28 +00:00
Philip Withnall
1586b7ae46 Merge branch 'update-translation-oc-from-main-e35cbbea-9ee6-11f1-9f97-0a580a8305ca' into 'main'
Update Occitan translation

See merge request GNOME/glib!5317
2026-08-23 14:22:14 +00:00
Anders Jonsson
5de12c1a1a Update Swedish translation 2026-08-23 13:11:52 +00:00
Quentin PAGÈS
0fa20d2031 Update Occitan translation 2026-08-23 11:36:55 +00:00
Jonathan Matthew
d4121e4445 Merge branch 'jmatthew-bsd' into 'main'
docs: Remove Jonathan Matthew as a co-maintainer

See merge request GNOME/glib!5313
2026-08-23 10:08:14 +00:00
Philip Withnall
c2237ff1cb Merge branch 'wip/otte/ready-or-not-here-i-come' into 'main'
gmain: When ready time has elapsed, a source is prepared

Closes mutter#4994

See merge request GNOME/glib!5314
2026-08-22 13:34:50 +00:00
Philip Withnall
ba34d6a1ae tests: Add a regression test for main context prepare readiness
This would have caught the regression fixed in the previous commit.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: https://gitlab.gnome.org/GNOME/mutter/-/work_items/4994
2026-08-22 14:04:02 +01:00
Christian Hergert
4d265ed042 gio: Pipeline and enlarge output stream splices
The default splice implementations used 8 KiB buffers. In the
asynchronous implementation, mixed native-async and worker-backed
streams therefore alternated between reading on the main context and
dispatching each small write through the worker pool.

Use 256 KiB buffers for both synchronous and asynchronous splices to
amortize syscall and dispatch overhead. Allocate the synchronous
buffer on the heap to avoid growing the stack.

Use two buffers for asynchronous splices so the next input read can
run while the previous output write drains. Keep at most one operation
outstanding on each stream to preserve their concurrency guarantees
and provide bounded backpressure.

Stop scheduling new operations after the first error, but wait for any
overlapping callback before completing the splice. This keeps task
lifetimes safe and preserves partial-write, cancellation, close, and
error-reporting semantics.

In a local 1 GiB libsoup download benchmark, this reduced asynchronous
splice time from 3.09 seconds to 0.44 seconds.

Add deterministic tests for synchronous bulk copies, asynchronous
buffer overlap, ordering, partial writes, concurrent read and write
failures, cancellation during overlap, and all close-flag
combinations.
2026-08-22 14:26:52 +02:00
Philip Withnall
ffb0f9ba3d Merge branch 'update-translation-kk-from-main-84a2f112-9dda-11f1-a8eb-0a580a80003b' into 'main'
Update Kazakh translation

See merge request GNOME/glib!5315
2026-08-22 12:09:47 +00:00
Baurzhan Muftakhidinov
b459ed99f4 Update Kazakh translation 2026-08-22 03:35:54 +00:00
Benjamin Otte
4091e4de90 gmain: When ready time has elapsed, a source is prepared
Restores an accidentally removed line of code in a previous refactoring.

Fixes: mutter#4994
Fixes: 0d957f234a
2026-08-21 14:46:40 +02:00