summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Port various timeout/idle callbacks to the once APIEmmanuele Bassi2022-05-273-12/+8
| | | | | | | | | | | | So we excercise it in our test coverage.
| * | Add one-shot idle and timeout functionsEmmanuele Bassi2022-05-274-0/+210
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many idle and timeout sources are installed as "one shot": called once and immediately removed. While it's easy to write a simple callback that returns G_SOURCE_REMOVE, it would also be useful to have some sort of "visual" marker when reading the code; a way to immediately see that a callback (which may be defined elsewhere in the code) is meant to be invoked just once. Includes additional unit tests by Philip Withnall.
* | | Merge branch 'move_gobject_tests' into 'main'Philip Withnall2022-05-2614-423/+404
|\ \ \ | | | | | | | | | | | | | | | | Moving gobject tests from tests/gobjects to gobjects/tests See merge request GNOME/glib!2550
| * | | Moving gobject tests from tests/gobjects to gobjects/testsEmmanuel Fleury2022-05-2614-53/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test files concerned are: - tests/gobjects/accumulator.c - tests/gobjects/defaultiface.c - tests/gobjects/deftype.c - tests/gobjects/dynamictype.c - tests/gobjects/override.c - tests/gobjects/references.c - tests/gobjects/signals.c - tests/gobjects/singleton.c Related to issue #1434
| * | | Convert tests/gobject/singleton.c to glib test frameworkEmmanuel Fleury2022-05-261-11/+16
| | | |
| * | | Convert tests/gobject/signals.c to glib test frameworkEmmanuel Fleury2022-05-261-23/+26
| | | |
| * | | Convert tests/gobject/references.c to glib test frameworkEmmanuel Fleury2022-05-261-91/+84
| | | |
| * | | Convert tests/gobject/override.c to glib test frameworkEmmanuel Fleury2022-05-261-100/+100
| | | |
| * | | Convert tests/gobject/dynamictype.c to glib test frameworkEmmanuel Fleury2022-05-261-36/+40
| | | |
| * | | Convert tests/gobject/defaultiface.c to glib test frameworkEmmanuel Fleury2022-05-261-38/+46
| | | |
| * | | Convert tests/gobject/accumulator.c to glib test frameworkEmmanuel Fleury2022-05-261-76/+73
| | | |
* | | | Merge branch 'refcount_tests' into 'main'Philip Withnall2022-05-2610-189/+199
|\ \ \ \ | |/ / / |/| | | | | | | | | | | Moving tests/refcount/ directory to gobject/tests/ See merge request GNOME/glib!2553
| * | | tests: Port GObject tests from g_thread_create() to g_thread_new()Philip Withnall2022-05-264-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To avoid warnings about deprecated functions. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #1434
| * | | Moving tests/refcount/ directory to gobject/tests/Emmanuel Fleury2022-05-2610-61/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Modified by Philip Withnall to omit the subdirectory and drop the `refcount` suite as both seem like unnecessary over-categorisation. Related to issue #1434
| * | | Convert tests/refcount/signals.c to glib test frameworkEmmanuel Fleury2022-05-261-16/+21
| | | |
| * | | Convert tests/refcount/properties4.c to glib test frameworkEmmanuel Fleury2022-05-261-8/+16
| | | |
| * | | Convert tests/refcount/properties3.c to glib test frameworkEmmanuel Fleury2022-05-261-13/+21
| | | |
| * | | Convert tests/refcount/properties2.c to glib test frameworkEmmanuel Fleury2022-05-261-29/+37
| | | |
| * | | Convert tests/refcount/properties.c to glib test frameworkEmmanuel Fleury2022-05-261-23/+29
| | | |
| * | | Convert tests/refcount/objects2.c to glib test frameworkEmmanuel Fleury2022-05-261-15/+25
| | | |
| * | | Convert tests/refcount/objects.c to glib test frameworkEmmanuel Fleury2022-05-261-18/+22
|/ / /
* | | Merge branch 'slice-test' into 'main'Philip Withnall2022-05-269-309/+876
|\ \ \ | | | | | | | | | | | | | | | | Slice test See merge request GNOME/glib!2579
| * | | Remove unnecessary dependency on the slice-color testEmmanuel Fleury2022-05-171-3/+1
| | | |
| * | | Convert test/slice-test.c to glib test framework and move it to glib/tests/Emmanuel Fleury2022-05-179-306/+875
| | | |
* | | | Merge branch 'module_tests' into 'main'Philip Withnall2022-05-265-121/+75
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Move tests/module-test.c to gmodules/tests/ See merge request GNOME/glib!2660
| * | | | tests: Remove redundant meson commandsPhilip Withnall2022-05-261-37/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | | Move tests/module-test.c to gmodules/tests/Emmanuel Fleury2022-05-265-46/+37
| | | | | | | | | | | | | | | | | | | | Helps issue #1434
| * | | | Convert tests/modules-test.c to glib test frameworkEmmanuel Fleury2022-05-261-39/+39
|/ / / /
* | | | Merge branch 'nacho/uwp-warnings' into 'main'Philip Withnall2022-05-261-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | win32appinfo: change log level from warning to debug Closes #2640 See merge request GNOME/glib!2661
| * | | | win32appinfo: change log level from warning to debugIgnacio Casal Quinteiro2022-05-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is nothing that the user can do anyway and this dumps lots of warnings without real need. Closes #2640
* | | | | Merge branch 'gobject-speedups3' into 'main'Matthias Clasen2022-05-262-11/+35
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | gobject: Keep a count of construct params See merge request GNOME/glib!2690
| * | | | | Avoid malloc for construct paramsMatthias Clasen2022-05-261-5/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stack-allocate the GObjectConstructParams (except for extreme cases), for a small speedup of object construction.
| * | | | | Keep a count of construct paramsMatthias Clasen2022-05-262-8/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | Merge branch 'junit' into 'main'Philip Withnall2022-05-262-28/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | gitlab-ci: left-over from junit cleanup See merge request GNOME/glib!2687
| * | | | | | gitlab-ci: left-over from junit cleanupMarc-André Lureau2022-05-252-28/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should have been part of GNOME/glib!2686 (sorry!) Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
* | | | | | | Merge branch 'meson-dependency-lookups' into 'main'Philip Withnall2022-05-261-22/+1
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | meson: use builtin dependency lookups for zlib/intl See merge request GNOME/glib!2685
| * | | | | | meson: use builtin zlib dependency lookupEli Schwartz2022-05-241-22/+1
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | Merge branch 'wip/chergert/fix-sysprof-wrapper' into 'main'Philip Withnall2022-05-262-6/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | build: update sysprof configuration options See merge request GNOME/glib!2689
| * | | | | | build: update sysprof configuration optionsChristian Hergert2022-05-252-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | | Merge branch 'param-spec-cleanup' into 'main'Philip Withnall2022-05-251-55/+2
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gparamspecs: Remove redundant NULL checks See merge request GNOME/glib!2688
| * | | | | | | gparamspecs: Tidy up a preconditionPhilip Withnall2022-05-251-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | | | | | gparamspecs: Remove redundant NULL checksPhilip Withnall2022-05-251-53/+1
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `g_param_spec_internal()` can never return `NULL`. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* | | | | | | Merge branch 'param-speedups2' into 'main'Philip Withnall2022-05-256-41/+734
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | param: Add a value_is_valid vfunc See merge request GNOME/glib!2677
| * | | | | | gobject: Use value_is_validMatthias Clasen2022-05-251-23/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | | gparamspec: Test individual paramspec is_valid() implementationsMatthias Clasen2022-05-251-0/+268
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test many of the paramspec implementations at least a little bit.
| * | | | | | Add another test for g_param_value_is_validMatthias Clasen2022-05-231-0/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a test that exercises the fallback in g_param_value_is_valid.
| * | | | | | Add tests for g_param_value_is_validMatthias Clasen2022-05-231-5/+28
| | | | | | |
| * | | | | | param: Add g_param_value_is_validMatthias Clasen2022-05-233-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is wrapper for the new value_is_valid vfunc, but it falls back to using value_validate to obtain the same information.
| * | | | | | param: Add a value_is_valid vfuncMatthias Clasen2022-05-232-13/+248
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | Merge branch 'junit' into 'main'Emmanuele Bassi2022-05-255-153/+11
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | gitlab-ci: remove meson-junit-report.py conversion See merge request GNOME/glib!2686