Philip Withnall
02ffe6a779
Merge branch 'fix_3429' into 'main'
...
gsettings-tool: Always use the global_schema_source to lookup schemas in list-recursively
Closes #3429
See merge request GNOME/glib!4183
2024-08-14 16:14:45 +00:00
Lukáš Tyrychtr
018581adb5
gsettings-tool: Always use the global_schema_source to lookup schemas in list-recursively
...
When listing schemas from a specified directory, explicitly
create the GSettings object from the schema, don't allow g_settings_new
to do the usual lookup. That lookup fails if no other schemas are
installed in the default directories.
Fixes #3429 .
2024-08-14 16:14:45 +00:00
Philip Withnall
ab616db01e
Merge branch 'wip/3v1n0/ci-really-use-fedora-39' into 'main'
...
ci: Ignore lcov errors on source missing, handle atomic writes and actually use Fedora 39 image
Closes #3381
See merge request GNOME/glib!4096
2024-08-14 14:58:36 +00:00
Philip Withnall
742f38fa93
Merge branch 'jsparber/open_uri_activation_token' into 'main'
...
gappinfo: Pass activation token from launch context to open_uri/file portal
Closes #2868
See merge request GNOME/glib!3933
2024-08-14 14:16:40 +00:00
Michael Catanzaro
d9b2d097b4
Merge branch 'gstring-free-unused-result' into 'main'
...
gstring: fix unused-result warning with g_string_free() in C++
See merge request GNOME/glib!4182
2024-08-14 13:34:30 +00:00
Philip Withnall
dfe5e15a0a
Merge branch 'use-tap-14' into 'main'
...
gtestutils: Use TAP 14 syntax by default
Closes #2885
See merge request GNOME/glib!4178
2024-08-14 13:27:04 +00:00
Philip Withnall
c5e17bc37f
Merge branch 'amolenaar/macos-launch-uris-async' into 'main'
...
macos: Implement GAppInfo launch_uris_async interface
Closes #3403
See merge request GNOME/glib!4129
2024-08-14 13:16:06 +00:00
Emmanuele Bassi
2a4f7b8421
Merge branch 'lukeshu/doc-conversion' into 'main'
...
docs: Fix mistakes from the GTK-Doc to GI-DocGen conversion
See merge request GNOME/glib!4187
2024-08-14 00:16:09 +00:00
Luke T. Shumaker
03a2ec8fee
docs: g_socket_{get,set}_option: Fix the link to gnetworking.h
2024-08-13 15:19:21 -06:00
Luke T. Shumaker
9f6afbdb33
docs: g_regex_match_all: Remove a stray ";" in an example regex
2024-08-13 15:19:21 -06:00
Luke T. Shumaker
e4a2aa8f39
docs: Wrap things that gi-docgen mistakes as HTML tags in backticks
...
This are nasty, because they mean words get dropped from the
documentation. This can be seen at
- https://docs.gtk.org/gio/ctor.DBusNodeInfo.new_for_xml.html where
it reads "one top-level element" instead of "one top-level <node>
element".
- https://docs.gtk.org/gio/method.ProxyResolver.lookup.html where it
reads "where could be" instead of "where <protocol> could be".
- https://docs.gtk.org/gio/method.Socket.get_option.html where it
reads "[][gio-gnetworking.h]" instead of
"[<gio/gnetworking.h>][gio-gnetworking.h" (also, this markdown link
needs fixed, but let's save that for another commit).
- https://docs.gtk.org/glib/ctor.DateTime.new_from_iso8601.html where
the text is incomprehensible; "strings of the form are supported"
instead of "strings of the form <date><sep><time><tz> are
supported"; further references to <sep>, <date>, <time>, and <tz>
are similarly mangled.
- https://docs.gtk.org/glib/method.MatchInfo.fetch_named.html and
https://docs.gtk.org/glib/method.MatchInfo.fetch_named_pos.html
where the regex reads as "(?Pa)?b" instead of as "(?P<X>a)?b",
changing the meaning of it.
- https://docs.gtk.org/glib/method.Regex.match_all_full.html is all
wack because the "<a>" in the example string is taken to be an HTML
link; and all example strings and regexes are mangled (also, one of
the regexes has a stray ";" in it, but let's save that for another
commit).
- https://docs.gtk.org/glib/method.Regex.replace.html where it simply
reads "\g" instead of "\g<number>" and "\g<name>".
Fix those.
2024-08-13 15:19:21 -06:00
Luke T. Shumaker
d0b59da656
docs: Transition remaining DocBook XML to markdown/HTML
...
These remaining DocBook tags are mostly harmless; they are passed as
HTML5 tags to the browser, which effectively treats them as just
<span> elements, so all this mistake is doing is dropping some
styling.
This lack of of styling can be seen at:
- https://docs.gtk.org/gio/enum.DriveStartStopType.html "ATA SECURITY
UNLOCK DEVICE" is not indicated to be a quote or anything.
- https://docs.gtk.org/gio/struct.UnixMountEntry.html "/media/cdrom"
is not rendered in monospace.
- https://docs.gtk.org/gio/struct.UnixMountPoint.html "/dev" is not
rendered in monospace.
- https://docs.gtk.org/glib/type_func.Thread.init.html the notes are
not indicated to be anything other than regular paragraphs.
Fix that.
2024-08-13 15:19:14 -06:00
Michael Catanzaro
7f6444cb79
Merge branch 'gobjectnotifyqueue_unused' into 'main'
...
gobjectnotifyqueue: add G_GNUC_UNUSED in unused parameters
See merge request GNOME/glib!4188
2024-08-13 14:28:47 +00:00
Pablo Barciela
de7fdced7f
gobjectnotifyqueue: Add G_GNUC_UNUSED in unused parameters
2024-08-13 04:40:11 +02:00
Michael Catanzaro
0b64bb2204
Merge branch 'sophie-h-main-patch-f54e' into 'main'
...
doap: Remove invalid maintainer entry
See merge request GNOME/glib!4186
2024-08-12 13:33:08 +00:00
Sophie Herold
65ac113c4b
doap: Remove invalid maintainer entry
...
The gnome:userid for this maintainer does not exist. Remove the entry for clarification and to avoid errors in automated processing of .doap-files.
2024-08-12 11:46:22 +00:00
Arjan Molenaar
2ad61ed0ee
Fix formatting issues
2024-08-10 19:42:32 +02:00
Arjan Molenaar
d23c781e7b
macos: Tune launch results for CI
...
It looks like we have no Finder running.
2024-08-10 19:34:29 +02:00
Arjan Molenaar
1053c016d9
macos: Add test case for invalid scheme
...
You may not always know which schemes are available.
The library should not bail out, but only show
an informal message. It's the responsibility of
the application to deal with invalid URI schemes.
2024-08-10 19:34:29 +02:00
Arjan Molenaar
fac8a8c8d8
macos: Add test for async launcher
...
The test brings a Finder window to the front. It's not ideal,
but I have no better idea at the moment. It would be cool if we
can make the test case register itself as handler for a particular
uri scheme, but I have no idea how to do that.
2024-08-10 19:34:29 +02:00
Arjan Molenaar
edd36a907b
macos: simplify urlspec setup for launch_uris_async
...
NB. Using toll-free bridging to cast NSURL to a CFURLRef
See https://developer.apple.com/library/archive/documentation/General/Conceptual/CocoaEncyclopedia/Toll-FreeBridgin/Toll-FreeBridgin.html
2024-08-10 19:34:29 +02:00
Arjan Molenaar
9f0ff882c1
macos: Fill appUrl directly
...
No need to convert it to a char* first.
This also avoids threading issues with OsxAppInfo's get_filename() method.
2024-08-10 19:34:29 +02:00
Arjan Molenaar
71e87fc29c
more indentation fixes
2024-08-10 19:34:29 +02:00
Arjan Molenaar
e9ee147ac9
macos: fix header indentation
2024-08-10 19:34:29 +02:00
Arjan Molenaar
c67ae98588
macos: Implement GAppInfo.launch_uris_async interface
...
The implementation is heavily inspired by the Windows implementation.
2024-08-10 19:34:29 +02:00
Michael Catanzaro
c2078021cb
Merge branch 'gvariant-copy-free-func' into 'main'
...
GVariant: Add copy-func and free-func annotations
See merge request GNOME/glib!4161
2024-08-10 13:52:00 +00:00
Michael Catanzaro
d8514c4b8d
Merge branch 'th/hash-steal-extended-set' into 'main'
...
ghash: fix g_hash_table_steal_extended() when requesting key and value of a set
See merge request GNOME/glib!2980
2024-08-09 18:54:15 +00:00
Thomas Haller
f6cf2bcfd2
ghash: fix g_hash_table_steal_extended() when requesting key and value of a set
...
GHashTable optimizes for the "set" case, where key and value are the same.
See g_hash_table_add().
A user cannot see from outside, whether a GHashTable internally is a set
and shares the keys and values array. Adding one key/value pair with
differing key and value, will expand the GHashTable.
In all other cases, the GHashTable API hides this implementation detail
correctly. Except with g_hash_table_steal_extended(), when stealing both the
key and the value.
Fix that. This bug fix is obviously a change in behavior. In practice,
it's unlikely that somebody would notice, because GHashTable contains
opaque pointers and the user must know what the keys/values are and
be aware of their ownership semantics when stealing them. That means,
the change in behavior only affects instances that are internally a set,
of what the user most likely is aware and fills the table with
g_hash_table_add(). Such a user would not steal both the key and
values at the same time. Even if they do, then previously stealing the
value was pointless and would not give them what they wanted. It would
not have meaningfully worked, and since nobody reported a bug about this
yet, it's unlikely somebody noticed.
The more problematic case when the user exhibits the bug is when the
dictionary is unexpected a set internally. Imagine a mapping from numbers
to numbers (e.g. a permutation). If "unexpectedly" the dictionary contains
the identity permutation, steal-extended gives always NULL for the target
number.
The example is far fetched. In practice, it's unlikely that somebody is
gonna notice either way. That is not an argument for fixing anything.
The argument for fixing this, is that the bug breaks the illusion that
the set is only an internal optimization. That is ugly and inconsistent.
2024-08-09 19:24:08 +02:00
Thomas Haller
600dd1a8a9
ghash/tests: add test cases for g_hash_table_steal_extended() for a set
2024-08-09 19:23:13 +02:00
Michael Catanzaro
f8b230f593
Merge branch 'gbytes-copy-free-func' into 'main'
...
GBytes: Add copy-func and free-func annotations
See merge request GNOME/glib!4162
2024-08-09 16:08:41 +00:00
Michael Catanzaro
804f6de450
Merge branch 'nielsdg/gmain-gi-docgen' into 'main'
...
gmain: Adapt to gi-docgen comments
See merge request GNOME/glib!4177
2024-08-09 15:44:32 +00:00
Marco Trevisan
044acfcb77
Merge branch 'wip/chergert/fix-mapped-file-get-contents' into 'main'
...
glib/mappedfile: g_mapped_file_get_contents() does not transfer
See merge request GNOME/glib!4180
2024-08-09 15:14:03 +00:00
Olivier Blin
dd62ad57d9
gstring: fix unused-result warning with g_string_free() in C++
...
Some g++ versions issue an unused-result warning for the g_string_free() macro:
error: ignoring return value of 'gchar* g_string_free_and_steal(GString*)',
declared with attribute warn_unused_result [-Werror=unused-result]
g_string_free(s, TRUE);
This occurs with gcc 6.x / 7.1 / 7.2, and it is fixed in gcc 7.3.
2024-08-07 15:57:20 +02:00
Emmanuele Bassi
c865680f96
Merge branch 'fix-up-gapplication-docs-a-little' into 'main'
...
docs: Linkify a function
See merge request GNOME/glib!4181
2024-08-05 12:55:32 +00:00
Matthias Clasen
653cdb73d7
docs: Linkify a function
...
I answered a question on irc about withdrawing notifications, and
when I handed out a link to the GApplication docs, I noticed we
don't have this function name linkified. Fix that.
2024-08-05 08:23:45 -04:00
Christian Hergert
fab6595562
glib/mappedfile: g_mapped_file_get_contents() does not transfer
...
This fixes the annoations for g_mapped_file_get_contents() which looks
like it might transfer ownership (due to being a char*) but does not as
we're pointing into the mmap() region.
2024-08-02 14:20:36 -07:00
Marco Trevisan
ce5e11aef4
Merge branch 'ebassi/release-2-81-1' into 'main'
...
2.81.1
See merge request GNOME/glib!4179
2024-08-02 12:57:08 +00:00
Marco Trevisan (Treviño)
6c679fb37a
gcancellable: Mark assert-only variable as unused
2024-08-02 13:57:29 +02:00
Marco Trevisan (Treviño)
2f938054e9
ci: Also compile C++ files with coverage collection
2024-08-02 13:57:29 +02:00
Marco Trevisan (Treviño)
24ec28a9a6
tools/glib.supp: Ignore valgrind false-positive error on wcsxfrm
...
See: https://gitlab.gnome.org/GNOME/glib/-/issues/3292
2024-08-02 13:57:29 +02:00
Marco Trevisan (Treviño)
48ef51f568
ci: Ignore empty lcov files such as the baselines ones
2024-08-02 13:57:29 +02:00
Marco Trevisan (Treviño)
f2993b10df
ci/coverage: Fix link of coverage index page
...
Use $CI_JOB_ID as $CI_BUILD_ID is undefined
2024-08-02 13:57:25 +02:00
Emmanuele Bassi
77da866407
Post-release version bump to 2.81.2
2024-08-02 12:52:54 +01:00
Emmanuele Bassi
95eafc0738
2.81.1
...
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
2024-08-02 12:41:55 +01:00
Marco Trevisan (Treviño)
0f8971472c
ci/coverage: Help genhtml to define the common prefix
2024-08-02 13:26:28 +02:00
Marco Trevisan (Treviño)
447ebe16af
ci/coverage: Remove coverage from all subprojects
2024-08-02 13:26:28 +02:00
Marco Trevisan (Treviño)
a04340a742
ci/fixup-cov-paths: Ensure path replacement still works
...
Without doing this we were replacing the paths with the glib subfolder,
pointing to the wrong files.
2024-08-02 13:26:28 +02:00
Marco Trevisan (Treviño)
05d81f03f6
gtestutils: Use TAP 14 syntax by default
...
The issue of meson 60 have been resolved for some time now, so we can
just use newer TAP syntax safely.
Revert "gtestutils: Use TAP 13 comments syntax for subtests"
This reverts commit e8725407bcd35c1fa8fed92250edf080d5542b3c.
Closes : #2885
2024-08-02 09:36:53 +02:00
Marco Trevisan (Treviño)
c320bb0bf8
ci: Ignore unused patterns
...
gnulib doesn't seem to be used at the moment so its _build folder, but let's
still try and don't fail if that's not happening
2024-08-02 03:39:49 +02:00
Marco Trevisan (Treviño)
d6a18eec81
tools/glib.supp: Also ignore possible leaks on g_set_user_dirs()
...
Newer valgrind is smarter so g_set_user_dirs() are now possible leaks
2024-08-02 03:39:49 +02:00