]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
20 months agotests: Remove errornous "caller-allocates" attribute in gir test
Rico Tzschichholz [Tue, 28 Nov 2023 10:03:51 +0000 (11:03 +0100)] 
tests: Remove errornous "caller-allocates" attribute in gir test

20 months agotests: Extend girwriter test with array length-type usage to increase coverage
Rico Tzschichholz [Mon, 27 Nov 2023 21:39:07 +0000 (22:39 +0100)] 
tests: Extend girwriter test with array length-type usage to increase coverage

20 months agotests: Add invalid "array length type" test to increase coverage
Rico Tzschichholz [Mon, 27 Nov 2023 21:23:04 +0000 (22:23 +0100)] 
tests: Add invalid "array length type" test to increase coverage

20 months agovapi: Regenerate for GIR-based bindings to pick up utf8 fix (string vs char)
Rico Tzschichholz [Sun, 26 Nov 2023 12:44:25 +0000 (13:44 +0100)] 
vapi: Regenerate for GIR-based bindings to pick up utf8 fix (string vs char)

20 months agogirparser: Don't blindly translate utf8 to string and check the ctype too
Rico Tzschichholz [Sun, 26 Nov 2023 12:23:18 +0000 (13:23 +0100)] 
girparser: Don't blindly translate utf8 to string and check the ctype too

This fixes array out-parameters with ctype "char**" and array return values
with ctype "char*".

20 months agogtk4: Fix GLib.Value parameter in Expression.evaluate()
Samuel Dionne-Riel [Sat, 25 Nov 2023 05:57:54 +0000 (00:57 -0500)] 
gtk4: Fix GLib.Value parameter in Expression.evaluate()

Signed-off-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
20 months agoflatpak: build with builddir=false
Lorenz Wildberg [Wed, 25 Oct 2023 13:58:31 +0000 (15:58 +0200)] 
flatpak: build with builddir=false

Vala needs to be built in the same directory as the sources are.
builddir=false forces that.

20 months agoflatpak: Add sphinx
Lorenz Wildberg [Tue, 24 Oct 2023 13:44:26 +0000 (15:44 +0200)] 
flatpak: Add sphinx

This enables building the reference manual without the need to install
anything in your host operating system.

20 months agoSync NEWS from 0.56
Rico Tzschichholz [Mon, 13 Nov 2023 09:39:35 +0000 (10:39 +0100)] 
Sync NEWS from 0.56

21 months agomanual: Use more official link for vala tutorials
Lorenz Wildberg [Fri, 27 Oct 2023 20:21:55 +0000 (22:21 +0200)] 
manual: Use more official link for vala tutorials

21 months agogstreamer-1.0: Make ElementFactory.make()'s name parameter default to null
Mazhar Hussain [Sun, 22 Oct 2023 12:45:04 +0000 (17:45 +0500)] 
gstreamer-1.0: Make ElementFactory.make()'s name parameter default to null

21 months agocodegen: Generate compatible wrapper of ref-void functions
Rico Tzschichholz [Wed, 18 Oct 2023 18:27:36 +0000 (20:27 +0200)] 
codegen: Generate compatible wrapper of ref-void functions

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

21 months agovala: Prevent usage of strlen() on non-null-terminated string
Rico Tzschichholz [Wed, 18 Oct 2023 11:06:05 +0000 (13:06 +0200)] 
vala: Prevent usage of strlen() on non-null-terminated string

next_pos is not guaranteed to hold a null-terminated string.
Therefore g_str_has_prefix() can fail in strlen() and crash.

Based on patch by Daniel Kolesa

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

21 months agodoc: Install manual to versioned target directory
Rico Tzschichholz [Sun, 15 Oct 2023 17:41:13 +0000 (19:41 +0200)] 
doc: Install manual to versioned target directory

21 months agogtk4-wayland: Add the missing wayland-client bindings
Corentin Noël [Thu, 12 Oct 2023 20:13:19 +0000 (22:13 +0200)] 
gtk4-wayland: Add the missing wayland-client bindings

Bind the native Wayland types and unskip the methods.

21 months agowayland-client: Complete the binding
Corentin Noël [Thu, 12 Oct 2023 18:39:19 +0000 (20:39 +0200)] 
wayland-client: Complete the binding

Increase the coverage of the binding.

21 months agodoc/manual: Port reference manual to sphinx format
Lorenz Wildberg [Thu, 15 Sep 2022 19:42:05 +0000 (21:42 +0200)] 
doc/manual: Port reference manual to sphinx format

21 months agodoc: Fix typo in release notes
zhangdiandian [Sun, 8 Oct 2023 17:35:29 +0000 (17:35 +0000)] 
doc: Fix typo in release notes

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

22 months agoglib-2.0: Add new symbols from 2.78
Lorenz Wildberg [Sun, 24 Sep 2023 17:30:13 +0000 (19:30 +0200)] 
glib-2.0: Add new symbols from 2.78

22 months agogitignore: Add vapi/test.vala
Lorenz Wildberg [Fri, 15 Sep 2023 11:45:57 +0000 (13:45 +0200)] 
gitignore: Add vapi/test.vala

22 months agoflatpak: Add permission for session bus
Lorenz Wildberg [Sat, 9 Sep 2023 17:28:33 +0000 (19:28 +0200)] 
flatpak: Add permission for session bus

Fixes methods/bug642885.vala test

22 months agoflatpak: Enable debug build
Lorenz Wildberg [Sat, 9 Sep 2023 17:28:11 +0000 (19:28 +0200)] 
flatpak: Enable debug build

22 months agoflatpak: Update graphviz to 8.1.0
Lorenz Wildberg [Sat, 9 Sep 2023 17:27:46 +0000 (19:27 +0200)] 
flatpak: Update graphviz to 8.1.0

22 months agoflatpak: build the runtime extension against 23.08
Jordan Petridis [Thu, 7 Sep 2023 10:16:50 +0000 (10:16 +0000)] 
flatpak: build the runtime extension against 23.08

23 months agoSync NEWS from 0.56
Rico Tzschichholz [Sat, 2 Sep 2023 13:39:42 +0000 (15:39 +0200)] 
Sync NEWS from 0.56

23 months agogtk4: Restore CssProvider.load_from_data() signature to take an array
Rico Tzschichholz [Fri, 25 Aug 2023 12:24:10 +0000 (14:24 +0200)] 
gtk4: Restore CssProvider.load_from_data() signature to take an array

Essentially reverts 6aaecb3bb11c044f825887148faee5f765fddca0

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

23 months agoSync NEWS from 0.56
Rico Tzschichholz [Sat, 19 Aug 2023 17:31:35 +0000 (19:31 +0200)] 
Sync NEWS from 0.56

23 months agogtk4: Preserve compatibility with <= 4.8.x
Rico Tzschichholz [Sat, 19 Aug 2023 10:35:41 +0000 (12:35 +0200)] 
gtk4: Preserve compatibility with <= 4.8.x

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

23 months agovala: Only transform default initializers of parameters
Rico Tzschichholz [Wed, 16 Aug 2023 07:51:28 +0000 (09:51 +0200)] 
vala: Only transform default initializers of parameters

Explicitly passed sizeof/typeof arguments are resolved properly

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

23 months agowebkit*-*: Update to 2.41.90
Rico Tzschichholz [Fri, 11 Aug 2023 20:43:15 +0000 (22:43 +0200)] 
webkit*-*: Update to 2.41.90

23 months agovapi: Update GIR-based bindings
Rico Tzschichholz [Fri, 11 Aug 2023 20:30:33 +0000 (22:30 +0200)] 
vapi: Update GIR-based bindings

23 months agovapi: Regenerate GIR-based bindings
Rico Tzschichholz [Fri, 11 Aug 2023 12:32:34 +0000 (14:32 +0200)] 
vapi: Regenerate GIR-based bindings

23 months agogirparser: Support glib:ref-func, glib:unref-func, copy-function and free-function
Lorenz Wildberg [Tue, 6 Jun 2023 09:00:51 +0000 (11:00 +0200)] 
girparser: Support glib:ref-func, glib:unref-func, copy-function and free-function

23 months agogtk4: Update to 4.12.0
Rico Tzschichholz [Thu, 10 Aug 2023 18:21:55 +0000 (20:21 +0200)] 
gtk4: Update to 4.12.0

23 months agovala: Infer generic type from typeof() initializer of parameters
Rico Tzschichholz [Mon, 7 Aug 2023 21:08:35 +0000 (23:08 +0200)] 
vala: Infer generic type from typeof() initializer of parameters

Additionally improve inference from sizeof() initializers

2 years agogenie: Allow attribute and declaration on the same line
Mazhar Hussain [Sat, 24 Dec 2022 11:25:24 +0000 (16:25 +0500)] 
genie: Allow attribute and declaration on the same line

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

2 years agocodegen: Don't emit casts in static field initializers
hrxi [Wed, 2 Aug 2023 11:14:37 +0000 (13:14 +0200)] 
codegen: Don't emit casts in static field initializers

Found by -std=c99 -pedantic-errors

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

2 years agolinux: Add resolution field to Input.AbsInfo
Val Och [Wed, 2 Aug 2023 20:06:01 +0000 (20:06 +0000)] 
linux: Add resolution field to Input.AbsInfo

2 years agoparser: Reset tokens buffer when parsing a new source file
Rico Tzschichholz [Tue, 1 Aug 2023 20:11:43 +0000 (22:11 +0200)] 
parser: Reset tokens buffer when parsing a new source file

Old token buffer entries will result in faulty source references.

2 years agovala: Correctly handle possible null from SourceFile.get_source_line()
Rico Tzschichholz [Tue, 1 Aug 2023 09:59:52 +0000 (11:59 +0200)] 
vala: Correctly handle possible null from SourceFile.get_source_line()

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

2 years agoglib-2.0: Update return-type of HashTable.add/insert/replace() and GenericSet.add()
Rico Tzschichholz [Mon, 31 Jul 2023 17:27:50 +0000 (19:27 +0200)] 
glib-2.0: Update return-type of HashTable.add/insert/replace() and GenericSet.add()

These return bool since 2.40

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

2 years agovala: Allow "set" method of an container to return void or bool
Rico Tzschichholz [Mon, 31 Jul 2023 17:27:50 +0000 (19:27 +0200)] 
vala: Allow "set" method of an container to return void or bool

2 years agovala: Output additional information when accessing unknown member
Rico Tzschichholz [Mon, 31 Jul 2023 17:27:50 +0000 (19:27 +0200)] 
vala: Output additional information when accessing unknown member

Return location of the variable declaration which will usually
show its type.

2 years agolibpq: Fix a few binding errors
Rico Tzschichholz [Tue, 11 Jul 2023 10:03:23 +0000 (12:03 +0200)] 
libpq: Fix a few binding errors

2 years agovala: Improve check for compatibility of method and delegate with generics
Rico Tzschichholz [Mon, 10 Jul 2023 20:13:29 +0000 (22:13 +0200)] 
vala: Improve check for compatibility of method and delegate with generics

2 years agoglib-2.0: Fix nullability in DirUtils mkdtemp and make_tmp
Corentin Noël [Thu, 6 Jul 2023 13:32:25 +0000 (15:32 +0200)] 
glib-2.0: Fix nullability in DirUtils mkdtemp and make_tmp

make_tmp uses a default template when used with NULL and mkdtemp can return
NULL with errno set.

2 years agoSync NEWS from 0.56
Rico Tzschichholz [Sun, 2 Jul 2023 18:37:28 +0000 (20:37 +0200)] 
Sync NEWS from 0.56

2 years agoflatpak: Don't cleanup vapigen pkgconfig file
Lorenz Wildberg [Wed, 28 Jun 2023 16:39:48 +0000 (18:39 +0200)] 
flatpak: Don't cleanup vapigen pkgconfig file

2 years agocodegen: Improve handling of sealed classes
Rico Tzschichholz [Wed, 28 Jun 2023 14:44:47 +0000 (16:44 +0200)] 
codegen: Improve handling of sealed classes

Avoid redundant declarations and make *_get_type() show up in public header

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

2 years agotestrunner: Add support to check generated header
Rico Tzschichholz [Wed, 28 Jun 2023 14:44:47 +0000 (16:44 +0200)] 
testrunner: Add support to check generated header

2 years agoflatpak: Don't clean /share/aclocal
Michael Catanzaro [Tue, 27 Jun 2023 19:05:45 +0000 (14:05 -0500)] 
flatpak: Don't clean /share/aclocal

Without the autoconf macros, we have no chance of building autotools
projects that depend on vala. Missing macros results in exceptionally
confusing error messages. For example, this error when building libgee:

./configure: line 13551: syntax error near unexpected token `fi'
./configure: line 13551: `fi'

This is going to affect almost all Vala applications, except for the few
that do not use libgee, because it's no longer provided by the runtime
and it uses Autotools.

https://github.com/flathub/org.freedesktop.Sdk.Extension.vala/pull/91

2 years agovapi: Add documentation to GLib.Math that '-X -lm' may be needed when compiling
Alistair Thomas [Tue, 20 Dec 2022 19:38:17 +0000 (19:38 +0000)] 
vapi: Add documentation to GLib.Math that '-X -lm' may be needed when compiling

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

2 years agovapi: Update GIR-based bindings
Rico Tzschichholz [Thu, 22 Jun 2023 17:56:36 +0000 (19:56 +0200)] 
vapi: Update GIR-based bindings

2 years agogstreamer: Update from 1.23.0+ git main
Rico Tzschichholz [Thu, 22 Jun 2023 17:55:46 +0000 (19:55 +0200)] 
gstreamer: Update from 1.23.0+ git main

2 years agogtk4: Update to 4.11.4~88f8b77d
Rico Tzschichholz [Thu, 22 Jun 2023 14:47:17 +0000 (16:47 +0200)] 
gtk4: Update to 4.11.4~88f8b77d

2 years agogtk4: Pick up fix for Gdk.Toplevel.compute_size.size parameter
Rico Tzschichholz [Wed, 21 Jun 2023 13:52:05 +0000 (15:52 +0200)] 
gtk4: Pick up fix for Gdk.Toplevel.compute_size.size parameter

2 years agocodegen: Add missing EXTERN flag for GType function of error domains
Rico Tzschichholz [Wed, 21 Jun 2023 09:06:16 +0000 (11:06 +0200)] 
codegen: Add missing EXTERN flag for GType function of error domains

In addition to da4ff03c5ca427cf7cc4574f52f5190dc1b0dfb9

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

2 years agoflatpak: Build the extension for both 22.08 and 23.08 versions
Jordan Petridis [Sat, 17 Jun 2023 01:49:55 +0000 (04:49 +0300)] 
flatpak: Build the extension for both 22.08 and 23.08 versions

2 years agoglib-2.0: Add ConvertError.{NO_MEMORY,EMBEDDED_NUL}
Tomoaki Kawada [Tue, 20 Jun 2023 10:08:48 +0000 (19:08 +0900)] 
glib-2.0: Add ConvertError.{NO_MEMORY,EMBEDDED_NUL}

They are available since 2.40 and 2.56 respectively.

2 years agovapi: Regenerate GIR-based bindings
Rico Tzschichholz [Tue, 20 Jun 2023 09:00:45 +0000 (11:00 +0200)] 
vapi: Regenerate GIR-based bindings

2 years agovala: Fix spaces for attributes when writing property accessors
Rico Tzschichholz [Sat, 25 Feb 2023 12:08:33 +0000 (13:08 +0100)] 
vala: Fix spaces for attributes when writing property accessors

2 years agogio-2.0: Ease implemention of GLib.ActionGroup
Rico Tzschichholz [Tue, 20 Jun 2023 07:18:06 +0000 (09:18 +0200)] 
gio-2.0: Ease implemention of GLib.ActionGroup

*.get_action_*/has_action vfuncs are not required to be implemented

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

2 years agovala: Report an error when trying to chain up to inaccessible private ctor
Rico Tzschichholz [Mon, 19 Jun 2023 08:49:43 +0000 (10:49 +0200)] 
vala: Report an error when trying to chain up to inaccessible private ctor

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

2 years agogirwriter: Fix c:type attribute for real struct parameters
Rico Tzschichholz [Mon, 19 Jun 2023 08:05:04 +0000 (10:05 +0200)] 
girwriter: Fix c:type attribute for real struct parameters

Non-simple structs are always by reference

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

2 years agoglib-2.0: Fix return-type of GLib.SourceOnceFunc
Rico Tzschichholz [Sun, 18 Jun 2023 06:44:37 +0000 (08:44 +0200)] 
glib-2.0: Fix return-type of GLib.SourceOnceFunc

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

2 years agovala: Add CodeNode.has_attribute() helper and use it accordingly
Rico Tzschichholz [Mon, 12 Jun 2023 13:13:15 +0000 (15:13 +0200)] 
vala: Add CodeNode.has_attribute() helper and use it accordingly

2 years agovala: Add MarkupReader.has_attribute() helper and use it accordingly
Rico Tzschichholz [Mon, 12 Jun 2023 13:13:15 +0000 (15:13 +0200)] 
vala: Add MarkupReader.has_attribute() helper and use it accordingly

2 years agomanual: Update from wiki.gnome.org
Rico Tzschichholz [Tue, 30 May 2023 09:08:22 +0000 (11:08 +0200)] 
manual: Update from wiki.gnome.org

2 years agoci: Specify the branch to export for the flatpak template
Jordan Petridis [Thu, 8 Jun 2023 16:54:18 +0000 (19:54 +0300)] 
ci: Specify the branch to export for the flatpak template

Followup to 0da094d5e

2 years agoflatpak: Change the branch of the sdk-extension to match the runtime version
Jordan Petridis [Tue, 6 Jun 2023 17:20:57 +0000 (20:20 +0300)] 
flatpak: Change the branch of the sdk-extension to match the runtime version

2 years agoci: Only run the Flatpak jobs if there's REPO_TOKEN set in the repo
Jordan Petridis [Tue, 6 Jun 2023 12:45:24 +0000 (15:45 +0300)] 
ci: Only run the Flatpak jobs if there's REPO_TOKEN set in the repo

REPO_TOKEN is the authentication token to publish to the Nightly
flatpak repository.

And overwrite the publish_nightly rules again, since we need
to append them to only run on schedules.

2 years agoci: Tweak the rules for the flatpak builds
Lorenz Wildberg [Tue, 30 May 2023 16:12:30 +0000 (16:12 +0000)] 
ci: Tweak the rules for the flatpak builds

Make it possible to trigger manually if needed through the Web
UI and also drop the namespace and branch guard as there is only
one schedule and has to be set up explicitly anyway.

2 years agoflatpak: Add CI for the manifests
Jordan Petridis [Fri, 21 Apr 2023 01:17:30 +0000 (04:17 +0300)] 
flatpak: Add CI for the manifests

2 years agoflatpak: Add manifests
Lorenz Wildberg [Mon, 10 Apr 2023 19:56:32 +0000 (21:56 +0200)] 
flatpak: Add manifests

org.freedesktop.Sdk.Extension.vala-nightly builds the Vala Sdk extension
and dev.vala.valac is for quickly providing a development environment.

2 years agoSync NEWS from 0.56
Rico Tzschichholz [Thu, 25 May 2023 11:21:28 +0000 (13:21 +0200)] 
Sync NEWS from 0.56

2 years agotests: Add more method tests to increase coverage
Rico Tzschichholz [Wed, 17 May 2023 20:40:53 +0000 (22:40 +0200)] 
tests: Add more method tests to increase coverage

2 years agogtk4: Don't skip AlertDialog ctor
Val Och [Wed, 17 May 2023 15:14:19 +0000 (15:14 +0000)] 
gtk4: Don't skip AlertDialog ctor

2 years agoglib-2.0: Fix binding of g_variant_type_n_items()
JCWasmx86 [Sun, 5 Jun 2022 15:30:29 +0000 (17:30 +0200)] 
glib-2.0: Fix binding of g_variant_type_n_items()

2 years agoDOAP: Replace defunct mailing-list with developer-forum (GNOME Discourse)
Andre Klapper [Fri, 28 Apr 2023 02:33:08 +0000 (04:33 +0200)] 
DOAP: Replace defunct mailing-list with developer-forum (GNOME Discourse)

2 years agocodegen: Include "glib-object.h" when using GType/GBoxedCopyFunc
Rico Tzschichholz [Sat, 22 Apr 2023 08:49:14 +0000 (10:49 +0200)] 
codegen: Include "glib-object.h" when using GType/GBoxedCopyFunc

2 years agogirwriter: Write filename, line, and column attributes for doc elements
Lleyton Gray [Fri, 24 Mar 2023 01:16:47 +0000 (18:16 -0700)] 
girwriter: Write filename, line, and column attributes for doc elements

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

2 years agovaladoc/tests: Add girwriter test
Rico Tzschichholz [Sun, 9 Apr 2023 11:29:26 +0000 (13:29 +0200)] 
valadoc/tests: Add girwriter test

2 years agovaladoc: Backing method of lambda-expression isn't included in valadoc AST
Rico Tzschichholz [Fri, 14 Apr 2023 13:13:54 +0000 (15:13 +0200)] 
valadoc: Backing method of lambda-expression isn't included in valadoc AST

2 years agobuild: valadoc requires valac 0.18.1
Rico Tzschichholz [Wed, 19 Apr 2023 11:16:30 +0000 (13:16 +0200)] 
build: valadoc requires valac 0.18.1

2 years agobuild: Improve usage of AC_PATH_PROG() for valacs
Rico Tzschichholz [Wed, 19 Apr 2023 11:16:30 +0000 (13:16 +0200)] 
build: Improve usage of AC_PATH_PROG() for valacs

2 years agoRegenerate manpages
Rico Tzschichholz [Tue, 18 Apr 2023 08:52:18 +0000 (10:52 +0200)] 
Regenerate manpages

2 years agoSync NEWS from 0.56
Rico Tzschichholz [Tue, 18 Apr 2023 08:48:07 +0000 (10:48 +0200)] 
Sync NEWS from 0.56

2 years agoUpdate another glib version reference to reflect bump to 2.56
Rico Tzschichholz [Mon, 17 Apr 2023 19:17:20 +0000 (21:17 +0200)] 
Update another glib version reference to reflect bump to 2.56

See 97d6ffb154ce0afab2bafb81b824ff7faadb66fa

2 years agoglib-2.0: g_chdir is declared in <glib/gstdio.h>
Florian Weimer [Mon, 17 Apr 2023 20:04:18 +0000 (22:04 +0200)] 
glib-2.0: g_chdir is declared in <glib/gstdio.h>

Not <glib.h>.  Fixes an implicit function error when building deja-dup.

2 years agogee: Fix type-arguments in cast
Rico Tzschichholz [Mon, 17 Apr 2023 13:56:12 +0000 (15:56 +0200)] 
gee: Fix type-arguments in cast

2 years agogee: Fix reversed type-arguments
Rico Tzschichholz [Mon, 17 Apr 2023 13:40:02 +0000 (15:40 +0200)] 
gee: Fix reversed type-arguments

2 years agovapi: Regenerate for GIR-based bindings to pick up sealed declaration modifier
Rico Tzschichholz [Sun, 16 Apr 2023 12:24:25 +0000 (14:24 +0200)] 
vapi: Regenerate for GIR-based bindings to pick up sealed declaration modifier

2 years agogirparser: Classes are considered sealed when there were no fields found
Rico Tzschichholz [Sun, 16 Apr 2023 12:24:25 +0000 (14:24 +0200)] 
girparser: Classes are considered sealed when there were no fields found

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

2 years agotests: Add missing instance fields to GIR test files
Rico Tzschichholz [Sun, 16 Apr 2023 12:24:25 +0000 (14:24 +0200)] 
tests: Add missing instance fields to GIR test files

2 years agovapi: Regenerate bindings for GenericType change
Rico Tzschichholz [Thu, 13 Apr 2023 18:36:08 +0000 (20:36 +0200)] 
vapi: Regenerate bindings for GenericType change

2 years agovala: Don't make GenericType nullable by default
Rico Tzschichholz [Thu, 13 Apr 2023 18:36:08 +0000 (20:36 +0200)] 
vala: Don't make GenericType nullable by default

Allow equality between nullable and non-nullable generic-types for now

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

2 years agocodegen: Fix usage of lambda-expression from delegate initializer
Rico Tzschichholz [Thu, 13 Apr 2023 08:46:45 +0000 (10:46 +0200)] 
codegen: Fix usage of lambda-expression from delegate initializer

Unset delegate-type if a lambda-expression handler was found to use
the correct code paths.

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

2 years agocodegen: Return CCodeInvalidExpression instead of null
Rico Tzschichholz [Thu, 13 Apr 2023 06:25:02 +0000 (08:25 +0200)] 
codegen: Return CCodeInvalidExpression instead of null

This fixes the following criticals:

  vala_ccode_cast_expression_construct: assertion 'expr != NULL' failed
  vala_ccode_function_call_add_argument: assertion 'expr != NULL' failed

Remove dead code, this is already handled in get_dup_func_expression()

2 years agovala: Improve check of type_referene in ObjectCreationExpression
Lorenz Wildberg [Tue, 11 Apr 2023 20:02:51 +0000 (22:02 +0200)] 
vala: Improve check of type_referene in ObjectCreationExpression

2 years agovala: Check type-arguments in more declarations
Rico Tzschichholz [Sat, 8 Apr 2023 17:30:33 +0000 (19:30 +0200)] 
vala: Check type-arguments in more declarations