]>
git.ipfire.org Git - thirdparty/vala.git/log
Rico Tzschichholz [Mon, 30 Jan 2023 19:19:50 +0000 (20:19 +0100)]
WIP vala: Use Vala.Expression as Vala.Attribute values
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.
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
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
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
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.
Rico Tzschichholz [Tue, 11 Jul 2023 10:03:23 +0000 (12:03 +0200)]
libpq: Fix a few binding errors
Rico Tzschichholz [Mon, 10 Jul 2023 20:13:29 +0000 (22:13 +0200)]
vala: Improve check for compatibility of method and delegate with generics
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.
Rico Tzschichholz [Sun, 2 Jul 2023 18:37:28 +0000 (20:37 +0200)]
Sync NEWS from 0.56
Lorenz Wildberg [Wed, 28 Jun 2023 16:39:48 +0000 (18:39 +0200)]
flatpak: Don't cleanup vapigen pkgconfig file
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
Rico Tzschichholz [Wed, 28 Jun 2023 14:44:47 +0000 (16:44 +0200)]
testrunner: Add support to check generated header
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
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
Rico Tzschichholz [Thu, 22 Jun 2023 17:56:36 +0000 (19:56 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Thu, 22 Jun 2023 17:55:46 +0000 (19:55 +0200)]
gstreamer: Update from 1.23.0+ git main
Rico Tzschichholz [Thu, 22 Jun 2023 14:47:17 +0000 (16:47 +0200)]
gtk4: Update to 4.11.4~
88f8b77d
Rico Tzschichholz [Wed, 21 Jun 2023 13:52:05 +0000 (15:52 +0200)]
gtk4: Pick up fix for Gdk.Toplevel.compute_size.size parameter
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
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
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.
Rico Tzschichholz [Tue, 20 Jun 2023 09:00:45 +0000 (11:00 +0200)]
vapi: Regenerate GIR-based bindings
Rico Tzschichholz [Sat, 25 Feb 2023 12:08:33 +0000 (13:08 +0100)]
vala: Fix spaces for attributes when writing property accessors
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
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
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
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
Rico Tzschichholz [Mon, 12 Jun 2023 13:13:15 +0000 (15:13 +0200)]
vala: Add CodeNode.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
Rico Tzschichholz [Tue, 30 May 2023 09:08:22 +0000 (11:08 +0200)]
manual: Update from wiki.gnome.org
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
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
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.
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.
Jordan Petridis [Fri, 21 Apr 2023 01:17:30 +0000 (04:17 +0300)]
flatpak: Add CI for the 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.
Rico Tzschichholz [Thu, 25 May 2023 11:21:28 +0000 (13:21 +0200)]
Sync NEWS from 0.56
Rico Tzschichholz [Wed, 17 May 2023 20:40:53 +0000 (22:40 +0200)]
tests: Add more method tests to increase coverage
Val Och [Wed, 17 May 2023 15:14:19 +0000 (15:14 +0000)]
gtk4: Don't skip AlertDialog ctor
JCWasmx86 [Sun, 5 Jun 2022 15:30:29 +0000 (17:30 +0200)]
glib-2.0: Fix binding of g_variant_type_n_items()
Andre Klapper [Fri, 28 Apr 2023 02:33:08 +0000 (04:33 +0200)]
DOAP: Replace defunct mailing-list with developer-forum (GNOME Discourse)
Rico Tzschichholz [Sat, 22 Apr 2023 08:49:14 +0000 (10:49 +0200)]
codegen: Include "glib-object.h" when using GType/GBoxedCopyFunc
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
Rico Tzschichholz [Sun, 9 Apr 2023 11:29:26 +0000 (13:29 +0200)]
valadoc/tests: Add girwriter test
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
Rico Tzschichholz [Wed, 19 Apr 2023 11:16:30 +0000 (13:16 +0200)]
build: valadoc requires valac 0.18.1
Rico Tzschichholz [Wed, 19 Apr 2023 11:16:30 +0000 (13:16 +0200)]
build: Improve usage of AC_PATH_PROG() for valacs
Rico Tzschichholz [Tue, 18 Apr 2023 08:52:18 +0000 (10:52 +0200)]
Regenerate manpages
Rico Tzschichholz [Tue, 18 Apr 2023 08:48:07 +0000 (10:48 +0200)]
Sync NEWS from 0.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
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.
Rico Tzschichholz [Mon, 17 Apr 2023 13:56:12 +0000 (15:56 +0200)]
gee: Fix type-arguments in cast
Rico Tzschichholz [Mon, 17 Apr 2023 13:40:02 +0000 (15:40 +0200)]
gee: Fix reversed type-arguments
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
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
Rico Tzschichholz [Sun, 16 Apr 2023 12:24:25 +0000 (14:24 +0200)]
tests: Add missing instance fields to GIR test files
Rico Tzschichholz [Thu, 13 Apr 2023 18:36:08 +0000 (20:36 +0200)]
vapi: Regenerate bindings for GenericType change
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
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
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()
Lorenz Wildberg [Tue, 11 Apr 2023 20:02:51 +0000 (22:02 +0200)]
vala: Improve check of type_referene in ObjectCreationExpression
Rico Tzschichholz [Sat, 8 Apr 2023 17:30:33 +0000 (19:30 +0200)]
vala: Check type-arguments in more declarations
Rico Tzschichholz [Sat, 8 Apr 2023 13:50:53 +0000 (15:50 +0200)]
girparser: Add support for type_parameters, implements and prerequisites metadata
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
Rico Tzschichholz [Mon, 10 Apr 2023 21:42:16 +0000 (23:42 +0200)]
valadoc: Add missing generic type arguments
Rico Tzschichholz [Mon, 10 Apr 2023 15:13:35 +0000 (17:13 +0200)]
vala: Add GenericSymbol interface for symbols supporting type-parameters
Rico Tzschichholz [Sat, 8 Apr 2023 20:43:41 +0000 (22:43 +0200)]
gee: Add more missing generic type arguments
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.
Rico Tzschichholz [Sat, 8 Apr 2023 13:50:53 +0000 (15:50 +0200)]
vala: Improve error message for wrong number of type-arguments
Rico Tzschichholz [Sat, 8 Apr 2023 13:50:53 +0000 (15:50 +0200)]
vala: Improve Symbol.to_string() to include TypeParameters
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")
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
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()
Rico Tzschichholz [Thu, 6 Apr 2023 16:22:38 +0000 (18:22 +0200)]
gio-2.0: Add new symbols from 2.76
Rico Tzschichholz [Thu, 6 Apr 2023 16:22:38 +0000 (18:22 +0200)]
girparser: Apply "instance_idx" metadata for delegates
Rico Tzschichholz [Thu, 6 Apr 2023 10:01:00 +0000 (12:01 +0200)]
glib-2.0: Fix a few binding errors
Rico Tzschichholz [Thu, 6 Apr 2023 10:01:00 +0000 (12:01 +0200)]
gtk+-3.0: Fix a few binding issues
Rico Tzschichholz [Thu, 6 Apr 2023 10:01:00 +0000 (12:01 +0200)]
gtk4: Fix a few binding errors
Rico Tzschichholz [Thu, 6 Apr 2023 10:01:00 +0000 (12:01 +0200)]
libvaladoc: Make better use of properties
Rico Tzschichholz [Thu, 6 Apr 2023 10:01:00 +0000 (12:01 +0200)]
valadoc: Check correct value for null when looking for return comment
Rico Tzschichholz [Thu, 6 Apr 2023 10:01:00 +0000 (12:01 +0200)]
glib-2.0: Add new symbols from 2.76
Rico Tzschichholz [Thu, 6 Apr 2023 13:14:52 +0000 (15:14 +0200)]
codegen: Stabilize CCode.cname for backing method of lamdba expression
Move lambda_id generation to CCodeAttribute and use _vala_lambda%d_ pattern
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]
Rico Tzschichholz [Tue, 4 Apr 2023 11:24:17 +0000 (13:24 +0200)]
Sync NEWS from 0.56
Rico Tzschichholz [Sat, 1 Apr 2023 11:28:39 +0000 (13:28 +0200)]
vapi: Drop webkit2gtk-5.0 bindings
Rico Tzschichholz [Sat, 1 Apr 2023 11:25:58 +0000 (13:25 +0200)]
webkit2gtk-6.0: 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
Rico Tzschichholz [Sat, 1 Apr 2023 11:25:58 +0000 (13:25 +0200)]
webkit2gtk-4.0: Update to 2.40.0
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
Rico Tzschichholz [Sat, 25 Mar 2023 16:31:51 +0000 (17:31 +0100)]
Sync NEWS from 0.56
Rico Tzschichholz [Tue, 21 Mar 2023 10:14:49 +0000 (11:14 +0100)]
codegen: Minor refactoring of TypeRegisterFunction and its subclasses
Rico Tzschichholz [Tue, 21 Mar 2023 10:14:49 +0000 (11:14 +0100)]
codegen: Use G_TYPE_FLAG_NONE when targetting glib >= 2.74
Rico Tzschichholz [Tue, 21 Mar 2023 10:14:49 +0000 (11:14 +0100)]
tests: Extend "struct-typed properties" tests 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
Rico Tzschichholz [Tue, 21 Mar 2023 10:14:49 +0000 (11:14 +0100)]
vala: Owned property accessors are not allowed for non-null simple types
Additionally drop invalid g_value_take_* references for enums
Rico Tzschichholz [Tue, 21 Mar 2023 10:14:49 +0000 (11:14 +0100)]
gtk+-3.0: Fix ToolPalette.icon_size get-accessor type
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
Rico Tzschichholz [Mon, 20 Mar 2023 15:19:36 +0000 (16:19 +0100)]
tests: Fix -Werror=array-bounds failure
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