]>
git.ipfire.org Git - thirdparty/vala.git/log
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
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
Rico Tzschichholz [Sat, 18 Mar 2023 11:40:55 +0000 (12:40 +0100)]
sdl2: Improve Keyboard.get_state() and drop custom implementation
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1420
Rico Tzschichholz [Sat, 18 Mar 2023 11:40:55 +0000 (12:40 +0100)]
tests: Drop superfluous GLIB_2_56 preprocessing
Corentin Noël [Thu, 16 Mar 2023 11:17:47 +0000 (12:17 +0100)]
gtk4: Add sealed to all the final types
Allows to know in advance if a type can be subclassed or not
Required until https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4575 is merged
or the right heuristic is implemented on Vala side.
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
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
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
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
Rico Tzschichholz [Wed, 8 Mar 2023 11:14:28 +0000 (12:14 +0100)]
gtk4: Update to 4.10.1~
40b154bf
Rico Tzschichholz [Tue, 28 Feb 2023 11:29:16 +0000 (12:29 +0100)]
Require and target GLib >= 2.56
The next stable release of vala will happen over 5 years after the
release of GLib 2.56.0.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1415
Rico Tzschichholz [Mon, 27 Feb 2023 13:27:52 +0000 (14:27 +0100)]
webkitgtk-6.0: Update to 2.39.90
Lorenz Wildberg [Tue, 27 Sep 2022 18:05:59 +0000 (20:05 +0200)]
vala: Replace '.' with ':' in SourceReference.to_string()
This makes it possible to click on the file path and let the location
being opened in the editor.
Lorenz Wildberg [Tue, 21 Feb 2023 09:05:03 +0000 (10:05 +0100)]
tests: Prepend PKG_CONFIG_PATH to include possible existing value
Rico Tzschichholz [Tue, 21 Feb 2023 07:12:23 +0000 (08:12 +0100)]
gtk4: Follow upstream change of CssProvider.load_from_data() to match gtk+-3.0
Regression of
521d3b4eef09b767bcb2fa56c441fbb8752c9a2d
See https://gitlab.gnome.org/GNOME/gtk/issues/5543
Niels De Graef [Sat, 18 Feb 2023 20:32:52 +0000 (21:32 +0100)]
gtkmodule: Improve error messages
Be a bit more specific about some of the errors that valac can
encounter when parsing a UI file.
(for my use case specifically, it helped me to figure out I had a
<property> tag without a name attribute in one of my UI files)
Rico Tzschichholz [Sun, 12 Feb 2023 17:22:23 +0000 (18:22 +0100)]
webkitgtk-6.0: Update to 2.39.7
Rico Tzschichholz [Sat, 11 Feb 2023 22:28:34 +0000 (23:28 +0100)]
Sync NEWS from 0.56
Rico Tzschichholz [Sat, 11 Feb 2023 17:19:26 +0000 (18:19 +0100)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Sat, 11 Feb 2023 17:18:14 +0000 (18:18 +0100)]
gstreamer: Update from 1.23.0+ git main
Rico Tzschichholz [Wed, 8 Feb 2023 14:41:58 +0000 (15:41 +0100)]
gtk4: Update to 4.9.4~
9991d683
Ole André Vadla Ravnås [Tue, 1 Nov 2022 19:32:23 +0000 (20:32 +0100)]
libgvc: Fix `cheader_filename` of the `Gvc` namespace
The .pc only adds `${includedir}/graphviz` to the include path.
Fina Wilke [Thu, 19 Jan 2023 17:08:27 +0000 (18:08 +0100)]
vapi: Update gnome-desktop-3.0 and gnome-desktop-4
Rico Tzschichholz [Mon, 6 Feb 2023 17:52:11 +0000 (18:52 +0100)]
vala: Better handling of [NoReturn] call inside finally clause
This caused the following criticals:
vala_flow_analyzer_jump_target_construct_finally_clause: assertion 'last_block != NULL' failed
vala_flow_analyzer_jump_target_get_is_exit_target: assertion 'self != NULL' failed
vala_flow_analyzer_jump_target_get_is_error_target: assertion 'self != NULL' failed
vala_flow_analyzer_jump_target_get_is_finally_clause: assertion 'self != NULL' failed
Rico Tzschichholz [Sun, 5 Feb 2023 18:33:15 +0000 (19:33 +0100)]
codegen: Cast vfunc of property accessors by using cast_method_pointer()
Found by -Wincompatible-function-pointer-types
See https://gitlab.gnome.org/GNOME/vala/issues/1408
Rico Tzschichholz [Sun, 5 Feb 2023 18:33:15 +0000 (19:33 +0100)]
codegen: Cast return value of generic type accessor functions
Found by -Wincompatible-function-pointer-types
See https://gitlab.gnome.org/GNOME/vala/issues/1408
Rico Tzschichholz [Sun, 5 Feb 2023 18:33:15 +0000 (19:33 +0100)]
codegen: Perform required cast while assigning and passing function pointers
Found by -Wincompatible-function-pointer-types
See https://gitlab.gnome.org/GNOME/vala/issues/1408
Rico Tzschichholz [Sun, 5 Feb 2023 18:33:15 +0000 (19:33 +0100)]
tests: Add more Werror=... flags for clang
Rico Tzschichholz [Sun, 5 Feb 2023 18:33:15 +0000 (19:33 +0100)]
vala: Allow more general usage of PropertyAccessor.get_method()
Rico Tzschichholz [Sun, 5 Feb 2023 18:33:15 +0000 (19:33 +0100)]
vala: Inherit more important attributes for PropertyAccessor method
Rico Tzschichholz [Tue, 31 Jan 2023 14:43:57 +0000 (15:43 +0100)]
codegen: Perform required casts for generic types of return-values and in/out-parameters
Found by -Werror=int-conversion
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1407
wszqkzqk [Fri, 9 Dec 2022 12:07:59 +0000 (20:07 +0800)]
vala: Add support for Hexadecimal floating point literals
https://gcc.gnu.org/onlinedocs/gcc/Hex-Floats.html#Hex-Floats
Rico Tzschichholz [Mon, 30 Jan 2023 13:56:07 +0000 (14:56 +0100)]
vala: Improve missing exponent check for real literals
Rico Tzschichholz [Mon, 30 Jan 2023 10:39:11 +0000 (11:39 +0100)]
vala: Improve compatibility type checks of array elements in assignments
wszqkzqk [Wed, 18 Jan 2023 06:25:50 +0000 (14:25 +0800)]
glib-2.0: Improve string.replace()
Use string.split() and string.joinv() which is way faster than GLib.Regex()
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1402
Rico Tzschichholz [Wed, 18 Jan 2023 13:13:13 +0000 (14:13 +0100)]
tests: Extend string.replace() test to increase coverage
Frederik Zipp [Sun, 1 Aug 2010 10:54:37 +0000 (12:54 +0200)]
codegen: Add foreach support for strings
Fixes https://gitlab.gnome.org/GNOME/vala/issues/108
wszqkzqk [Wed, 11 Jan 2023 05:44:49 +0000 (13:44 +0800)]
tests: Update c-expected
wszqkzqk [Wed, 11 Jan 2023 05:44:34 +0000 (13:44 +0800)]
codegen: Improve handling of 'extern' on Win32 and Cygwin
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1398
wszqkzqk [Wed, 4 Jan 2023 11:42:17 +0000 (19:42 +0800)]
parser: Support one-line declaration of multiple fields in classes/structs
Fixes https://gitlab.gnome.org/GNOME/vala/issues/6
Rico Tzschichholz [Thu, 5 Jan 2023 11:29:28 +0000 (12:29 +0100)]
tests: Add "one-line declaration of local variables" test to increase coverage
Rico Tzschichholz [Wed, 4 Jan 2023 21:47:01 +0000 (22:47 +0100)]
codegen: Correctly handle fixed-length array initialization of fields in classes
Rico Tzschichholz [Wed, 4 Jan 2023 21:47:01 +0000 (22:47 +0100)]
vala: Allow to use store_field() for initializations
wszqkzqk [Tue, 3 Jan 2023 15:12:24 +0000 (23:12 +0800)]
vala,libvaladoc: Properly check for colored terminal output on Windows
Additionally look for `_isatty()` and adjust for more possible results
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1383
wszqkzqk [Tue, 13 Dec 2022 13:56:53 +0000 (21:56 +0800)]
parser: Properly handle chained equality expressions
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1385
Rico Tzschichholz [Wed, 14 Dec 2022 16:22:44 +0000 (17:22 +0100)]
codegen: Use a special CCodeBinaryExpression for string comparisons
This preserves support for recursive replacement of arguments while this
expression was actually transformed into a function call.
Rico Tzschichholz [Thu, 22 Dec 2022 15:58:58 +0000 (16:58 +0100)]
parser: Move parsing of IS and AS type checks to dedicated function
Rico Tzschichholz [Tue, 13 Dec 2022 15:04:42 +0000 (16:04 +0100)]
tests: Add "string relation" tests to increase coverage
Rico Tzschichholz [Thu, 22 Dec 2022 13:27:06 +0000 (14:27 +0100)]
tests: Add "type check comparison" test to increase coverage
Rico Tzschichholz [Sat, 26 Nov 2022 06:43:06 +0000 (07:43 +0100)]
gtk4: Update workaround for DropTarget.drop() signal conflict
Deprecate DropTarget.on_drop()
Additionally don't skip Notebook.insert_page_menu()
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1312
星外之神 [Mon, 12 Dec 2022 01:56:28 +0000 (09:56 +0800)]
gitignore: Add built files on Windows
星外之神 [Thu, 24 Nov 2022 13:09:01 +0000 (21:09 +0800)]
vala: Add support for binary/octal integer literal
Rico Tzschichholz [Mon, 21 Nov 2022 09:55:44 +0000 (10:55 +0100)]
vala: Improve integer literal checks
Rico Tzschichholz [Tue, 6 Dec 2022 11:31:37 +0000 (12:31 +0100)]
cairo: Add new symbols for 1.18
Rico Tzschichholz [Tue, 6 Dec 2022 11:15:44 +0000 (12:15 +0100)]
cairo: Drop broken PsSurface.get_levels() which is bound as PsLevel.get_levels()
Rico Tzschichholz [Tue, 6 Dec 2022 09:55:27 +0000 (10:55 +0100)]
cairo: Add missing Cairo.Pattern.get_rgba()
Thanks to Wayne Blaszczyk
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1381
Corentin Noël [Mon, 5 Dec 2022 16:19:34 +0000 (17:19 +0100)]
vapi: Remove hildon bindings
It is long dead and not available anywhere anymore.
Rico Tzschichholz [Sun, 27 Nov 2022 12:51:03 +0000 (13:51 +0100)]
vapi: Add webkitgtk-6.0 bindings
Rico Tzschichholz [Sun, 27 Nov 2022 12:41:49 +0000 (13:41 +0100)]
gtk4: Require pangocairo which is a dependency of Gdk-4.0
wszqkzqk [Sun, 27 Nov 2022 02:17:13 +0000 (10:17 +0800)]
Fix output decoding error of non-ASCII character on Win32
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1379
Rico Tzschichholz [Sun, 20 Nov 2022 09:35:36 +0000 (10:35 +0100)]
Actually use printf-like way of Report.*()
Simon Werbeck [Tue, 17 Jul 2012 16:30:51 +0000 (18:30 +0200)]
vala: Fix assignment operators for element access
This transforms an assignment to element access other than `=' to a
binary expression i.e. `a[b] += 1' will become `a.set(a.get(b) + 1)'
Fixes https://gitlab.gnome.org/GNOME/vala/issues/135
wszqkzqk [Thu, 3 Nov 2022 13:57:10 +0000 (21:57 +0800)]
vala: Minor scanner optimization
Rico Tzschichholz [Mon, 31 Oct 2022 21:03:51 +0000 (22:03 +0100)]
harfbuzz-gobject: Update to 5.3.1
Rico Tzschichholz [Mon, 31 Oct 2022 21:03:51 +0000 (22:03 +0100)]
vapi: Add freetype2 binding stub for harfbuzz-gobject
Rico Tzschichholz [Sun, 13 Nov 2022 15:42:43 +0000 (16:42 +0100)]
vapi: Update GIR-based bindings
星外之神 [Fri, 28 Oct 2022 15:47:56 +0000 (23:47 +0800)]
vala: Add support for verbatim template string
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1373
星外之神 [Tue, 25 Oct 2022 13:02:32 +0000 (21:02 +0800)]
vala: Report error in real literal if exponent has no digits
Alberts Muktupāvels [Mon, 10 Oct 2022 11:25:22 +0000 (14:25 +0300)]
codegen: Append VALA_EXTERN also when using fast-vapi
David Hewitt [Sat, 22 Oct 2022 14:30:29 +0000 (15:30 +0100)]
pixman-1: Fix instance position of region copy methods
Rico Tzschichholz [Sun, 2 Oct 2022 11:17:04 +0000 (13:17 +0200)]
codegen: Add glib.h include for TRUE/FALSE literal
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1364
Rico Tzschichholz [Wed, 17 Aug 2022 08:31:41 +0000 (10:31 +0200)]
tests: Add "entry point exists" test to increase coverage
Rico Tzschichholz [Tue, 9 Aug 2022 21:07:45 +0000 (23:07 +0200)]
gtk4: Make Gtk.show_uri_full() an instance method of Gtk.Window
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1347
wszqkzqk [Sun, 25 Sep 2022 13:53:21 +0000 (21:53 +0800)]
glib-2.0: Add `double_hash` and `double_equal`
colinkiama [Sat, 30 Jul 2022 23:37:40 +0000 (00:37 +0100)]
libvaladoc: Inline rendering of hierarchy graphs when using svg images
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1340
Rico Tzschichholz [Fri, 16 Sep 2022 13:56:25 +0000 (15:56 +0200)]
Sync NEWS from 0.56
Rico Tzschichholz [Thu, 15 Sep 2022 18:46:05 +0000 (20:46 +0200)]
manual: Update from wiki.gnome.org
Rico Tzschichholz [Wed, 25 May 2022 14:48:51 +0000 (16:48 +0200)]
tests: Split up gir parser tests into dedicated files
Rico Tzschichholz [Sat, 3 Sep 2022 08:05:41 +0000 (10:05 +0200)]
webkit2gtk-*.*: Update to 2.37.91
星外之神 [Sat, 27 Aug 2022 15:26:41 +0000 (23:26 +0800)]
vala: Avoid problems with '\' in #line directives on Windows
Replace '\' with '/' in SourceFile.relative_path like in CodeContext.realpath().
F:/msys64/home/x/test/test.vala.c: In function '_vala_main':
F:/msys64/home/x/test/test.vala.c:12:9: warning: unknown escape sequence: '\M'
12 | #line 3 "C:\MyFiles\test.vala"
| ^~~~~~~~~~~~~~~~~~~~~~
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1353
Rico Tzschichholz [Wed, 17 Aug 2022 06:46:18 +0000 (08:46 +0200)]
glib-2.0: Use g_abort for GLib.Process.abort() beginning with 2.50
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1350
Rico Tzschichholz [Mon, 15 Aug 2022 06:36:49 +0000 (08:36 +0200)]
vala: Make try-statement parsing more resilient
Regression of
f5934184d050d1a19f394fdab6f2ee66ff30965f
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1304
Rico Tzschichholz [Tue, 9 Aug 2022 06:13:38 +0000 (08:13 +0200)]
atspi-2: Fix a few binding errors
Rico Tzschichholz [Mon, 8 Aug 2022 18:51:40 +0000 (20:51 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Mon, 8 Aug 2022 18:50:01 +0000 (20:50 +0200)]
gstreamer: Update from 1.21.0+ git main
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
Rico Tzschichholz [Mon, 1 Aug 2022 12:32:06 +0000 (14:32 +0200)]
vala: Enforce required type-arguments on parameter/return types of callables
This stricter check applies to delegate types in source files only.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1342
Rico Tzschichholz [Mon, 1 Aug 2022 17:09:30 +0000 (19:09 +0200)]
Bump version suffix to 0.58
Rico Tzschichholz [Mon, 1 Aug 2022 15:04:36 +0000 (17:04 +0200)]
gidlparser: Set source reference of parameters
Rico Tzschichholz [Sat, 30 Jul 2022 09:18:40 +0000 (11:18 +0200)]
vala: Don't unconditionally expect ObjectType of Class
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1341
Rico Tzschichholz [Tue, 19 Jul 2022 16:22:19 +0000 (18:22 +0200)]
gtk+-3.0: Correctly unhide BindingSet.by_class to avoid Version attribute
Rico Tzschichholz [Thu, 14 Jul 2022 15:27:07 +0000 (17:27 +0200)]
doap: Demote idle maintainers to authors
Requested by Michael Catanzaro <mcatanzaro@gnome.org>
Rico Tzschichholz [Thu, 14 Jul 2022 14:13:16 +0000 (16:13 +0200)]
Release 0.56.2
Rico Tzschichholz [Fri, 1 Jul 2022 14:21:23 +0000 (16:21 +0200)]
vapi: Add rest-1.0 bindings
Rico Tzschichholz [Fri, 1 Jul 2022 14:04:47 +0000 (16:04 +0200)]
vapi: Add geocode-glib-2.0 binding
Rico Tzschichholz [Sat, 11 Jun 2022 11:04:00 +0000 (13:04 +0200)]
codegen: Check cname of fields and methods against reserved identfiers
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1329
Rico Tzschichholz [Sat, 11 Jun 2022 11:28:11 +0000 (13:28 +0200)]
codegen: Split reserved identifiers for C and Vala