]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
4 years agoRelease 0.40.25 0.40 0.40.25
Rico Tzschichholz [Mon, 11 Jan 2021 09:42:00 +0000 (10:42 +0100)] 
Release 0.40.25

4 years agocodegen: Fix assignment of casted struct value to property
Rico Tzschichholz [Wed, 6 Jan 2021 11:19:10 +0000 (12:19 +0100)] 
codegen: Fix assignment of casted struct value to property

Usage of address-of operator requires lvalue access. Therefore use a
temporary variable to be passed to property setter.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1126

4 years agotests: Add "gtktemplate" test to increase coverage
Rico Tzschichholz [Sun, 3 Jan 2021 15:32:22 +0000 (16:32 +0100)] 
tests: Add "gtktemplate" test to increase coverage

Backported from 0.48

4 years agotests: Add "fast-vapi" test to increase coverage
Rico Tzschichholz [Sun, 3 Jan 2021 13:53:23 +0000 (14:53 +0100)] 
tests: Add "fast-vapi" test to increase coverage

Backported from 0.48

4 years agogio-2.0: Fix DBusSubtreeIntrospectFunc binding
Rico Tzschichholz [Sun, 3 Jan 2021 09:54:31 +0000 (10:54 +0100)] 
gio-2.0: Fix DBusSubtreeIntrospectFunc binding

4 years agotests: Add "string switch" test to increase coverage
Rico Tzschichholz [Sat, 2 Jan 2021 13:12:11 +0000 (14:12 +0100)] 
tests: Add "string switch" test to increase coverage

4 years agotests: Add more "array field initializer" tests to increase coverage
Rico Tzschichholz [Fri, 1 Jan 2021 16:56:16 +0000 (17:56 +0100)] 
tests: Add more "array field initializer" tests to increase coverage

4 years agocodegen: Don't leak memory on internal value comparison of property setter
Rico Tzschichholz [Fri, 1 Jan 2021 10:10:41 +0000 (11:10 +0100)] 
codegen: Don't leak memory on internal value comparison of property setter

4 years agocodegen: Don't leak memory of already assigned out-parameter on error
Rico Tzschichholz [Thu, 31 Dec 2020 08:55:16 +0000 (09:55 +0100)] 
codegen: Don't leak memory of already assigned out-parameter on error

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1123

4 years agocodegen: Use CCodeInvalidExpression instead of place holders
Rico Tzschichholz [Wed, 30 Dec 2020 13:50:05 +0000 (14:50 +0100)] 
codegen: Use CCodeInvalidExpression instead of place holders

4 years agotests: Add "array creation" tests to increase coverage
Rico Tzschichholz [Wed, 30 Dec 2020 13:50:05 +0000 (14:50 +0100)] 
tests: Add "array creation" tests to increase coverage

4 years agovala: Ownership transfer of inline-allocated array is not allowed
Rico Tzschichholz [Mon, 28 Dec 2020 17:09:04 +0000 (18:09 +0100)] 
vala: Ownership transfer of inline-allocated array is not allowed

Fixes https://gitlab.gnome.org/GNOME/vala/issues/931

4 years agovala: SliceExpression need to return heap-allocated or unowned references
Ulrich Küttler [Tue, 22 Dec 2020 07:59:16 +0000 (08:59 +0100)] 
vala: SliceExpression need to return heap-allocated or unowned references

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1120

4 years agovala: value_type of PointerIndirection expressions must not be owned
Rico Tzschichholz [Mon, 21 Dec 2020 12:52:54 +0000 (13:52 +0100)] 
vala: value_type of PointerIndirection expressions must not be owned

A member-access making the wrong assumption of a previous copy resulted
in a double free.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1118

4 years agovala: Add missing TraverseVisitor.visit_addressof_expression()
Rico Tzschichholz [Mon, 21 Dec 2020 12:52:54 +0000 (13:52 +0100)] 
vala: Add missing TraverseVisitor.visit_addressof_expression()

4 years agowebkit2gtk-4.0: Update to 2.30.3
Rico Tzschichholz [Fri, 11 Dec 2020 16:50:28 +0000 (17:50 +0100)] 
webkit2gtk-4.0: Update to 2.30.3

4 years agogstreamer-1.0: Fix direction of Gst.Iterator.fold() ret parameter
Chris White [Wed, 23 Dec 2020 16:14:51 +0000 (11:14 -0500)] 
gstreamer-1.0: Fix direction of Gst.Iterator.fold() ret parameter

See https://gitlab.gnome.org/GNOME/vala/issues/1014

4 years agogstreamer-1.0: Fix direction of GLib.Value typed parameters
Chris White [Thu, 10 Dec 2020 17:40:30 +0000 (12:40 -0500)] 
gstreamer-1.0: Fix direction of GLib.Value typed parameters

Use `out` for functions that take an uninitialized GLib.Value.
Use `ref` for functions that take a GLib.Value initialized with
a particular type.

Remove unused Gst.ControlBindingConvert

Note that the destination is nullable, but not expressly marked as such,
in gst_value_intersect, gst_value_subtract and
gst_message_parse_property_notify.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1014

4 years agovala: Report an error if gio-2.0 is missing for DBus support
Rico Tzschichholz [Thu, 3 Dec 2020 18:44:06 +0000 (19:44 +0100)] 
vala: Report an error if gio-2.0 is missing for DBus support

4 years agomanual: Update from wiki.gnome.org
Rico Tzschichholz [Thu, 19 Nov 2020 13:35:23 +0000 (14:35 +0100)] 
manual: Update from wiki.gnome.org

4 years agotests: Add "translated string constant" test to increase coverage
Rico Tzschichholz [Sat, 14 Nov 2020 20:31:03 +0000 (21:31 +0100)] 
tests: Add "translated string constant" test to increase coverage

4 years agotests: Add "constructor with inner error" test to increase coverage
Rico Tzschichholz [Sat, 14 Nov 2020 20:31:03 +0000 (21:31 +0100)] 
tests: Add "constructor with inner error" test to increase coverage

4 years agotests: Add more "delegate" tests to increase coverage
Rico Tzschichholz [Sat, 14 Nov 2020 20:31:03 +0000 (21:31 +0100)] 
tests: Add more "delegate" tests to increase coverage

4 years agolinux: Add missing struct in cname for Spi.IocTransfer
Arne Hoch [Fri, 13 Nov 2020 12:15:29 +0000 (12:15 +0000)] 
linux: Add missing struct in cname for Spi.IocTransfer

There is no typedef, so "struct spi_ioc_transfer" needs to be used.

4 years agovapigen: Avoid superfluous cast
Rico Tzschichholz [Wed, 11 Nov 2020 16:04:32 +0000 (17:04 +0100)] 
vapigen: Avoid superfluous cast

4 years agoposix: Add freopen binding, as FILE.reopen()
Reuben Thomas [Mon, 2 Nov 2020 22:04:56 +0000 (22:04 +0000)] 
posix: Add freopen binding, as FILE.reopen()

4 years agoglib-2.0: Improve GenericArray.length property
Rico Tzschichholz [Mon, 9 Nov 2020 14:23:51 +0000 (15:23 +0100)] 
glib-2.0: Improve GenericArray.length property

4 years agocodegen: Report internal error for unsupported collection type in foreach
Corentin Noël [Mon, 9 Nov 2020 12:52:53 +0000 (13:52 +0100)] 
codegen: Report internal error for unsupported collection type in foreach

4 years agoglib-2.0: Add GenericArray.find_custom() as variant of find_with_equal_func()
Corentin Noël [Tue, 3 Nov 2020 16:22:48 +0000 (17:22 +0100)] 
glib-2.0: Add GenericArray.find_custom() as variant of find_with_equal_func()

This allows the needle to be a different type as the actual element type.
The implementation of ArraySearchFunc<G,T> is more customizable this way.

4 years agovala: Use DataType.compatible() to check for string concatenation
Rico Tzschichholz [Sun, 1 Nov 2020 20:16:49 +0000 (21:16 +0100)] 
vala: Use DataType.compatible() to check for string concatenation

Make the checks match the ones performed by the code-generator to prevent
invalid c-code to be created.

See https://gitlab.gnome.org/GNOME/vala/issues/1100

4 years agolibvaladoc/girimporter: Skip "docsection" elements in <namespace>
Rico Tzschichholz [Tue, 27 Oct 2020 06:56:47 +0000 (07:56 +0100)] 
libvaladoc/girimporter: Skip "docsection" elements in <namespace>

See https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/226

4 years agocurses: Correctly use [PrintfFormat] attribute
Rico Tzschichholz [Sun, 25 Oct 2020 18:24:11 +0000 (19:24 +0100)] 
curses: Correctly use [PrintfFormat] attribute

4 years agovala: CodeNode.source_reference is optional, so let the API respect that
Rico Tzschichholz [Sat, 24 Oct 2020 12:11:43 +0000 (14:11 +0200)] 
vala: CodeNode.source_reference is optional, so let the API respect that

4 years agocodegen: Update outdated array _size_ variable of captured local-variable
Rico Tzschichholz [Thu, 22 Oct 2020 19:22:15 +0000 (21:22 +0200)] 
codegen: Update outdated array _size_ variable of captured local-variable

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1090

4 years agoglib-2.0: Add return codes to FileStream.putc/puts(), like posix
Reuben Thomas [Wed, 21 Oct 2020 19:59:41 +0000 (21:59 +0200)] 
glib-2.0: Add return codes to FileStream.putc/puts(), like posix

The corresponding C functions return a status code; make the GLib types
the same as the Posix types.

This gives these functions the correct type signature for use where a
putc-like function is required.

4 years agoalsa: Fix PcmDevice.set_poll_descriptors_revents() binding
Rico Tzschichholz [Wed, 21 Oct 2020 15:04:31 +0000 (17:04 +0200)] 
alsa: Fix PcmDevice.set_poll_descriptors_revents() binding

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1092

4 years agovala: Allow markup-reader to accept spaces around '=' of attribute assignment
Rico Tzschichholz [Tue, 20 Oct 2020 22:00:53 +0000 (00:00 +0200)] 
vala: Allow markup-reader to accept spaces around '=' of attribute assignment

4 years agogio-2.0: Fix binding of Resolver.lookup_service*()
Rico Tzschichholz [Tue, 20 Oct 2020 11:38:05 +0000 (13:38 +0200)] 
gio-2.0: Fix binding of Resolver.lookup_service*()

4 years agocodegen: Don't use inferred type for temp-value to access generic property
Rico Tzschichholz [Sun, 18 Oct 2020 19:08:46 +0000 (21:08 +0200)] 
codegen: Don't use inferred type for temp-value to access generic property

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1088

4 years agolibvaladoc: Don't filter-out generic type-parameters of delegates
Rico Tzschichholz [Mon, 19 Oct 2020 11:51:58 +0000 (13:51 +0200)] 
libvaladoc: Don't filter-out generic type-parameters of delegates

4 years agodoc/vala-gen-introspect.1: fix a typo
Reuben Thomas [Thu, 15 Oct 2020 20:28:20 +0000 (21:28 +0100)] 
doc/vala-gen-introspect.1: fix a typo

4 years agoposix: Declare fstat, stat, lstat and fstatat as public
Rico Tzschichholz [Thu, 15 Oct 2020 07:12:28 +0000 (09:12 +0200)] 
posix: Declare fstat, stat, lstat and fstatat as public

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1086

4 years agorest-0.7: Fix ParamsIter.next() binding
Rico Tzschichholz [Mon, 12 Oct 2020 16:13:32 +0000 (18:13 +0200)] 
rest-0.7: Fix ParamsIter.next() binding

Thanks to Rasmus Thomsen

4 years agovala: Issue an error on void initializer for local-variable
Rico Tzschichholz [Tue, 29 Sep 2020 12:47:48 +0000 (14:47 +0200)] 
vala: Issue an error on void initializer for local-variable

4 years agoDon't use broken and unsupported cast expression as statement
Rico Tzschichholz [Tue, 29 Sep 2020 16:39:45 +0000 (18:39 +0200)] 
Don't use broken and unsupported cast expression as statement

4 years agoRelease 0.40.24 0.40.24
Rico Tzschichholz [Tue, 6 Oct 2020 07:10:36 +0000 (09:10 +0200)] 
Release 0.40.24

4 years agotests: Add "async constructor argument check" test to increase coverage
Rico Tzschichholz [Sun, 27 Sep 2020 08:38:41 +0000 (10:38 +0200)] 
tests: Add "async constructor argument check" test to increase coverage

4 years agolibvaladoc: Fix a couple of C compiler warnings
Rico Tzschichholz [Mon, 28 Sep 2020 10:44:12 +0000 (12:44 +0200)] 
libvaladoc: Fix a couple of C compiler warnings

4 years agog-i: Fix a couple of C compiler warnings
Rico Tzschichholz [Mon, 28 Sep 2020 10:44:12 +0000 (12:44 +0200)] 
g-i: Fix a couple of C compiler warnings

4 years agotestrunner: Filter external -0X flags to preserve current default -O0
Rico Tzschichholz [Sun, 27 Sep 2020 21:45:27 +0000 (23:45 +0200)] 
testrunner: Filter external -0X flags to preserve current default -O0

4 years agotestrunner: Pass --enable-checking to increase coverage
Rico Tzschichholz [Sun, 27 Sep 2020 12:30:39 +0000 (14:30 +0200)] 
testrunner: Pass --enable-checking to increase coverage

4 years agocodegen: Don't pass CCodeFunctionCall to NULL-aware free macro
Rico Tzschichholz [Sun, 27 Sep 2020 17:21:37 +0000 (19:21 +0200)] 
codegen: Don't pass CCodeFunctionCall to NULL-aware free macro

This resulted in invalid C code:
    error: lvalue required as left operand of assignment

4 years agowebkit2gtk-4.0: Update to 2.30.1
Rico Tzschichholz [Tue, 22 Sep 2020 13:56:15 +0000 (15:56 +0200)] 
webkit2gtk-4.0: Update to 2.30.1

4 years agoDon't use locale dependent string functions on syntax strings
Rico Tzschichholz [Wed, 2 Sep 2020 13:13:29 +0000 (15:13 +0200)] 
Don't use locale dependent string functions on syntax strings

Replace usage of string.down() with string.ascii_down(),
and string.up() with string.ascii_up()

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1067

4 years agolibvaladoc/gtkdoc-importer: Don't let parse_block_taglet() return null
Rico Tzschichholz [Thu, 27 Aug 2020 08:41:47 +0000 (10:41 +0200)] 
libvaladoc/gtkdoc-importer: Don't let parse_block_taglet() return null

This caused criticals like:

  valadoc_taglets_param_set_is_c_self_param: assertion 'self != NULL' failed

4 years agolibvaladoc/gtkdoc-importer: Correctly retrieve "url" from "ulink" elements
Rico Tzschichholz [Thu, 27 Aug 2020 08:02:19 +0000 (10:02 +0200)] 
libvaladoc/gtkdoc-importer: Correctly retrieve "url" from "ulink" elements

This caused criticals like:

  g_uri_parse_scheme: assertion 'uri != NULL' failed

4 years agolibvaladoc/girimporter: Fallback to "name" for callback
Rico Tzschichholz [Thu, 27 Aug 2020 08:02:19 +0000 (10:02 +0200)] 
libvaladoc/girimporter: Fallback to "name" for callback

This caused criticals like:

  valadoc_importer_gir_documentation_importer_attach_comment: assertion 'cname != NULL' failed

4 years agogirparser: Additionally fallback to "glib:type-name" to retrieve the cname
Rico Tzschichholz [Mon, 24 Aug 2020 15:36:05 +0000 (17:36 +0200)] 
girparser: Additionally fallback to "glib:type-name" to retrieve the cname

4 years agolibvaladoc/girimporter: Fallback to "glib:type-name" for class, interface and record
Rico Tzschichholz [Mon, 24 Aug 2020 15:03:43 +0000 (17:03 +0200)] 
libvaladoc/girimporter: Fallback to "glib:type-name" for class, interface and record

This caused criticals like:

  valadoc_importer_gir_documentation_importer_attach_comment: assertion 'cname != NULL' failed

4 years agolibvaladoc/girimporter: Improve parse_symbol_doc() and don't use parse_doc()
Rico Tzschichholz [Mon, 24 Aug 2020 11:14:09 +0000 (13:14 +0200)] 
libvaladoc/girimporter: Improve parse_symbol_doc() and don't use parse_doc()

4 years agolibvaladoc/girimporter: Skip "attribute" elements
Rico Tzschichholz [Sun, 23 Aug 2020 15:50:14 +0000 (17:50 +0200)] 
libvaladoc/girimporter: Skip "attribute" elements

This is the same patch as in commit 6ea19c61015d0dd6cacb581397c8fe37ace9df4a

4 years agomanual: Update from wiki.gnome.org
Rico Tzschichholz [Wed, 19 Aug 2020 06:35:52 +0000 (08:35 +0200)] 
manual: Update from wiki.gnome.org

4 years agocodegen: Always include base_struct declaration if available
Alistair Thomas [Tue, 27 Oct 2015 18:23:09 +0000 (18:23 +0000)] 
codegen: Always include base_struct declaration if available

This fixes inheritance of structs across source files while not using
a header file.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/464

4 years agocodegen: Don't append unreachable clean-up section of Block
Rico Tzschichholz [Mon, 17 Aug 2020 14:37:59 +0000 (16:37 +0200)] 
codegen: Don't append unreachable clean-up section of Block

Found by -Werror=unreachable-code

Improvements for https://gitlab.gnome.org/GNOME/vala/issues/838

Fixes https://gitlab.gnome.org/GNOME/vala/issues/169

4 years agoRevert "codegen: Don't append unreachable clean-up section of Block"
Rico Tzschichholz [Mon, 17 Aug 2020 14:33:44 +0000 (16:33 +0200)] 
Revert "codegen: Don't append unreachable clean-up section of Block"

This reverts commit 8f3a0a0b64e0c7fbcc9231c3058247920dd6eeda.

4 years agodoc: Update AUTHORS in manpages
Rico Tzschichholz [Sat, 15 Aug 2020 18:31:41 +0000 (20:31 +0200)] 
doc: Update AUTHORS in manpages

4 years agowebkit2gtk-4.0: Update to 2.29.91
Rico Tzschichholz [Sat, 15 Aug 2020 10:38:11 +0000 (12:38 +0200)] 
webkit2gtk-4.0: Update to 2.29.91

4 years agovala: Set parent_node for child nodes of lambda-expression
Rico Tzschichholz [Thu, 13 Aug 2020 21:00:44 +0000 (23:00 +0200)] 
vala: Set parent_node for child nodes of lambda-expression

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1062

4 years agotests: Add "pre-post-increment with side effect" tests to increase coverage
Rico Tzschichholz [Thu, 13 Aug 2020 17:05:49 +0000 (19:05 +0200)] 
tests: Add "pre-post-increment with side effect" tests to increase coverage

See https://gitlab.gnome.org/GNOME/vala/issues/1061

4 years agoForce usage of temporary variables for "tainted" member accesses
Rico Tzschichholz [Thu, 13 Aug 2020 17:05:49 +0000 (19:05 +0200)] 
Force usage of temporary variables for "tainted" member accesses

This is required to handle the side effect of postfix- and unary-
increment/decrement expressions.

Regression of 32ffc862417be39d42a1b8eeb3d0748b3e138aff
and b9035aaf17a9a97a070812a8ee83251fd3893b1e

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1061

4 years agovala: Move transformation of unary increment/decrement to codegen
Rico Tzschichholz [Thu, 13 Aug 2020 17:05:49 +0000 (19:05 +0200)] 
vala: Move transformation of unary increment/decrement to codegen

In preparation for https://gitlab.gnome.org/GNOME/vala/issues/1061

4 years agoAdd TraverseVisitor for traversing the tree with a callback
Rico Tzschichholz [Fri, 26 Oct 2018 12:08:59 +0000 (14:08 +0200)] 
Add TraverseVisitor for traversing the tree with a callback

This will allow cleaning up virtual methods of code nodes
and more stateful to stateless code conversion.

4 years agotests: Don't rely on undefined use-after-free behaviour of glibc
Rico Tzschichholz [Tue, 11 Aug 2020 08:03:14 +0000 (10:03 +0200)] 
tests: Don't rely on undefined use-after-free behaviour of glibc

Makes this check work with musl >= 1.2.1

https://bugzilla.gnome.org/show_bug.cgi?id=736774

4 years agotests: Add "nested namespace" girwriter test to increase coverage
Rico Tzschichholz [Mon, 10 Aug 2020 11:18:08 +0000 (13:18 +0200)] 
tests: Add "nested namespace" girwriter test to increase coverage

See https://gitlab.gnome.org/GNOME/vala/issues/1059

4 years agotests: Add "constant and union" gir test to increase coverage
Rico Tzschichholz [Mon, 10 Aug 2020 09:56:47 +0000 (11:56 +0200)] 
tests: Add "constant and union" gir test to increase coverage

4 years agotests: Add "property accessor with try statement" test to increase coverage
Rico Tzschichholz [Mon, 10 Aug 2020 09:56:47 +0000 (11:56 +0200)] 
tests: Add "property accessor with try statement" test to increase coverage

4 years agotests: Add more "invalid" tests to increase coverage
Rico Tzschichholz [Mon, 10 Aug 2020 09:56:47 +0000 (11:56 +0200)] 
tests: Add more "invalid" tests to increase coverage

4 years agoRevert "girwriter: Use appropriate get_ccode_* functions"
Rico Tzschichholz [Mon, 10 Aug 2020 11:43:49 +0000 (13:43 +0200)] 
Revert "girwriter: Use appropriate get_ccode_* functions"

This reverts commit 7b0498d4f4fcaa3bd9e04d65560324847136f0ac.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1059

4 years agotests: Add "signal error marshalling" test to increase coverage
Rico Tzschichholz [Mon, 20 Jul 2020 08:37:53 +0000 (10:37 +0200)] 
tests: Add "signal error marshalling" test to increase coverage

4 years agoposix: Declare WRDE_APPEND constant as public
Jeremy Philippe [Sun, 9 Aug 2020 12:10:37 +0000 (14:10 +0200)] 
posix: Declare WRDE_APPEND constant as public

4 years agotests: Add "return in construct/destructor" tests to increase coverage
Rico Tzschichholz [Thu, 6 Aug 2020 20:03:43 +0000 (22:03 +0200)] 
tests: Add "return in construct/destructor" tests to increase coverage

4 years agotests: Add "enum typed property" tests to increase coverage
Rico Tzschichholz [Thu, 6 Aug 2020 20:29:35 +0000 (22:29 +0200)] 
tests: Add "enum typed property" tests to increase coverage

4 years agovala: Mark tranformed member-access as qualified
Rico Tzschichholz [Wed, 5 Aug 2020 15:45:39 +0000 (17:45 +0200)] 
vala: Mark tranformed member-access as qualified

Regression of 866258f688d781f3536892b8f93abdd3112198ec

See https://gitlab.gnome.org/GNOME/vala/issues/57

4 years agogio-2.0: Include "gio/gsettingsbackend.h" for GLib.SettingsBackend members
Rico Tzschichholz [Wed, 5 Aug 2020 06:21:14 +0000 (08:21 +0200)] 
gio-2.0: Include "gio/gsettingsbackend.h" for GLib.SettingsBackend members

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1054

4 years agogirparser: Add support for string "feature_test_macro" metadata
Rico Tzschichholz [Wed, 5 Aug 2020 06:21:14 +0000 (08:21 +0200)] 
girparser: Add support for string "feature_test_macro" metadata

4 years agocodegen: Include header for base-symbols when connecting vfuncs
Rico Tzschichholz [Wed, 5 Aug 2020 05:27:53 +0000 (07:27 +0200)] 
codegen: Include header for base-symbols when connecting vfuncs

This eases the handling of types which are split over different headers.

5 years agogio-unix-2.0: Fix "g_unix_mount_for" binding
Rico Tzschichholz [Sun, 2 Aug 2020 10:35:42 +0000 (12:35 +0200)] 
gio-unix-2.0: Fix "g_unix_mount_for" binding

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1052

5 years agotests: Add "girwriter" tests to increase coverage
Rico Tzschichholz [Wed, 29 Jul 2020 13:14:07 +0000 (15:14 +0200)] 
tests: Add "girwriter" tests to increase coverage

Backported from 0.46 branch

Fixes https://gitlab.gnome.org/GNOME/vala/issues/158

5 years agowebkit2gtk-4.0: Update to 2.29.4
Rico Tzschichholz [Wed, 29 Jul 2020 10:31:40 +0000 (12:31 +0200)] 
webkit2gtk-4.0: Update to 2.29.4

5 years agogirwriter: Use appropriate get_ccode_* functions
Rico Tzschichholz [Tue, 28 Jul 2020 11:53:29 +0000 (13:53 +0200)] 
girwriter: Use appropriate get_ccode_* functions

This will pick up possible CCode.*name attributes

5 years agogirwriter: Don't include symbols outside of a namespace
Rico Tzschichholz [Mon, 27 Jul 2020 16:10:38 +0000 (18:10 +0200)] 
girwriter: Don't include symbols outside of a namespace

Additionally report a warning for symbols which doesn't fulfill this rule.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/241

5 years agocodegen: Properly destroy elements of an inline struct array
Rico Tzschichholz [Mon, 27 Jul 2020 11:36:56 +0000 (13:36 +0200)] 
codegen: Properly destroy elements of an inline struct array

Fixes https://gitlab.gnome.org/GNOME/vala/issues/365

5 years agogtk+-3.0: Update to 3.24.21+ffe2df7b
Rico Tzschichholz [Sat, 25 Jul 2020 13:05:24 +0000 (15:05 +0200)] 
gtk+-3.0: Update to 3.24.21+ffe2df7b

5 years agogirparser: Skip 'docsection' elements in <namespace>
Rico Tzschichholz [Thu, 23 Jul 2020 06:24:15 +0000 (08:24 +0200)] 
girparser: Skip 'docsection' elements in <namespace>

See https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/226

5 years agovala: Check error-type accessibility of creation methods and delegates
Rico Tzschichholz [Wed, 22 Jul 2020 13:04:04 +0000 (15:04 +0200)] 
vala: Check error-type accessibility of creation methods and delegates

5 years agocodegen: Check param for null before using it
Rico Tzschichholz [Wed, 22 Jul 2020 08:16:39 +0000 (10:16 +0200)] 
codegen: Check param for null before using it

Regression of 5490b0b21a4089d803d51c91311430d60d266f7b

This caused criticals like:

  vala_get_ccode_array_length: assertion 'node != NULL' failed

See https://gitlab.gnome.org/GNOME/vala/issues/929

5 years agovala: Allow prototype access to signal with emitter
Rico Tzschichholz [Mon, 20 Jul 2020 18:11:13 +0000 (20:11 +0200)] 
vala: Allow prototype access to signal with emitter

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1040

5 years agotests: Add "access vfunc pointer" test to increase coverage
Rico Tzschichholz [Mon, 20 Jul 2020 18:11:13 +0000 (20:11 +0200)] 
tests: Add "access vfunc pointer" test to increase coverage

5 years agogirwriter: Write c:symbol-prefix on supported elements
Jean Pierre Dudey [Sun, 19 Jul 2020 21:48:12 +0000 (16:48 -0500)] 
girwriter: Write c:symbol-prefix on supported elements

This specifies the symbol prefix, e.g.: window in gtk_window_new

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1038

5 years agogirwriter: Write c:type="void" when name="none"
Jean Pierre Dudey [Sun, 19 Jul 2020 23:34:36 +0000 (18:34 -0500)] 
girwriter: Write c:type="void" when name="none"

This is to match g-ir-scanner behaviour of using the c:type to
identify void return value.