Commit Graph

25891 Commits

Author SHA1 Message Date
Luca Bacci
cff3e660c1 GWin32AppInfo: Emit GAppLaunchContext signals for all code paths 2022-08-26 11:33:09 +02:00
Colin Walters
426fab1eca gio-unix: Use EPOLL_CLOEXEC by default
First, there's no reason not to use the new `epoll_create1` system call,
which quickly obsoleted `epoll_create` which has an obsolete and
unused size argument.

But more specifically, it offers `EPOLL_CLOEXEC` which we want
to use for general hygeine - there's no reason to potentially
leak this file descriptor to forked processes.

(GLib itself carefully closes file descriptors when forking child
 processes, but it may be linked with other software that doesn't;
 notably in my case for example the Rust standard library does not
 do this and hence relies more on the application code using
 `O_CLOEXEC` and variants)

This is just a drive-by fix; I saw the system call when I was using
`strace` to debug something else in rpm-ostree.
2022-08-26 04:10:22 -04:00
Kukuh Syafaat
c135882e7e Update Indonesian translation 2022-08-26 02:13:35 +00:00
Nart Tlisha
62a9a8a660 Update Abkhazian translation 2022-08-25 10:40:25 +00:00
Danial Behzadi
7435ac17d4 Update Persian translation 2022-08-24 07:19:21 +00:00
Aurimas Černius
1dfdcaf38b Updated Lithuanian translation 2022-08-22 23:17:51 +03:00
Emmanuele Bassi
0e112b457d Merge branch 'document-oom-behavior' into 'main'
mem: Document OOM behavior for allocations

See merge request GNOME/glib!2861
2022-08-22 14:01:15 +00:00
Sebastian Dröge
5abee3923d Merge branch 'andyholmes/gparampec-annotation-fixes' into 'main'
gparamspec: mark nick/blurb as nullable

Closes #2719

See merge request GNOME/glib!2863
2022-08-22 06:32:53 +00:00
Andy Holmes
79c70d7a36
gparamspec: mark nick/blurb as nullable
GParamSpec nicks and blurbs are effectively a deprecated feature,
or at least unused by most libraries these days. Since a number
of C libraries (i.e. GTK4) have started to null these out, annotate
them as `(nullable)` so bindings can do the same.

Closes #2719
2022-08-21 15:52:38 -07:00
Fran Dieguez
6b98081a9f Update Galician translation 2022-08-21 15:50:26 +00:00
Piotr Drąg
1fcaac94a0 Update Polish translation 2022-08-21 12:49:21 +00:00
Matthias Clasen
1df83acb87 mem: Document OOM behavior for allocations
For all the memory allocator APIS, document
that they terminate the program on failure.

This was so far only mentioned in the long description,
and in the docs for g_try_malloc(). And with gi-docgen
style docs, the long description is going away.
2022-08-19 08:29:36 -04:00
Luca Bacci
f0ff6a6af0 GWin32AppInfo: Add g_win32_app_info_launch_uris_impl utility function
This utility function will be called by both launch_uris and
launch_uris_async, passing a from_task parameter respectively
as NULL and non-NULL. The from_task parameter will be needed
to know whether GAppLaunchContext signals should be emitted
directly (from_task == NULL) or scheduled for emission on the
main thread (from_task != NULL).
2022-08-16 12:29:18 +02:00
Boyuan Yang
2a5219035a Update Chinese (China) translation 2022-08-15 20:23:42 +00:00
Seungha Yang
ebcc3c01db glib-mkenums: Specify output encoding as UTF-8 explicitly for non-English locale
Fixup regression introduced by
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2797
2022-08-16 04:53:34 +09:00
Marco Trevisan
813ce7f0b5 gio-launch-desktop: preserve static_assert message 2022-08-15 17:02:06 +00:00
Owen Rafferty
c850a06ea2
gio-launch-desktop: replace static_assert with G_STATIC_ASSERT 2022-08-15 01:41:50 -05:00
Jordi Mas
663a7959ca Update Catalan translation 2022-08-14 15:55:00 +02:00
Goran Vidović
9acb3e9dbc Update Croatian translation 2022-08-12 22:33:43 +00:00
Luca Bacci
bf13a5e0a4 GWin32AppInfo: Implement launch_uris_async
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/4400
2022-08-12 18:33:20 +02:00
Michael Catanzaro
0ffe86a1f7 Replace most GObject warnings with criticals
All of these warnings indicate programmer error, so critical is most
appropriate here.

Exceptions: deprecation warnings are just warnings. Also, warnings that
are worded with uncertainty can remain warnings rather than criticals.
2022-08-09 13:18:47 -05:00
Danial Behzadi
bfe7c3475a Update Persian translation 2022-08-08 17:45:21 +00:00
Danial Behzadi
2375d85a55 Update Persian translation 2022-08-08 11:45:29 +00:00
Daniel Mustieles
d4c16c66d4 Updated Spanish translation 2022-08-08 12:42:43 +02:00
Simon McVittie
96c541c45a Merge branch 'tls-no-flags-rename-fix' into 'main'
gtlscertificate: Update reference to G_TLS_CERTIFICATE_NO_FLAGS

See merge request GNOME/glib!2855
2022-08-08 10:20:16 +00:00
Danial Behzadi
dcf6f547d3 Update Persian translation 2022-08-07 21:39:40 +00:00
Hugo Carvalho
98a6f2914b Update Portuguese translation 2022-08-07 21:31:28 +00:00
Yuri Chornoivan
9c8f6a9b10 Update Ukrainian translation 2022-08-07 16:08:01 +00:00
Asier Sarasua Garmendia
a23580a257 Update Basque translation 2022-08-07 09:49:11 +00:00
Danial Behzadi
14baaa9732 Update Persian translation 2022-08-06 23:33:03 +00:00
Aleksandr Melman
53e533cc15 Update Russian translation 2022-08-06 14:42:33 +00:00
Marco Trevisan (Treviño)
bcddc56c41 gtlscertificate: Update reference to G_TLS_CERTIFICATE_NO_FLAGS
G_TLS_CERTIFICATE_FLAGS_NONE was removed as part of commit aa65fc2537.
2022-08-06 01:33:15 +02:00
Marco Trevisan (Treviño)
1edb3c515a
2.73.3
Co-authored-by: Matthias Clasen <mclasen@redhat.com>
Signed-off-by: Marco Trevisan (Treviño) <mail@3v1n0.net>
2022-08-05 18:24:47 -04:00
Marco Trevisan
a4f60709d5 Merge branch 'mcatanzaro/tls-exporter' into 'main'
Expose tls-exporter channel binding

See merge request GNOME/glib!2853
2022-08-05 22:01:37 +00:00
Matthias Clasen
0199fd5ab6 Merge branch 'gio-tool-delete-docs' into 'main'
docs: Add --delete option to gio-tool attributes documentation

See merge request GNOME/glib!2854
2022-08-05 21:05:38 +00:00
Michael Catanzaro
9d37075a00 Expose tls-exporter channel binding
Required for glib-networking#191
2022-08-05 16:02:09 -05:00
Marco Trevisan (Treviño)
ea0617e993 docs: Add --delete option to gio-tool attributes documentation
It was added via !2845 but not documented.
2022-08-05 22:36:06 +02:00
Marco Trevisan
3feccc13dd Merge branch 'mcatanzaro/build-best-practices' into 'main'
Improve default value of glib_debug option

See merge request GNOME/glib!2851
2022-08-05 19:36:00 +00:00
Marco Trevisan
6965f6457e Merge branch 'iss2588' into 'main'
gio-tool: -d option to delete attribute

Closes #2588

See merge request GNOME/glib!2845
2022-08-05 19:21:58 +00:00
Luca Bacci
d3ae4cc809 GWin32AppInfo: Ensure COM is initialized when activating UWP apps
Using the Application Activation Manager coclass. Its threading model
is marked as 'both', so it can be instantiated in any apartment type
without marshaling.
2022-08-04 21:35:08 +02:00
Luca Bacci
72128e2abb Merge branch 'fix-gio-tests-cancellable-for-windows-x64' into 'main'
Fix GCancellable tests for Windows 64bit

Closes #2703

See merge request GNOME/glib!2849
2022-08-04 19:33:42 +00:00
Michael Catanzaro
61a843564d Improve default value of glib_debug option
glib_debug is an auto option. This is clever because it allows us to
guess the best default based on the build type, while also allowing an
easy way to override if the guess is not good. Sadly, the attempt to
guess based on the build type does not work well. For example, it
considers debugoptimized builds to be debug builds, but despite the
name, it is definitely a release build type (except on Windows, which
we'll ignore here). The minsize build type has the exact same problem.
The debug option is true for both build types, but this only controls
whether debuginfo is enabled, not whether debug extras are enabled.

The plain build type has a different problem: debug is off, but the
optimization option is off too, even though plain builds are distro
builds are will almost always use optimization.

I've outlined an argument for why we should make these changes here:
https://blogs.gnome.org/mcatanzaro/2022/07/15/best-practices-for-build-options/

Specifically, Rule 4 shows all the build types and whether they
correspond to release builds or debug builds. Rule 6 argues that we
should provide good defaults for plain builds.
2022-08-03 17:07:13 -05:00
Luca Bacci
cdb8e5e9c5 Fix warnings in GCancellable test 2022-08-03 20:38:59 +02:00
Luca Bacci
a1737ece06 Fix GCancellable tests for Windows 64bit
Fixes https://gitlab.gnome.org/GNOME/glib/-/issues/2703
2022-08-03 20:33:46 +02:00
Hugo Carvalho
08715a4cd1 Update Portuguese translation 2022-08-03 09:52:51 +00:00
Luca Bacci
bf028b9176 Merge branch 'protect-calls-to-msvcrt-wspawne-with-a-mutex' into 'main'
GSpawn/Win32: Provide thread-safe wrappers for _wspawn*e functions

Closes #2509

See merge request GNOME/glib!2843
2022-08-03 04:49:50 +00:00
Emmanuele Bassi
ab189ecfed Merge branch 'wip/chergert/fix-2708' into 'main'
gmain: close pidfd when finalizing GChildWatchSource

Closes #2708

See merge request GNOME/glib!2847
2022-08-02 19:53:44 +00:00
Christian Hergert
b62745fe8e gmain: close pidfd when finalizing GChildWatchSource
A file-descriptor was created with the introduction of pidfd_getfd() but
nothing is closing it when the source finalizes. The GChildWatchSource is
the creator and consumer of this FD and therefore responsible for closing
it on finalization.

The pidfd leak was introduced in !2408.

This fixes issues with Builder where anon_inode:[pidfd] exhaust the
available FD limit for the process.

Fixes #2708
2022-08-02 12:35:56 -07:00
Luca Bacci
477ff949e1 gspawn-win32: Provide thread-safe wrappers for _wspawn*e functions
_wspawn*e functions are not thread safe on the MSVCRT.dll and
the pre-2015 MSVC runtime DLLs (msvcrXXX.dll).
2022-08-02 18:47:05 +02:00
Luca Bacci
0cb43a4965 Merge branch 'g-win32-app-info-launched-signal-actually-report-pid' into 'main'
GWin32AppInfo: Fix PID reporting in launched signal

See merge request GNOME/glib!2299
2022-08-02 14:51:26 +00:00