Commit Graph

30168 Commits

Author SHA1 Message Date
Marco Trevisan
972db82a8e Merge branch 'girepository-tool-translation' into 'main'
girepository: Add translation support to utility tools

Closes #3263

See merge request GNOME/glib!3941
2024-02-27 09:41:03 +00:00
Marco Trevisan
def7de3366 Merge branch '3271-size-format' into 'main'
gfileutils: Use g_format_size() for a translatable string

Closes #3271

See merge request GNOME/glib!3943
2024-02-27 09:32:13 +00:00
Philip Withnall
fca9568a72 Merge branch '3266-connection-attempt-unref-order' into 'main'
gsocketclient: Fix a use-after-free in g_socket_client_connected_callback()

Closes #3266

See merge request GNOME/glib!3944
2024-02-27 09:17:13 +00:00
Philip Withnall
a3c2691c23 gfileutils: Use g_format_size() for a translatable string
Partially because the use of `G_GSIZE_MODIFIER` breaks translatable
string extraction (issue #3271) and partially because `g_format_size()`
produces more human-readable results anyway.

Prior to commit cf5e371c67 the code was using `%lu`, so this is a fairly
new issue.

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

Fixes: #3271
2024-02-27 09:14:22 +00:00
Philip Withnall
9a661ab970 gsocketclient: Fix a use-after-free in g_socket_client_connected_callback()
The ref held by `data->task` may be the last one on the `GTask`. The
`GTask` stores `attempt->data` as its task data, and so when the `GTask`
is finalised, `attempt->data` is too. `connection_attempt_remove()`
needs to access `attempt->data`, so must be called before the
`g_object_unref()` in this situation.

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

Fixes: #3266
2024-02-27 09:03:03 +00:00
Philip Withnall
bd17a09862 girepository: Combine input file validation code paths in utilities
The code and strings are the same, so let’s simplify things and reduce
LoC for no functional change.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-02-26 18:10:56 +00:00
Philip Withnall
08b3f14a32 compiler: Correctly use g_strerror() instead of strerror()
This ensures the return value is always UTF-8.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-02-26 18:10:56 +00:00
Philip Withnall
57a8834d7b girepository: Add translation support to utility tools
This fixes a few formatting and newline issues in the strings at the
same time, but nothing major.

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

Fixes: #3263
2024-02-26 18:10:56 +00:00
Philip Withnall
c69ddddcfc tests: Don’t run check-missing-install-tag.py test under valgrind
Like in commit 80e878005f, running this
test under valgrind is not useful.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-02-26 18:10:06 +00:00
Philip Withnall
5b022f903c Merge branch 'pcre-lookbehind' into 'main'
tests: Remove variable-length lookbehind tests for GRegex

See merge request GNOME/glib!3945
2024-02-26 18:07:17 +00:00
Philip Withnall
ca4e6f81d2 Merge branch 'wip/oholy/gvolumemonitor-leak' into 'main'
gcontextspecificgroup: Wait until stop_func is done

Closes #3258

See merge request GNOME/glib!3934
2024-02-26 18:06:45 +00:00
Philip Withnall
cce3ae98a2 tests: Remove variable-length lookbehind tests for GRegex
PCRE2 10.43 has now introduced support for variable-length lookbehind,
so these tests now fail if GLib is built against PCRE2 10.43 or higher.

See
e8db6fa713/ChangeLog (L94).

Rather than making the tests conditional on the version of PCRE2 in use,
just remove them. They are mostly testing the PCRE2 code rather than
any code in GLib, so don’t have much value.

This should fix CI runs on msys2-mingw32, which updated to PCRE2 10.43 2
days ago.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-02-26 16:55:44 +00:00
Daniel Mustieles
65c64ea374 Updated Spanish translation 2024-02-26 15:03:53 +01:00
Philip Withnall
32a60a79a0 Merge branch 'macos_origin_only' into 'main'
Restrict macOS CI to origin

See merge request GNOME/glib!3935
2024-02-26 10:58:05 +00:00
Philip Withnall
c9d3295909 Merge branch 'girepository-static' into 'main'
girepository: Fix static build under Windows

See merge request GNOME/glib!3937
2024-02-26 10:55:21 +00:00
Philip Withnall
cae2887c5d Merge branch 'fix-issue-3080' into 'main'
GWinHttpFile: Check for matching attributes before sending HTTP(S) request

Closes #3080

See merge request GNOME/glib!3936
2024-02-26 10:51:44 +00:00
Rūdolfs Mazurs
fe461fd1ad Update Latvian translation 2024-02-25 11:02:14 +00:00
Andika Triwidada
63ff7c9c2d Update Indonesian translation 2024-02-25 06:40:55 +00:00
Baurzhan Muftakhidinov
714c8e9916 Update Kazakh translation 2024-02-24 17:48:18 +00:00
Danial Behzadi
e06b8a432d Update Persian translation 2024-02-24 13:10:18 +00:00
Boyuan Yang
2ee09b8999 Update Chinese (China) translation 2024-02-22 15:40:17 +00:00
Kleis Auke Wolthuizen
72d76922dc girepository: Fix static build under Windows
Properly define `GI_STATIC_COMPILATION` when static build is enabled.
Use `library()` instead of `shared_library()` to allow selecting static builds.
2024-02-21 12:38:40 +01:00
Luca Bacci
4337f8f735 GWinHttpFile: Check for matching attributes before sending the HTTP(S) request
We might not need to make an HTTP(S) request at all

Fixes #3080
2024-02-21 11:56:36 +01:00
Luca Bacci
c515f793e5 GWinHttpFile: Set display-name and type at the start of the query_info() function
Those attributes do not need the HTTP(S) request data, so just set them
right away.
2024-02-21 11:52:36 +01:00
Ekaterine Papava
241df32d7a Update Georgian translation 2024-02-20 21:48:00 +00:00
Ondrej Holy
bf7d941088 gcontextspecificgroup: Wait until stop_func is done
Currently, the `stop_func` is executed on an extra thread, and the
`g_context_specific_group_remove` function returns before the `stop_func`
finishes. It may happen that the `stop_func` is never executed if the
program terminates soon after calling it. Let's wait until the `stop_func`
is done.

Fixes: https://gitlab.gnome.org/GNOME/glib/-/issues/3258
2024-02-20 13:39:31 +01:00
Yaron Shahrabani
f1758b10db Update Hebrew translation 2024-02-19 20:50:46 +00:00
René de Hesselle
3e80909ba5 ci: Run macOS job only for origin
This partially reverts 11616b0145.
The macOS runner is not available to forks on purpose.
2024-02-19 19:29:35 +01:00
Jordi Mas i Hernandez
41dc64c610 Update Catalan translation 2024-02-19 18:28:44 +00:00
Matej Urbančič
ad0bc52c64 Update Slovenian translation 2024-02-19 16:05:43 +00:00
Danial Behzadi
a63fc70185 Update Persian translation 2024-02-19 13:38:04 +00:00
Asier Sarasua Garmendia
214da88bfc Update Basque translation 2024-02-18 20:05:55 +00:00
Fran Dieguez
ab880c6107 Update Galician translation 2024-02-18 19:52:38 +00:00
Emin Tufan Çetin
b4b319d81a Update Turkish translation 2024-02-18 15:38:20 +00:00
Aurimas Černius
bd8662ed4e Update Lithuanian translation 2024-02-18 10:31:22 +00:00
Sabri Ünal
dfdd97e943 Update Turkish translation 2024-02-18 09:20:05 +00:00
Yaron Shahrabani
85528acecc Update Hebrew translation 2024-02-17 21:44:30 +00:00
Yaron Shahrabani
0fb6f31aa7 Update Hebrew translation 2024-02-17 21:37:06 +00:00
Danial Behzadi
36d40eb954 Update Persian translation 2024-02-15 22:22:14 +00:00
Marco Trevisan
4f543557c6 Merge branch '3262-msys2-meson-intermittent-failure' into 'main'
ci: Use Meson version from pacman on msys2 CI runners

Closes #3262

See merge request GNOME/glib!3932
2024-02-15 21:56:11 +00:00
Philip Withnall
257b98027b Merge branch 'wip/smcv/gir-man-pages' into 'main'
Add man pages for gi-* tools

Closes #3260 and gobject-introspection#55

See merge request GNOME/glib!3924
2024-02-15 21:37:35 +00:00
Philip Withnall
1ec3ded5eb ci: Temporarily disable --fatal-meson-warnings on msys2 CI
For the same reasons as in commit 71061fdcb3, but in this
case we can’t downgrade the version of Meson on the CI runner (see the
previous commit), so just tell it to shut up instead.

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

Helps: #3262
2024-02-15 21:30:33 +00:00
Philip Withnall
6286e5774b ci: Use Meson version from pacman on msys2 CI runners
Rather than pinning it to the lowest version we support, as is the
standard policy.

This means we’ll end up using version 1.3.2-2, which has just been
packaged to contain the fix for
https://github.com/mesonbuild/meson/issues/12330, which has been
impacting GLib significantly since we started installing
gobject-introspection in CI in commit
c428d6e673.

Thanks to Christoph Reiter, Luca Bacci and Simon McVittie for diagnosing
and fixing this issue.

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

Fixes: #3262
2024-02-15 21:25:00 +00:00
Philip Withnall
10c4942ffa Merge branch 'wip/smcv/migrating-gi' into 'main'
migrating-gi: Document command-line option removals

See merge request GNOME/glib!3930
2024-02-15 19:26:11 +00:00
Philip Withnall
90b2185c56 Merge branch 'wip/smcv/decompiler-order' into 'main'
gi-decompile-typelib: Interpret --includedir as most-important-first

See merge request GNOME/glib!3928
2024-02-15 19:02:24 +00:00
Philip Withnall
a9fabe5fc0 Merge branch 'wip/smcv/decompiler' into 'main'
girwriter: Take the GIRepository as a parameter

See merge request GNOME/glib!3925
2024-02-15 12:26:45 +00:00
Philip Withnall
fe2c18a835 Merge branch 'wip/smcv/gi-unused-options' into 'main'
gi- tools: Remove unused options, improve --debug/--verbose

See merge request GNOME/glib!3926
2024-02-15 11:11:56 +00:00
Fran Dieguez
5b2c1203c9 Update Galician translation 2024-02-15 02:23:50 +00:00
Philip Withnall
f1d4d547a8 Merge branch '3255-clear-base-info' into 'main'
gibaseinfo: Allow gi_base_info_clear() to be idempotent

Closes #3255

See merge request GNOME/glib!3929
2024-02-15 01:19:44 +00:00
Philip Withnall
803508f9a9 Merge branch 'wip/smcv/gi-compiler-only-one' into 'main'
g-ir-compiler: Only accept one input file

See merge request GNOME/glib!3927
2024-02-14 23:52:13 +00:00