Emmanuel Fleury
b65260abe4
Convert tests/refcount/signals.c to glib test framework
2022-05-26 18:37:35 +01:00
Emmanuel Fleury
d97c1a148e
Convert tests/refcount/properties4.c to glib test framework
2022-05-26 18:37:35 +01:00
Emmanuel Fleury
94ef5ae4c7
Convert tests/refcount/properties3.c to glib test framework
2022-05-26 18:37:35 +01:00
Emmanuel Fleury
ddadb89d7c
Convert tests/refcount/properties2.c to glib test framework
2022-05-26 18:37:35 +01:00
Emmanuel Fleury
76fccc78c0
Convert tests/refcount/properties.c to glib test framework
2022-05-26 18:37:34 +01:00
Emmanuel Fleury
715ff4ea29
Convert tests/refcount/objects2.c to glib test framework
2022-05-26 18:37:34 +01:00
Emmanuel Fleury
62b5fe5991
Convert tests/refcount/objects.c to glib test framework
2022-05-26 18:37:34 +01:00
Philip Withnall
ce585ba4d2
Merge branch 'slice-test' into 'main'
...
Slice test
See merge request GNOME/glib!2579
2022-05-26 17:01:52 +00:00
Philip Withnall
8625d8144b
Merge branch 'module_tests' into 'main'
...
Move tests/module-test.c to gmodules/tests/
See merge request GNOME/glib!2660
2022-05-26 16:42:02 +00:00
Philip Withnall
0dca8bb6aa
tests: Remove redundant meson commands
...
The `tests` array is now empty, so everything to do with it can be
removed from this file.
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2022-05-26 17:27:03 +01:00
Emmanuel Fleury
c71d0c53b5
Move tests/module-test.c to gmodules/tests/
...
Helps issue #1434
2022-05-26 17:26:58 +01:00
Emmanuel Fleury
f62be5660d
Convert tests/modules-test.c to glib test framework
2022-05-26 16:32:48 +01:00
Philip Withnall
a20a432100
Merge branch 'nacho/uwp-warnings' into 'main'
...
win32appinfo: change log level from warning to debug
Closes #2640
See merge request GNOME/glib!2661
2022-05-26 14:29:11 +00:00
Matthias Clasen
694e91c130
Merge branch 'gobject-speedups3' into 'main'
...
gobject: Keep a count of construct params
See merge request GNOME/glib!2690
2022-05-26 14:07:26 +00:00
Matthias Clasen
ecc641de71
Avoid malloc for construct params
...
Stack-allocate the GObjectConstructParams (except for
extreme cases), for a small speedup of object construction.
2022-05-26 09:47:23 -04:00
Matthias Clasen
f7119a7935
Keep a count of construct params
...
This avoids walking the construct params list
one extra time just to count when constructing
objects, for a small speedup of object construction
in the presence of construct params.
2022-05-26 09:47:23 -04:00
Philip Withnall
4af76e2d9b
Merge branch 'junit' into 'main'
...
gitlab-ci: left-over from junit cleanup
See merge request GNOME/glib!2687
2022-05-26 13:36:31 +00:00
Philip Withnall
eacb41f62e
Merge branch 'meson-dependency-lookups' into 'main'
...
meson: use builtin dependency lookups for zlib/intl
See merge request GNOME/glib!2685
2022-05-26 12:57:20 +00:00
Philip Withnall
cdc5bf0227
Merge branch 'wip/chergert/fix-sysprof-wrapper' into 'main'
...
build: update sysprof configuration options
See merge request GNOME/glib!2689
2022-05-26 11:34:29 +00:00
Christian Hergert
114eb5bc5a
build: update sysprof configuration options
...
Sysprof recently cleaned up it's build configuration options. This is
perhaps a good time to update GLib to point at an updated commit'ish and
use the new options.
If now is not a good time to do the update, that is completely fine, but
I wanted to give you a turn-key MR nonetheless.
2022-05-25 23:02:14 -07:00
Philip Withnall
44ba3a5f0e
Merge branch 'param-spec-cleanup' into 'main'
...
gparamspecs: Remove redundant NULL checks
See merge request GNOME/glib!2688
2022-05-25 16:04:29 +00:00
Philip Withnall
f157c7d0d3
gparamspecs: Tidy up a precondition
...
Move the `if` into the precondition assertion, eliminating one line of
code and making the function preconditions clearer to static analysers.
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2022-05-25 14:44:48 +01:00
Philip Withnall
96f4c2b095
gparamspecs: Remove redundant NULL checks
...
`g_param_spec_internal()` can never return `NULL`.
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2022-05-25 14:44:48 +01:00
Philip Withnall
321fe5d0a4
Merge branch 'param-speedups2' into 'main'
...
param: Add a value_is_valid vfunc
See merge request GNOME/glib!2677
2022-05-25 13:41:12 +00:00
Marc-André Lureau
a8058cb12c
gitlab-ci: left-over from junit cleanup
...
This should have been part of GNOME/glib!2686 (sorry!)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2022-05-25 15:27:37 +02:00
Matthias Clasen
c72de9dd99
gobject: Use value_is_valid
...
Avoid GValue transformation when we can, using
the new value_is_valid vfunc.
This is particularly useful for string properties,
where g_value_transform will make a copy of the string.
2022-05-25 14:25:18 +01:00
Matthias Clasen
b0d15068c4
gparamspec: Test individual paramspec is_valid() implementations
...
Test many of the paramspec implementations
at least a little bit.
2022-05-25 14:25:18 +01:00
Emmanuele Bassi
aff04305c4
Merge branch 'junit' into 'main'
...
gitlab-ci: remove meson-junit-report.py conversion
See merge request GNOME/glib!2686
2022-05-25 12:22:03 +00:00
Marc-André Lureau
c8ce3786d7
gitlab-ci: remove meson-junit-report.py conversion
...
meson supports JUnit XML format since 0.55.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2022-05-25 14:10:35 +02:00
Eli Schwartz
c630b4a5bc
meson: use builtin zlib dependency lookup
...
Since Meson 0.54.0, `dependency('zlib')` will fallback on systems
without a pkg-config dependency, to a system dependency lookup that
performs the necessary `find_libary('z')` (or MSVC zlib/zlib1) and
`has_header('zlib.h')` checks.
This means all the manual lookups are no longer needed, and a single
dependency lookup covers all cases, and also clarifies the log lookup by
not sometimes listing "not found" a couple times.
2022-05-24 15:22:34 -04:00
Emin Tufan Çetin
587b1559ae
Update Turkish translation
2022-05-24 07:01:45 +00:00
Matthias Clasen
c8e14df6f7
Add another test for g_param_value_is_valid
...
Add a test that exercises the fallback
in g_param_value_is_valid.
2022-05-23 15:51:33 -04:00
Matthias Clasen
24925658f5
Add tests for g_param_value_is_valid
2022-05-23 15:51:33 -04:00
Matthias Clasen
dacfe8c88a
param: Add g_param_value_is_valid
...
This is wrapper for the new value_is_valid vfunc,
but it falls back to using value_validate to
obtain the same information.
2022-05-23 15:48:28 -04:00
Matthias Clasen
bdc8b025c5
param: Add a value_is_valid vfunc
...
In constrast to value_validate, this one does not
modify the passed-in value, so we can avoid the cost
of copying the GValue beforehand.
It is optional, but we set it for most of the
builtin pspec types.
2022-05-23 15:48:28 -04:00
Philip Withnall
3d3162c202
Merge branch 'finalize-speedups' into 'main'
...
Speed up object finalization
See merge request GNOME/glib!2680
2022-05-23 13:47:23 +00:00
Matthias Clasen
b7be0f95a8
gobject: Speed up finalization
...
Move the warning about finalize-during-construction
to debug-only.
2022-05-23 09:20:46 -04:00
Matthias Clasen
fa8c7c0da6
gobject: Use g_datalist_id_remove_multiple
...
This speeds up object finalization a little.
2022-05-23 09:19:45 -04:00
Matthias Clasen
0415bf9412
Add g_datalist_id_remove_multiple
...
This is more efficient than calling
g_datalist_id_remove() multiple times
in a row, since it only takes the locks
once.
Allow up to 16 keys to be removed in one go.
That is enough for the use we have in GObject,
and it avoids any danger of blowing the stack.
2022-05-23 09:19:45 -04:00
Matthias Clasen
1c4f6da1f7
Add a finalization performance test
2022-05-23 08:49:04 -04:00
Philip Withnall
7de0fcd628
Merge branch 'gobject-speedups2' into 'main'
...
Avoid g_type_peek_value_table
See merge request GNOME/glib!2674
2022-05-23 11:00:23 +00:00
Matthias Clasen
f2a085d8ea
Avoid g_type_peek_value_table
...
In several places we do paired calls of g_value_init
and g_value_unset, both of which peek the value table.
We can avoid half of that cost by remembering the value
table, instead of looking it up again.
This uses the new G_VALUE_COLLECT_INIT2 macro.
2022-05-23 06:35:55 -04:00
Matthias Clasen
aaef7f30b3
value: Add G_VALUE_COLLECT_INIT2
...
Add a variant of the G_VALUE_COLLECT_INIT() macro
that provides the GTypeValueTable to the caller.
2022-05-23 05:57:36 -04:00
Christian Kirbach
bc61ae7f83
Update German translation
...
(cherry picked from commit 92177755ed
)
2022-05-22 21:50:00 +00:00
Philip Withnall
50877bb2d1
docs: Add a roadmap policy
...
This describes how releases are planned and scheduled, and where users
of GLib can look to see what the current (loose) roadmap is.
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2022-05-22 17:10:52 +01:00
Philip Withnall
f0f2c0107e
Merge branch 'update-closure-annotations-2' into 'main'
...
Rename user data parameters to user_data
See merge request GNOME/glib!2679
2022-05-22 13:37:37 +00:00
Charles Monzat
568eeda6c9
Update French translation
...
Cherry-pick of 4d6e03745e
from glib-2-72
2022-05-22 10:36:27 +02:00
TestingPlant
da7a31a052
Rename user data parameters to user_data
...
The user data parameters in callbacks need to be named user_data to
generate correct closure attributes in the introspection data. This
updates parameters missed in GNOME/glib!2633 .
2022-05-22 01:06:37 +00:00
Asier Sarasua Garmendia
b49f36f69f
Update Basque translation
2022-05-21 06:00:03 +00:00
Jordi Mas
0605602d1f
Update Catalan translation
2022-05-20 18:01:10 +02:00