]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
20 months agoRelease 0.56.14 0.56.14
Rico Tzschichholz [Mon, 13 Nov 2023 07:16:18 +0000 (08:16 +0100)] 
Release 0.56.14

20 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

20 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 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: 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

21 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

23 months agoRelease 0.56.13 0.56.13
Rico Tzschichholz [Tue, 29 Aug 2023 18:52:16 +0000 (20:52 +0200)] 
Release 0.56.13

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

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

23 months agoRelease 0.56.12 0.56.12
Rico Tzschichholz [Sat, 19 Aug 2023 11:32:48 +0000 (13:32 +0200)] 
Release 0.56.12

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 agoRelease 0.56.11 0.56.11
Rico Tzschichholz [Sun, 13 Aug 2023 10:25:39 +0000 (12:25 +0200)] 
Release 0.56.11

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

2 years 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

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 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 agogtk4: Update to 4.12.0
Rico Tzschichholz [Fri, 11 Aug 2023 07:15:04 +0000 (09:15 +0200)] 
gtk4: Update to 4.12.0

2 years 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 agoRelease 0.56.10 0.56.10
Rico Tzschichholz [Sat, 5 Aug 2023 10:31:45 +0000 (12:31 +0200)] 
Release 0.56.10

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 agoRelease 0.56.9 0.56.9
Rico Tzschichholz [Sun, 2 Jul 2023 08:15:56 +0000 (10:15 +0200)] 
Release 0.56.9

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 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 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 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 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 agoRelease 0.56.8 0.56.8
Rico Tzschichholz [Thu, 25 May 2023 07:14:00 +0000 (09:14 +0200)] 
Release 0.56.8

2 years agotests: Update c-expected
Rico Tzschichholz [Wed, 24 May 2023 07:53:54 +0000 (09:53 +0200)] 
tests: Update c-expected

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 agotests: Add more Werror=... flags for clang
Rico Tzschichholz [Sun, 5 Feb 2023 18:33:15 +0000 (19:33 +0100)] 
tests: Add more Werror=... flags for clang

2 years agogio-2.0: Add new symbols from 2.76
Rico Tzschichholz [Thu, 6 Apr 2023 16:22:38 +0000 (18:22 +0200)] 
gio-2.0: Add new symbols from 2.76

2 years agoglib-2.0: Add new symbols from 2.76
Rico Tzschichholz [Thu, 6 Apr 2023 10:01:00 +0000 (12:01 +0200)] 
glib-2.0: Add new symbols from 2.76

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 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 agoRelease 0.56.7 0.56.7
Rico Tzschichholz [Tue, 18 Apr 2023 08:34:32 +0000 (10:34 +0200)] 
Release 0.56.7

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 agovala: Allow inheritance from sealed class in bindings
Rico Tzschichholz [Mon, 17 Apr 2023 10:28:15 +0000 (12:28 +0200)] 
vala: Allow inheritance from sealed class in bindings

Cherry-picked from 46b5b957df1eca5379774348a13f0a6847cdf7da

See 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 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: Don't report consequential error when base_method is incompatible already
Rico Tzschichholz [Tue, 11 Apr 2023 10:21:14 +0000 (12:21 +0200)] 
vala: Don't report consequential error when base_method is incompatible already

2 years agovaladoc: Add missing generic type arguments
Rico Tzschichholz [Mon, 10 Apr 2023 21:42:16 +0000 (23:42 +0200)] 
valadoc: Add missing generic type arguments

2 years agogee: Add more missing generic type arguments
Rico Tzschichholz [Sat, 8 Apr 2023 20:43:41 +0000 (22:43 +0200)] 
gee: Add more missing generic type arguments

2 years agogee: Fix return-type of HashMap.MapIterator.get_key()/get_value()
Rico Tzschichholz [Sat, 8 Apr 2023 16:50:59 +0000 (18:50 +0200)] 
gee: Fix return-type of HashMap.MapIterator.get_key()/get_value()

They didn't match the declarations in Vala.MapIterator interface.

2 years agovala: Improve error message for wrong number of type-arguments
Rico Tzschichholz [Sat, 8 Apr 2023 13:50:53 +0000 (15:50 +0200)] 
vala: Improve error message for wrong number of type-arguments

2 years agovala: Improve Symbol.to_string() to include TypeParameters
Rico Tzschichholz [Sat, 8 Apr 2023 13:50:53 +0000 (15:50 +0200)] 
vala: Improve Symbol.to_string() to include TypeParameters

2 years agoUse already available glib_ns instead of root_symbol.scope.lookup ("GLib")
Rico Tzschichholz [Sat, 8 Apr 2023 13:50:53 +0000 (15:50 +0200)] 
Use already available glib_ns instead of root_symbol.scope.lookup ("GLib")

2 years agovala: Check type-argument count of interface prerequisites
Rico Tzschichholz [Sat, 8 Apr 2023 08:55:39 +0000 (10:55 +0200)] 
vala: Check type-argument count of interface prerequisites

Additionally add test case for type-argument count of class base-types

2 years agogio-2.0: Add missing type-argument in ListStore.find_with_equal_func_full()
Rico Tzschichholz [Fri, 7 Apr 2023 14:49:10 +0000 (16:49 +0200)] 
gio-2.0: Add missing type-argument in ListStore.find_with_equal_func_full()

2 years agogirparser: Apply "instance_idx" metadata for delegates
Rico Tzschichholz [Thu, 6 Apr 2023 16:22:38 +0000 (18:22 +0200)] 
girparser: Apply "instance_idx" metadata for delegates

2 years agoglib-2.0: Fix a few binding errors
Rico Tzschichholz [Thu, 6 Apr 2023 10:01:00 +0000 (12:01 +0200)] 
glib-2.0: Fix a few binding errors

2 years agogtk+-3.0: Fix a few binding issues
Rico Tzschichholz [Thu, 6 Apr 2023 10:01:00 +0000 (12:01 +0200)] 
gtk+-3.0: Fix a few binding issues

2 years agogtk4: Fix a few binding errors
Rico Tzschichholz [Thu, 6 Apr 2023 10:01:00 +0000 (12:01 +0200)] 
gtk4: Fix a few binding errors

2 years agolibvaladoc: Make better use of properties
Rico Tzschichholz [Thu, 6 Apr 2023 10:01:00 +0000 (12:01 +0200)] 
libvaladoc: Make better use of properties

2 years agovaladoc: Check correct value for null when looking for return comment
Rico Tzschichholz [Thu, 6 Apr 2023 10:01:00 +0000 (12:01 +0200)] 
valadoc: Check correct value for null when looking for return comment

2 years agog-i: Fix compiling with mingw clang
Biswapriyo Nath [Tue, 4 Apr 2023 18:45:21 +0000 (00:15 +0530)] 
g-i: Fix compiling with mingw clang

This adds the return type with GetFullPathNameA declaration.
Otherwise the following error is shown with clang 16

grealpath.h:29:19: error: type specifier missing, defaults to 'int';
ISO C99 and later do not support implicit int [-Wimplicit-int]

2 years agoRelease 0.56.6 0.56.6
Rico Tzschichholz [Tue, 4 Apr 2023 11:02:26 +0000 (13:02 +0200)] 
Release 0.56.6

2 years agowebkit2gtk-6.0: Update to 2.40.0
Rico Tzschichholz [Sat, 1 Apr 2023 11:25:58 +0000 (13:25 +0200)] 
webkit2gtk-6.0: Update to 2.40.0

2 years agowebkit2gtk-4.1: Update to 2.40.0
Rico Tzschichholz [Sat, 1 Apr 2023 11:25:58 +0000 (13:25 +0200)] 
webkit2gtk-4.1: Update to 2.40.0

2 years agowebkit2gtk-4.0: Update to 2.40.0
Rico Tzschichholz [Sat, 1 Apr 2023 11:25:58 +0000 (13:25 +0200)] 
webkit2gtk-4.0: Update to 2.40.0

2 years agoglib-2.0,gio-2.0,gobject-2.0: Update 2.74 symbols
Rico Tzschichholz [Mon, 8 Aug 2022 18:46:15 +0000 (20:46 +0200)] 
glib-2.0,gio-2.0,gobject-2.0: Update 2.74 symbols

2 years agovala: Improve initialization of namespace fields with compound literal
Rico Tzschichholz [Mon, 27 Mar 2023 19:43:25 +0000 (21:43 +0200)] 
vala: Improve initialization of namespace fields with compound literal

Regression of 9c35019ef300082243ef7c71c22088c52d3db38e

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

2 years agoRelease 0.56.5 0.56.5
Rico Tzschichholz [Sat, 25 Mar 2023 16:17:31 +0000 (17:17 +0100)] 
Release 0.56.5

2 years agotests: Extend "struct-typed properties" tests to increase coverage
Rico Tzschichholz [Tue, 21 Mar 2023 10:14:49 +0000 (11:14 +0100)] 
tests: Extend "struct-typed properties" tests to increase coverage

2 years agotests: Add "signal with struct parameter" test to increase coverage
Rico Tzschichholz [Tue, 21 Mar 2023 10:14:49 +0000 (11:14 +0100)] 
tests: Add "signal with struct parameter" test to increase coverage

2 years agogtk+-3.0: Fix ToolPalette.icon_size get-accessor type
Rico Tzschichholz [Tue, 21 Mar 2023 10:14:49 +0000 (11:14 +0100)] 
gtk+-3.0: Fix ToolPalette.icon_size get-accessor type

2 years agovala: Allow assignment of namespace fields with inline allocated arrays
Rico Tzschichholz [Mon, 20 Mar 2023 14:18:00 +0000 (15:18 +0100)] 
vala: Allow assignment of namespace fields with inline allocated arrays

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

2 years agotests: Fix -Werror=array-bounds failure
Rico Tzschichholz [Mon, 20 Mar 2023 15:19:36 +0000 (16:19 +0100)] 
tests: Fix -Werror=array-bounds failure

2 years agovala: Set proper value-type of unary ref/out expression in initializers
Rico Tzschichholz [Thu, 16 Mar 2023 20:50:41 +0000 (21:50 +0100)] 
vala: Set proper value-type of unary ref/out expression in initializers

So the expected pointer-type for these expressions is available in AST.

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

2 years agocodegen: Add declaration for register call of dynamic DBus interfaces
Rico Tzschichholz [Sat, 18 Mar 2023 11:40:55 +0000 (12:40 +0100)] 
codegen: Add declaration for register call of dynamic DBus interfaces

The call was added without the required extern declaration

Found by -Werror=implicit-function-declaration

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

2 years agocodegen: Use g_object_class_override_property to implement generic interface properties
Rico Tzschichholz [Mon, 13 Mar 2023 08:13:34 +0000 (09:13 +0100)] 
codegen: Use g_object_class_override_property to implement generic interface properties

This caused the criticals like:

    GLib-GObject-CRITICAL **: Read/writable property 'data' on class 'Foo' has type
    'gchararray' which is not exactly equal to the type 'gpointer' of the property on
    the interface 'IFoo'

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

2 years agocodegen: Add cast to accessor calls for generic property implementations
Rico Tzschichholz [Mon, 13 Mar 2023 08:13:34 +0000 (09:13 +0100)] 
codegen: Add cast to accessor calls for generic property implementations

Found by -Werror=int-conversion

2 years agocodegen: Consistently handle GLib.Error as boxed type
Rico Tzschichholz [Thu, 9 Mar 2023 08:34:36 +0000 (09:34 +0100)] 
codegen: Consistently handle GLib.Error as boxed type

Use G_TYPE_ERROR and GBoxed API for all error domains.

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

2 years agovala: Correctly handle pre/post-increment expression as index of element access
Rico Tzschichholz [Wed, 8 Mar 2023 19:16:51 +0000 (20:16 +0100)] 
vala: Correctly handle pre/post-increment expression as index of element access

Regression of cb1828cfc5273aca752de9b39a77e0cd53305e61

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