]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
5 months agoAdd CI for tarball release service wip/0.56-release
Rico Tzschichholz [Sat, 1 Mar 2025 18:31:13 +0000 (19:31 +0100)] 
Add CI for tarball release service

5 months agoglib-2.0: Add Regex.escape_nul in GLib
Zhou Qiankang [Wed, 12 Feb 2025 03:30:46 +0000 (11:30 +0800)] 
glib-2.0: Add Regex.escape_nul in GLib

See: https://docs.gtk.org/glib/type_func.Regex.escape_nul.html

Signed-off-by: Zhou Qiankang <wszqkzqk@qq.com>
5 months agotests: Prepend $(builddir) to gir file target to increase coverage
Rico Tzschichholz [Thu, 20 Feb 2025 19:44:25 +0000 (20:44 +0100)] 
tests: Prepend $(builddir) to gir file target to increase coverage

5 months agoglib-2.0: Update RegexMatchFlags and RegexCompileFlags's binding to 2.74
Zhou Qiankang [Sun, 16 Feb 2025 03:58:21 +0000 (11:58 +0800)] 
glib-2.0: Update RegexMatchFlags and RegexCompileFlags's binding to 2.74

Signed-off-by: Zhou Qiankang <wszqkzqk@qq.com>
5 months agovaladoc: Sync gir argument handling from valacompiler.vala
Zhou Qiankang [Fri, 17 Jan 2025 14:48:39 +0000 (15:48 +0100)] 
valadoc: Sync gir argument handling from valacompiler.vala

5 months agoUpdate links to GNOME Wiki project and refer to new Vala websites
arujjval [Mon, 25 Nov 2024 14:55:31 +0000 (20:25 +0530)] 
Update links to GNOME Wiki project and refer to new Vala websites

5 months agogirparser: Handle `doc:format` element in root:repository
Rico Tzschichholz [Mon, 17 Feb 2025 17:30:20 +0000 (18:30 +0100)] 
girparser: Handle `doc:format` element in root:repository

See https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/448

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

5 months agogobject-2.0: Add TypeFlags missing values
Dawid Duma [Fri, 22 Nov 2024 16:05:07 +0000 (17:05 +0100)] 
gobject-2.0: Add TypeFlags missing values

5 months agobuild: Update gitlog-to-changelog to latest upstream
Rico Tzschichholz [Thu, 16 Jan 2025 06:54:39 +0000 (07:54 +0100)] 
build: Update gitlog-to-changelog to latest upstream

From commit 7b08932179d0d6b017f7df01a2ddf6e096b038e3 of
https://git.savannah.gnu.org/cgit/gnulib.git/tree/build-aux/gitlog-to-changelog

5 months agosdl2: Fix missing integer type for JoystickID
Mario Daniel Ruiz Saavedra [Thu, 31 Oct 2024 14:56:39 +0000 (14:56 +0000)] 
sdl2: Fix missing integer type for JoystickID

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

13 months agolibusb-1.0: Fix the LibUSB.HotPlugCb declaration
Ole André Vadla Ravnås [Mon, 24 Jun 2024 12:32:03 +0000 (14:32 +0200)] 
libusb-1.0: Fix the LibUSB.HotPlugCb declaration

It returns an int used to decide whether the callback should be rearmed
or deregistered.

Co-authored-by: Håvard Sørbø <havard@hsorbo.no>
13 months agolibusb-1.0: Fix the LibUSB.TransferCb declaration
Ole André Vadla Ravnås [Wed, 19 Jun 2024 07:19:24 +0000 (09:19 +0200)] 
libusb-1.0: Fix the LibUSB.TransferCb declaration

The target is part of the Transfer object, and is not passed as a
parameter.

Co-authored-by: Håvard Sørbø <havard@hsorbo.no>
13 months agogio-2.0: Improve the {Input,Output}Message bindings
Ole André Vadla Ravnås [Wed, 12 Jun 2024 14:11:41 +0000 (16:11 +0200)] 
gio-2.0: Improve the {Input,Output}Message bindings

Where some in/out fields were incorrectly typed.

Co-authored-by: Håvard Sørbø <havard@hsorbo.no>
13 months agosdl2: Fix CCode.destroy_function of SDL.RWops and usage of SDL.RWops.from_file()
Rico Tzschichholz [Tue, 4 Jun 2024 08:48:16 +0000 (10:48 +0200)] 
sdl2: Fix CCode.destroy_function of SDL.RWops and usage of SDL.RWops.from_file()

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

14 months agotests: Update property notify test for G_PARAM_EXPLICIT_NOTIFY
Rico Tzschichholz [Mon, 27 May 2024 17:02:10 +0000 (19:02 +0200)] 
tests: Update property notify test for G_PARAM_EXPLICIT_NOTIFY

GLib 2.42 is mandatory for some time.

14 months agocodegen: Fix conditional expression with only one void side
Rico Tzschichholz [Sun, 19 May 2024 17:06:12 +0000 (19:06 +0200)] 
codegen: Fix conditional expression with only one void side

Found by -pedantic-errors

14 months agotest: Avoid redeclaration of gint
Rico Tzschichholz [Sun, 19 May 2024 15:00:08 +0000 (17:00 +0200)] 
test: Avoid redeclaration of gint

In addition to e4fe55735fb3e151dd6340b6d3fb8acca38193a4

Found by -pedantic-errors

14 months agotests: Don't take the chance to conflict with C99 constant of stdbool.h
Rico Tzschichholz [Sat, 18 May 2024 14:22:02 +0000 (16:22 +0200)] 
tests: Don't take the chance to conflict with C99 constant of stdbool.h

14 months agoglib-2.0: Make FileStream.*printf() return int
Rico Tzschichholz [Sat, 18 May 2024 13:48:16 +0000 (15:48 +0200)] 
glib-2.0: Make FileStream.*printf() return int

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

14 months agocodegen: Use correct ctype for result variable in methods in more cases
Rico Tzschichholz [Mon, 6 May 2024 12:20:21 +0000 (14:20 +0200)] 
codegen: Use correct ctype for result variable in methods in more cases

14 months agoglib-2.0: Add missing CCode.array_null_terminated attributes to IConv.iconv()
Rico Tzschichholz [Thu, 2 May 2024 08:05:26 +0000 (10:05 +0200)] 
glib-2.0: Add missing CCode.array_null_terminated attributes to IConv.iconv()

14 months agoglib-2.0: Fix the binding of `get_console_charset`
Zhou Qiankang [Thu, 25 Apr 2024 16:53:53 +0000 (00:53 +0800)] 
glib-2.0: Fix the binding of `get_console_charset`

The parameters of `g_get_console_charset` is `const char**`, the same as `g_get_charset`, is a NUL terminated UTF-8 string.

14 months agodocs: Bump vala version references in README.md
Rico Tzschichholz [Thu, 25 Apr 2024 13:11:46 +0000 (15:11 +0200)] 
docs: Bump vala version references in README.md

14 months agovala, libvaladoc: Fix color support detection in log reporting
Zhou Qiankang [Thu, 25 Apr 2024 09:45:47 +0000 (17:45 +0800)] 
vala, libvaladoc: Fix color support detection in log reporting

Use `GLib.Log.writer_supports_color` to replace vala's implementation `is_atty`

14 months agovapi: Pass --girdir $GIRDIR to vapigen
Rico Tzschichholz [Tue, 23 Apr 2024 13:19:20 +0000 (15:19 +0200)] 
vapi: Pass --girdir $GIRDIR to vapigen

Otherwise only vala's installation prefix is used to resolve dependencies
for the given gir file.

14 months agovala: Don't allow inheritance of compact class from non-compact class
Rico Tzschichholz [Mon, 22 Apr 2024 17:53:14 +0000 (19:53 +0200)] 
vala: Don't allow inheritance of compact class from non-compact class

14 months agogstreamer-1.0: Skip ParamSpecArray and ParamSpecFraction
Rico Tzschichholz [Mon, 22 Apr 2024 17:53:14 +0000 (19:53 +0200)] 
gstreamer-1.0: Skip ParamSpecArray and ParamSpecFraction

14 months agognu: add binding for 'relocate' APIs
Reuben Thomas [Fri, 19 Apr 2024 15:49:08 +0000 (17:49 +0200)] 
gnu: add binding for 'relocate' APIs

15 months agoRelease 0.56.17 0.56.17
Rico Tzschichholz [Fri, 19 Apr 2024 10:57:40 +0000 (12:57 +0200)] 
Release 0.56.17

15 months agognu: add binding for flock(2) and its constants
Reuben Thomas [Sat, 6 Apr 2024 13:01:27 +0000 (15:01 +0200)] 
gnu: add binding for flock(2) and its constants

15 months agovala: Inherit important attributes for Property backing field
Rico Tzschichholz [Tue, 16 Apr 2024 11:01:23 +0000 (13:01 +0200)] 
vala: Inherit important attributes for Property backing field

15 months agocodegen: Only handle null-terminated array as such if there is no length given
Rico Tzschichholz [Tue, 16 Apr 2024 11:01:23 +0000 (13:01 +0200)] 
codegen: Only handle null-terminated array as such if there is no length given

15 months agocodegen: Refactor and cache parameter in loop
Rico Tzschichholz [Tue, 16 Apr 2024 11:01:23 +0000 (13:01 +0200)] 
codegen: Refactor and cache parameter in loop

15 months agoglib-2.0: Add dev_t/gid_t/pid_t/uid_t/socklen_t types for compatibility
Rico Tzschichholz [Mon, 18 Mar 2024 15:23:24 +0000 (16:23 +0100)] 
glib-2.0: Add dev_t/gid_t/pid_t/uid_t/socklen_t types for compatibility

Cherry-picked from 935260ceb87a4d744509f5624be9035ab2299de9

15 months agovala: Report invalid type in property assignment attempt
Rico Tzschichholz [Mon, 15 Apr 2024 06:40:05 +0000 (08:40 +0200)] 
vala: Report invalid type in property assignment attempt

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

15 months agovala: Point to the invalid initializer on error
Rico Tzschichholz [Mon, 15 Apr 2024 06:38:39 +0000 (08:38 +0200)] 
vala: Point to the invalid initializer on error

15 months agoglib-2.0: Add SPACING_MARK, deprecate COMBINING_MARK
Reuben Thomas [Fri, 5 Apr 2024 13:16:18 +0000 (14:16 +0100)] 
glib-2.0: Add SPACING_MARK, deprecate COMBINING_MARK

15 months agoglib-2.0: Avoid unnecessary copying operations in FileStream.read_line()
Zhou Qiankang [Mon, 1 Apr 2024 09:02:42 +0000 (17:02 +0800)] 
glib-2.0: Avoid unnecessary copying operations in FileStream.read_line()

15 months agocodegen: Properly pass through a null-terminated out argument
Rico Tzschichholz [Mon, 25 Mar 2024 14:34:52 +0000 (15:34 +0100)] 
codegen: Properly pass through a null-terminated out argument

15 months agocodegen: Update array length variable passed to null-terminated ref parameter
Rico Tzschichholz [Mon, 25 Mar 2024 14:34:52 +0000 (15:34 +0100)] 
codegen: Update array length variable passed to null-terminated ref parameter

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

15 months agotests: Extend off_t/time_t test cases to increase coverage
Rico Tzschichholz [Fri, 22 Mar 2024 09:31:16 +0000 (10:31 +0100)] 
tests: Extend off_t/time_t test cases to increase coverage

16 months agovala: Correctly use Path.build_path()
Simon McVittie [Tue, 19 Mar 2024 02:13:52 +0000 (02:13 +0000)] 
vala: Correctly use Path.build_path()

The first argument to Path.build_path() is a separator, and for it to be
practically useful, at least two subsequent arguments are needed.

Also to find GIR XML in /usr/share we should make the second argument be
an absolute path.

16 months agoparser: Allow declaration of static nested methods (local functions)
Rico Tzschichholz [Fri, 15 Mar 2024 13:14:56 +0000 (14:14 +0100)] 
parser: Allow declaration of static nested methods (local functions)

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

16 months agotests: Add -Werror=null-dereference flag
Rico Tzschichholz [Thu, 14 Mar 2024 15:07:03 +0000 (16:07 +0100)] 
tests: Add -Werror=null-dereference flag

16 months agocodegen: Add missing initializers for private fields of GSourceFuncs
Rico Tzschichholz [Thu, 14 Mar 2024 09:41:24 +0000 (10:41 +0100)] 
codegen: Add missing initializers for private fields of GSourceFuncs

Found by -Werror=missing-field-initializers

16 months agoRelease 0.56.16 0.56.16
Rico Tzschichholz [Thu, 14 Mar 2024 09:02:19 +0000 (10:02 +0100)] 
Release 0.56.16

16 months agogirparser: Recognize usage of off_t and don't rely on given GIR type
Rico Tzschichholz [Wed, 13 Mar 2024 07:46:56 +0000 (08:46 +0100)] 
girparser: Recognize usage of off_t and don't rely on given GIR type

16 months agovapi: Regenerate for GIR-based bindings to pick up time_t fix (long vs time_t)
Rico Tzschichholz [Wed, 13 Mar 2024 07:39:17 +0000 (08:39 +0100)] 
vapi: Regenerate for GIR-based bindings to pick up time_t fix (long vs time_t)

16 months agogirparser: Recognize usage of time_t and don't rely on given GIR type
Rico Tzschichholz [Wed, 13 Mar 2024 07:35:42 +0000 (08:35 +0100)] 
girparser: Recognize usage of time_t and don't rely on given GIR type

16 months agogtk4: Preserve compatibility with < 4.14
Rico Tzschichholz [Thu, 7 Mar 2024 16:56:05 +0000 (17:56 +0100)] 
gtk4: Preserve compatibility with < 4.14

Don't prefer new accessor methods for Calendar.day/month/year

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

16 months agogio-2.0: Restore ApplicationCommandLine.print*_literal() to not require 2.80 API
Rico Tzschichholz [Thu, 7 Mar 2024 07:53:03 +0000 (08:53 +0100)] 
gio-2.0: Restore ApplicationCommandLine.print*_literal() to not require 2.80 API

16 months agogmodule-2.0: Do not mark `Module.open` as deprecated
Zhou Qiankang [Wed, 6 Mar 2024 09:41:50 +0000 (17:41 +0800)] 
gmodule-2.0: Do not mark `Module.open` as deprecated

17 months agoRelease 0.56.15 0.56.15
Rico Tzschichholz [Mon, 4 Mar 2024 11:31:59 +0000 (12:31 +0100)] 
Release 0.56.15

17 months agocodegen: Emit diagnostic pragmas for GCC 14, Clang 16 compatibility
Florian Weimer [Fri, 19 Jan 2024 11:44:23 +0000 (12:44 +0100)] 
codegen: Emit diagnostic pragmas for GCC 14, Clang 16 compatibility

GCC 14 refuses to compile C sources with certain type errors, to
provide prompt feedback to programmers about mistakes.
Vala does not have the required information for const qualifiers
of parameters and return values which leads to incompatible-pointer
warnings/errors.

As a stop-gap measure, this commit introduces pragmata to turn the
relevant GCC/Clang diagnostics into warnings.  For experimentation,
this can be avoided at C compilation time by defining VALA_STRICT_C.

Clang 16 is broadly similar, except that it is not possible to
turn the errors into warnings using #pragma.  They have to be disabled
completely.  In Clang 16 and 17, -Wincompatible-pointer-types is not
an error yet, but that is likely to change in future Clang versions,
so this commit disables this warning, too.  Another error,
-Wincompatible-function-pointer-types has been split from that,
and needs to be disabled.

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

17 months agogio-2.0: Fix pointer-sign errors of some uint8[]-typed paramters
Rico Tzschichholz [Sun, 3 Mar 2024 15:47:51 +0000 (16:47 +0100)] 
gio-2.0: Fix pointer-sign errors of some uint8[]-typed paramters

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

17 months agogirparser: Don't discard explictly given ctype of parameters
Rico Tzschichholz [Sun, 3 Mar 2024 15:53:35 +0000 (16:53 +0100)] 
girparser: Don't discard explictly given ctype of parameters

17 months agotests: Add -Werror=pointer-sign flag
Rico Tzschichholz [Sun, 3 Mar 2024 11:31:10 +0000 (12:31 +0100)] 
tests: Add -Werror=pointer-sign flag

17 months agogtk4: Update to 4.13.9~f46fb7c6
Rico Tzschichholz [Thu, 22 Feb 2024 17:41:48 +0000 (18:41 +0100)] 
gtk4: Update to 4.13.9~f46fb7c6

17 months agogio-2.0,gmodule-2.0: Update from 2.79.x git
Rico Tzschichholz [Thu, 22 Feb 2024 18:16:03 +0000 (19:16 +0100)] 
gio-2.0,gmodule-2.0: Update from 2.79.x git

17 months agocodegen: Don't use pre-assigned *_parent_iface field if an instance is given
Rico Tzschichholz [Sat, 24 Feb 2024 15:59:23 +0000 (16:59 +0100)] 
codegen: Don't use pre-assigned *_parent_iface field if an instance is given

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

17 months agovala: Follow the logic of GIrParser.locate_gir() to find gir files
Rico Tzschichholz [Wed, 21 Feb 2024 10:49:10 +0000 (11:49 +0100)] 
vala: Follow the logic of GIrParser.locate_gir() to find gir files

This adds the abilitiy to retrieve GI_GIRDIR from the enviroment,
e.g. while passed to ./configure

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

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

17 months agogirparser: Issue a warning for `record` inside `transparent union`
Rico Tzschichholz [Tue, 20 Feb 2024 12:06:17 +0000 (13:06 +0100)] 
girparser: Issue a warning for `record` inside `transparent union`

This prevents aborting on a fatal error

17 months agov4l2: Fix FrameivalEnum.stepwise type mismatch with v4l2_frmivalenum
Sahil Shadwal [Sun, 28 Jan 2024 18:08:32 +0000 (23:38 +0530)] 
v4l2: Fix FrameivalEnum.stepwise type mismatch with v4l2_frmivalenum

Thanks to Pacer Ecks

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

17 months agolibvaladoc: Fix build with graphviz >= 10.0.1
Sudhanshu Tiwari [Thu, 15 Feb 2024 10:09:14 +0000 (15:39 +0530)] 
libvaladoc: Fix build with graphviz >= 10.0.1

Replaced TRUE with 1

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

18 months agocodegen: Cast generic return value from g_ptr_array_index()
Rico Tzschichholz [Fri, 26 Jan 2024 14:26:46 +0000 (15:26 +0100)] 
codegen: Cast generic return value from g_ptr_array_index()

Use convert_from_generic_pointer() to generate C code without warnings
when accessing scalar elements from a GPtrArray.

Found by -Werror=int-conversion

In addition to f904c7e269c7f7b0a6dcefa4f8f892b981a71917

18 months agovala: Move formal_target_type when transforming method-call/object-creation
Rico Tzschichholz [Fri, 26 Jan 2024 14:26:46 +0000 (15:26 +0100)] 
vala: Move formal_target_type when transforming method-call/object-creation

Avoid errornous casting from assumed generic type.

Found by -Werror=int-conversion

18 months agocodegen: Correctly return FALSE on uncaught error in async ctor
Rico Tzschichholz [Fri, 26 Jan 2024 07:13:03 +0000 (08:13 +0100)] 
codegen: Correctly return FALSE on uncaught error in async ctor

Found by -Werror=int-conversion

18 months agoglib-2.0,posix: Define _GNU_SOURCE for sincos*()
Rico Tzschichholz [Thu, 25 Jan 2024 12:26:39 +0000 (13:26 +0100)] 
glib-2.0,posix: Define _GNU_SOURCE for sincos*()

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

18 months agolibsoup-3.0: Don't skip uri_copy
Valeri Ochinski [Sat, 23 Dec 2023 02:21:37 +0000 (05:21 +0300)] 
libsoup-3.0: Don't skip uri_copy

18 months agogmodule-2.0: Improvements and updates from 2.76
Valeri Ochinski [Sat, 30 Dec 2023 17:53:56 +0000 (20:53 +0300)] 
gmodule-2.0: Improvements and updates from 2.76

18 months agocodegen: Remove static mutex initialization
Valeri Ochinski [Sun, 17 Dec 2023 15:44:31 +0000 (18:44 +0300)] 
codegen: Remove static mutex initialization

Mutex.init documentation points out that "It is not necessary to initialize
a mutex that has been statically allocated."

18 months agocodegen: Use GWeakRef for [SingleInstance] constructors
Valeri Ochinski [Sun, 17 Dec 2023 15:33:18 +0000 (18:33 +0300)] 
codegen: Use GWeakRef for [SingleInstance] constructors

This prevents a potential race condition if object is destroyed at the same time
as it is created, since lock is not taken by the code removing a weak reference.

GWeakRef gives atomicity guarantees.

18 months agovala: Treat negative integer/float ranks as non-compatible
Valeri Ochinski [Sat, 9 Dec 2023 12:29:31 +0000 (15:29 +0300)] 
vala: Treat negative integer/float ranks as non-compatible

This allows to improve type safety for handle types.

18 months agovala: Keep depfile empty if no dependencies were written
Val Och [Sat, 2 Dec 2023 02:13:43 +0000 (02:13 +0000)] 
vala: Keep depfile empty if no dependencies were written

18 months agotests: add temporary directories to .gitignore
Valeri Ochinski [Wed, 29 Nov 2023 02:04:14 +0000 (05:04 +0300)] 
tests: add temporary directories to .gitignore

18 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

18 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

18 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

18 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)

18 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*".

18 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 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

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

23 months 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

23 months 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