]>
git.ipfire.org Git - thirdparty/vala.git/log
Rico Tzschichholz [Thu, 14 Dec 2017 08:57:53 +0000 (09:57 +0100)]
vala: Use CodeContext.root instead of SemanticAnalyzer.root_symbol
https://bugzilla.gnome.org/show_bug.cgi?id=712694
Rico Tzschichholz [Thu, 14 Dec 2017 08:19:33 +0000 (09:19 +0100)]
girwriter: Use local reference to current CodeContext
Jukka-Pekka Iivonen [Fri, 26 Mar 2010 14:12:00 +0000 (15:12 +0100)]
parser: Accept comma-separated list in case-statements of switchs
switch (i) {
case 0, 1, 2:
break;
}
https://bugzilla.gnome.org/show_bug.cgi?id=614015
Alistair Thomas [Wed, 13 Dec 2017 16:10:20 +0000 (16:10 +0000)]
gtk+-2.0: Mark MessageDialog constructor parameter, message_format, as nullable
https://bugzilla.gnome.org/show_bug.cgi?id=791570
Alistair Thomas [Wed, 13 Dec 2017 15:32:39 +0000 (15:32 +0000)]
vapi: Remove librsvg-2.0 binding
This binding was upstreamed 19 June 2012. See:
https://git.gnome.org/browse/librsvg/commit/?id=
729a3d6b6486faa92c7a56a5a4f5bf04173c8624
https://bugzilla.gnome.org/show_bug.cgi?id=776025
Alistair Thomas [Wed, 13 Dec 2017 15:32:03 +0000 (15:32 +0000)]
vapi: Remove libgdata bindings
This binding was upstreamed 24 February 2013. See:
https://git.gnome.org/browse/libgdata/commit/?id=
2186969875520d535704f61280f62145932b4948
https://bugzilla.gnome.org/show_bug.cgi?id=776024
Alistair Thomas [Wed, 13 Dec 2017 15:31:42 +0000 (15:31 +0000)]
vapi: Remove gtksourceview-3.0 bindings
This binding was upstreamed 12 August 2014. See:
https://git.gnome.org/browse/gtksourceview/commit/?id=
44742519a806240a528fd61a19027cf2c24bdf02
and have been partially removed from Vala back in 2014:
https://git.gnome.org/browse/vala/commit/?id=
dbc07519e666c2ab9a2ecbee8dc550c0a3741204
https://bugzilla.gnome.org/show_bug.cgi?id=776023
Alistair Thomas [Wed, 13 Dec 2017 15:31:25 +0000 (15:31 +0000)]
vapi: Remove libgnome-keyring binding
This binding has been upstreamed since 28 June 2012. See
https://git.gnome.org/browse/libgnome-keyring/commit/?id=
ea1476c1a941d71d6d7be90aa6fc5b8ba8da7c83
https://bugzilla.gnome.org/show_bug.cgi?id=776022
Alistair Thomas [Wed, 13 Dec 2017 15:34:52 +0000 (15:34 +0000)]
vapi: Remove gedit 3 binding
The bindings have been upstreamed since 17 February 2014. See
https://git.gnome.org/browse/gedit/commit/?id=
e16b196c32cd288bc186abff19e5a23af5f83422
https://bugzilla.gnome.org/show_bug.cgi?id=776021
Rico Tzschichholz [Wed, 13 Dec 2017 11:40:50 +0000 (12:40 +0100)]
Make use of GLib.OPTION_REMAINING instead of ""
Rico Tzschichholz [Wed, 13 Dec 2017 11:31:42 +0000 (12:31 +0100)]
glib-2.0: Add GLib.OPTION_REMAINING and GLib.OptionFlags.NONE
Rico Tzschichholz [Mon, 11 Dec 2017 09:41:15 +0000 (10:41 +0100)]
Release 0.39.2
Rico Tzschichholz [Mon, 11 Dec 2017 08:11:20 +0000 (09:11 +0100)]
Regenerate GIR-based bindings
Rico Tzschichholz [Mon, 11 Dec 2017 08:08:25 +0000 (09:08 +0100)]
girparser: Don't mark simple-type out-parameters with '?' as nullable
Using '?' on simple-types has a different meaning in vala and would create
a boxed-type which is not compatible with the original type.
Rico Tzschichholz [Sun, 10 Dec 2017 22:14:01 +0000 (23:14 +0100)]
gtk+-4.0: Update to 3.93.0+
6af4947e
Rico Tzschichholz [Sun, 10 Dec 2017 22:07:48 +0000 (23:07 +0100)]
gtk+-3.0: Fix lost GLib.InitiallyUnowned inheritance of Gtk.Widget
Rico Tzschichholz [Sun, 10 Dec 2017 17:45:49 +0000 (18:45 +0100)]
gtk+-3.0: Drop obsolete GIDL sources
https://bugzilla.gnome.org/show_bug.cgi?id=730746
Rico Tzschichholz [Thu, 28 Apr 2016 20:31:08 +0000 (22:31 +0200)]
gtk+-3.0: Switch to GIR
Initially based on patch by Evan Nemerson
https://bugzilla.gnome.org/show_bug.cgi?id=730746
Rico Tzschichholz [Sat, 9 Dec 2017 21:52:45 +0000 (22:52 +0100)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Sat, 9 Dec 2017 21:47:40 +0000 (22:47 +0100)]
gstreamer-1.0: Update from 1.13+ git master
Rico Tzschichholz [Sat, 9 Dec 2017 21:45:38 +0000 (22:45 +0100)]
gtk+-4.0: Update to 3.93.0+
8233cf36
Rico Tzschichholz [Fri, 8 Dec 2017 08:59:11 +0000 (09:59 +0100)]
gtk+-4.0: Add some fixes from gtk+-3.0
Rico Tzschichholz [Fri, 8 Dec 2017 07:38:28 +0000 (08:38 +0100)]
Regenerate GIR-based bindings
Rico Tzschichholz [Fri, 8 Dec 2017 07:35:17 +0000 (08:35 +0100)]
girparser: Accept setters with boolean return-type as valid property-accessor
Rico Tzschichholz [Thu, 7 Dec 2017 16:32:54 +0000 (17:32 +0100)]
girparser: Handle metadata for fields inside a transparent union
Rico Tzschichholz [Thu, 7 Dec 2017 20:36:47 +0000 (21:36 +0100)]
gtk+-3.0: Fix FileChooser.add_choice()
Rico Tzschichholz [Fri, 8 Dec 2017 23:25:16 +0000 (00:25 +0100)]
SemanticAnalyzer.get_data_type_for_symbol() doesn't require a TypeSymbol
Rico Tzschichholz [Fri, 8 Dec 2017 23:19:06 +0000 (00:19 +0100)]
Improve error message for missing type-parameter on enclosing type
https://bugzilla.gnome.org/show_bug.cgi?id=587905
Rico Tzschichholz [Fri, 8 Dec 2017 22:21:05 +0000 (23:21 +0100)]
SemanticAnalyser.get_actual_type() should never return null
So better return an InvalidType in case of error.
https://bugzilla.gnome.org/show_bug.cgi?id=587905
George Barrett [Wed, 6 Dec 2017 14:51:05 +0000 (15:51 +0100)]
codegen: Don't create null-safe destroy-wrapper for GenericType
https://bugzilla.gnome.org/show_bug.cgi?id=791283
Rico Tzschichholz [Wed, 6 Dec 2017 19:54:54 +0000 (20:54 +0100)]
Move type_parameter property to GenericType
Rico Tzschichholz [Wed, 6 Dec 2017 19:34:21 +0000 (20:34 +0100)]
vala: Convert last non-type-check-based usages of GenericType instances
Rico Tzschichholz [Wed, 6 Dec 2017 17:25:33 +0000 (18:25 +0100)]
tests: Add further "use of generics in constructor" test
https://bugzilla.gnome.org/show_bug.cgi?id=593137
Rico Tzschichholz [Wed, 6 Dec 2017 16:14:34 +0000 (17:14 +0100)]
Use type-check to determine a GenericType
Rico Tzschichholz [Wed, 6 Dec 2017 15:11:10 +0000 (16:11 +0100)]
vala: Don't transform an explicit "null" into a valid format-string
https://bugzilla.gnome.org/show_bug.cgi?id=791215
Rico Tzschichholz [Tue, 5 Dec 2017 19:19:28 +0000 (20:19 +0100)]
ccode: Replace if-else-tree with switch
Rico Tzschichholz [Sat, 2 Dec 2017 17:31:03 +0000 (18:31 +0100)]
girparser: Allow change of parameter names
Philip Withnall [Tue, 5 Dec 2017 11:59:32 +0000 (11:59 +0000)]
glib-2.0: Fix potential null pointer dereference in string.joinv()
The logic in the ‘is the array null or empty’ check was disjunctive
rather than conjunctive. If (str_array == null), the condition would
have short-circuited and tried to evaluate str_array.length, which would
have crashed.
Coverity CID: #
1462389 (spotted when scanning Tracker)
https://bugzilla.gnome.org/show_bug.cgi?id=791257
George Barrett [Thu, 30 Nov 2017 13:05:42 +0000 (00:05 +1100)]
gobject-2.0: Add missing GType constants for fundamentals
At present, only a handful of the G_TYPE_* are declared as constants
GType defines, adding a hurdle to vala programs wanting to use
GObject's fundamental type introspection facilities.
This commit simply adds declarations for all the constant-valued GTypes
listed in the GObject documentation.
https://bugzilla.gnome.org/show_bug.cgi?id=791023
Alistair Thomas [Wed, 29 Nov 2017 21:28:56 +0000 (21:28 +0000)]
posix: Move signal constants to an enum and add a few missing ones
Added signal constants: CLD, EMT, INFO, IO, LOST, PWR, WINCH
This patch also adds Valadoc documentation for the signals based on the
Open Group documentation for signal.h and the header bits/signum.h in
GNU's libc version 2.22
(http://pubs.opengroup.org/onlinepubs/
7908799 /xsh/signal.h.html)
https://bugzilla.gnome.org/show_bug.cgi?id=790958
Rico Tzschichholz [Wed, 29 Nov 2017 13:09:33 +0000 (14:09 +0100)]
libvaladoc: Actually resolve "percnt;" to '%'
Rico Tzschichholz [Tue, 28 Nov 2017 15:35:05 +0000 (16:35 +0100)]
Release 0.39.1
Rico Tzschichholz [Tue, 28 Nov 2017 14:48:38 +0000 (15:48 +0100)]
Update NEWS from 0.38 branch
Rico Tzschichholz [Tue, 28 Nov 2017 14:29:54 +0000 (15:29 +0100)]
gtk+-4.0: Update to 3.93.0+
2d797dd8
Rico Tzschichholz [Tue, 28 Nov 2017 12:42:35 +0000 (13:42 +0100)]
gstreamer-1.0: Update from 1.13+ git master
Rico Tzschichholz [Tue, 28 Nov 2017 12:39:46 +0000 (13:39 +0100)]
webkit2gtk-4.0: Update to 2.19.2
Rico Tzschichholz [Tue, 28 Nov 2017 12:38:46 +0000 (13:38 +0100)]
gtk+-3.0: Update to 3.22.26+
9ce824d3
Rico Tzschichholz [Mon, 27 Nov 2017 18:46:20 +0000 (19:46 +0100)]
vala: Improve error output of mismatching overriding methods
Include the prototype-string of base-method for easier error finding.
Rico Tzschichholz [Mon, 27 Nov 2017 14:25:02 +0000 (15:25 +0100)]
codegen: Discover invalid member access to instance field
https://bugzilla.gnome.org/show_bug.cgi?id=790903
Rico Tzschichholz [Mon, 27 Nov 2017 11:55:28 +0000 (12:55 +0100)]
tests: Invalid Code needs to be recoginized explicitly by an compiler error
Running with G_DEBUG=fatal-warnings makes those fail to easily, so only
pass it to positive test-cases.
Rico Tzschichholz [Sun, 26 Nov 2017 18:25:39 +0000 (19:25 +0100)]
doclets: Include libvala headers as needed
Rico Tzschichholz [Sun, 26 Nov 2017 14:36:58 +0000 (15:36 +0100)]
vala: Add MarkupReader.from_string() and support add support for "percnt;"
Jakub Kaszycki [Sun, 12 Nov 2017 21:19:00 +0000 (22:19 +0100)]
libvaladoc: Fix fatal typo in GtkdocRenderer.visit_symbol_link()
https://bugzilla.gnome.org/show_bug.cgi?id=790266
Rico Tzschichholz [Sat, 26 Aug 2017 13:35:10 +0000 (15:35 +0200)]
vala: Methods need to throw compatible error if target delegate throws one
Rico Tzschichholz [Fri, 24 Nov 2017 15:13:06 +0000 (16:13 +0100)]
valaparser: Improve handling of unowned/owned keyword occurrences
Don't throw an error on unexpected owned/unowned classification and
output why it is superfuous in this context.
Rico Tzschichholz [Wed, 22 Nov 2017 20:49:11 +0000 (21:49 +0100)]
tests: Make lambda tests fatal and add some more cases
Rico Tzschichholz [Thu, 9 Mar 2017 15:52:37 +0000 (16:52 +0100)]
codegen: Avoid use of temp-var for some callables returning ValueType
It is safe to do for callables which don't have out/ref parameters without
breaking the control-flow.
https://bugzilla.gnome.org/show_bug.cgi?id=789071
Rico Tzschichholz [Tue, 21 Nov 2017 20:21:48 +0000 (21:21 +0100)]
codegen: Avoid use of temp-var to access in/ref parameters
https://bugzilla.gnome.org/show_bug.cgi?id=789071
Rico Tzschichholz [Tue, 21 Nov 2017 08:10:09 +0000 (09:10 +0100)]
valadoc: Acknowledge possible properties in structs
https://bugzilla.gnome.org/show_bug.cgi?id=784705
Rico Tzschichholz [Mon, 20 Nov 2017 13:03:55 +0000 (14:03 +0100)]
gstreamer-1.0: Bind GST_TIME_ARGS, GST_STIME_ARGS formatting macros
Gst.ClockTime ts = 0ULL;
print ("%" + Gst.TIME_FORMAT + "\n", Gst.TIME_ARGS (ts));
https://bugzilla.gnome.org/show_bug.cgi?id=750840
Rico Tzschichholz [Mon, 20 Nov 2017 16:03:16 +0000 (17:03 +0100)]
codegen: Add boolean "use_inplace" ccode-attribute for methods
This can be use to avoid temp-variables for an expanding macro.
https://bugzilla.gnome.org/show_bug.cgi?id=750840
Rico Tzschichholz [Fri, 10 Mar 2017 07:05:48 +0000 (08:05 +0100)]
glib-2.0: Add optional 'unparsed' parameter to *.try_parse ()
This reintroduces a dropped feature of string.to_*() while returning the
maybe available unparsed part of the string.
https://bugzilla.gnome.org/show_bug.cgi?id=774124
Evan Nemerson [Mon, 20 Nov 2017 11:25:33 +0000 (12:25 +0100)]
gstreamer-1.0: Bind GST_DEBUG_BIN_TO_DOT_FILE/*_WITH_TS
https://bugzilla.gnome.org/show_bug.cgi?id=785215
Rico Tzschichholz [Mon, 20 Nov 2017 08:04:39 +0000 (09:04 +0100)]
gobject-2.0: Add some missing symbols
G_SIGNAL_FLAGS_MASK, G_SIGNAL_MATCH_MASK, g_source_set_closure,
g_source_set_dummy_callback
Rico Tzschichholz [Sun, 19 Nov 2017 19:17:07 +0000 (20:17 +0100)]
vala: Allow unscoped enum values where possible
If the scope for an enumeration value can be determined from current context
it is possible to omit the enum's scope.
Based on patch by Timo Kluck
https://bugzilla.gnome.org/show_bug.cgi?id=666035
Rico Tzschichholz [Sun, 19 Nov 2017 15:27:22 +0000 (16:27 +0100)]
vala: Report error for missing type-parameter on enclosing type
Make a qualified guess for the cause of the problem instead of triggering
an assertion.
https://bugzilla.gnome.org/show_bug.cgi?id=587905
Rico Tzschichholz [Sun, 19 Nov 2017 14:29:55 +0000 (15:29 +0100)]
codegen: Enforce name-length >= 3 for structs using GType
https://bugzilla.gnome.org/show_bug.cgi?id=764041
Rico Tzschichholz [Thu, 9 Nov 2017 13:33:08 +0000 (14:33 +0100)]
compiler: Properly parse arguments for vala interpeter-mode
Arguments for the target need to be passed with --run-args from now on.
https://bugzilla.gnome.org/show_bug.cgi?id=663070
Rico Tzschichholz [Sun, 10 Sep 2017 13:49:56 +0000 (15:49 +0200)]
Allow to pass compatible delegates to signal.connect()
https://bugzilla.gnome.org/show_bug.cgi?id=787521
Rico Tzschichholz [Sun, 10 Sep 2017 13:48:53 +0000 (15:48 +0200)]
vala: Include sender-type parameter to prototype-string of signal-delegates
https://bugzilla.gnome.org/show_bug.cgi?id=787521
Rico Tzschichholz [Sun, 19 Nov 2017 13:03:31 +0000 (14:03 +0100)]
tests: Clean up control-flow/sideeffects
Rico Tzschichholz [Thu, 9 Mar 2017 12:39:10 +0000 (13:39 +0100)]
ccode: Reformat function declaration and definition for better readability
https://bugzilla.gnome.org/show_bug.cgi?id=688447
Rico Tzschichholz [Fri, 13 Oct 2017 20:29:58 +0000 (22:29 +0200)]
codegen: Factor out static getters for ccode-attributes
https://bugzilla.gnome.org/show_bug.cgi?id=788837
Rico Tzschichholz [Fri, 13 Oct 2017 14:04:44 +0000 (16:04 +0200)]
codegen: Install as private library for sharing between internal components
https://bugzilla.gnome.org/show_bug.cgi?id=788837
Rico Tzschichholz [Sat, 18 Nov 2017 22:49:53 +0000 (23:49 +0100)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Sat, 18 Nov 2017 16:20:53 +0000 (17:20 +0100)]
gtk+-4.0: Update to 3.93.0+
a8531605
Rico Tzschichholz [Sat, 18 Nov 2017 22:49:34 +0000 (23:49 +0100)]
gtk+-3.0: Update to 3.22.26
Rico Tzschichholz [Sat, 18 Nov 2017 22:26:47 +0000 (23:26 +0100)]
gio-2.0,glib-2.0: Update to 2.55.0
Rico Tzschichholz [Sat, 18 Nov 2017 22:48:14 +0000 (23:48 +0100)]
Regenerate GIDL-based bindings
Rico Tzschichholz [Sat, 18 Nov 2017 22:45:09 +0000 (23:45 +0100)]
gidlparser: Fix cname format of renamed signals
https://bugzilla.gnome.org/show_bug.cgi?id=731547
Rico Tzschichholz [Sat, 18 Nov 2017 16:07:38 +0000 (17:07 +0100)]
vala: Subtype of string is allowed as constant
Alistair Thomas [Tue, 14 Nov 2017 11:31:37 +0000 (11:31 +0000)]
tests: split VALAFLAGS over multiple lines in testrunner.sh
This improves readability of script and makes it easier for out of tree
patches to the script.
https://bugzilla.gnome.org/show_bug.cgi?id=790321
Rico Tzschichholz [Sat, 4 Nov 2017 19:10:45 +0000 (20:10 +0100)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Sat, 4 Nov 2017 19:09:29 +0000 (20:09 +0100)]
webkit2gtk-4.0: Update to 2.19.1
Rico Tzschichholz [Fri, 3 Nov 2017 21:44:29 +0000 (22:44 +0100)]
gtk+-4.0: Update to 3.93.0+
481b5d1b
Daniel Espinosa [Wed, 25 Oct 2017 18:24:13 +0000 (13:24 -0500)]
libxml-2.0: Add DTD methods
https://bugzilla.gnome.org/show_bug.cgi?id=789442
Rico Tzschichholz [Wed, 25 Oct 2017 11:10:41 +0000 (13:10 +0200)]
codegen: Avoid possible conflicts with internal property/signal defines
https://bugzilla.gnome.org/show_bug.cgi?id=788964
Rico Tzschichholz [Tue, 24 Oct 2017 08:50:07 +0000 (10:50 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Tue, 24 Oct 2017 08:49:26 +0000 (10:49 +0200)]
gtk+-4.0: Update to 3.93.0+
4d44865f
Rico Tzschichholz [Sat, 21 Oct 2017 18:48:07 +0000 (20:48 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Sat, 21 Oct 2017 17:23:45 +0000 (19:23 +0200)]
gtk+-4.0: Update to 3.93.0+
9e78fbaa
Rico Tzschichholz [Sat, 21 Oct 2017 14:22:58 +0000 (16:22 +0200)]
gtk+-4.0: Update to 3.92.1
Rico Tzschichholz [Sat, 21 Oct 2017 17:10:30 +0000 (19:10 +0200)]
gtk+-4.0: Split Gsk.RenderNode into several classes
Rico Tzschichholz [Wed, 11 Oct 2017 17:14:46 +0000 (19:14 +0200)]
gio-2.0: Fix FileReadMoreCallback and File.load_partial_contents_async()
FileReadMoreCallback expects the same target as AsyncReadyCallback here.
Rico Tzschichholz [Wed, 11 Oct 2017 16:59:38 +0000 (18:59 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Wed, 11 Oct 2017 16:57:52 +0000 (18:57 +0200)]
gtk+-4.0: Update to 3.91.2+
1c232ed5
Rico Tzschichholz [Tue, 10 Oct 2017 12:34:13 +0000 (14:34 +0200)]
Regenerate GIR-based bindings
https://bugzilla.gnome.org/show_bug.cgi?id=788775
Rico Tzschichholz [Tue, 10 Oct 2017 12:09:10 +0000 (14:09 +0200)]
codegen: Prioritize "array_length=true" over "array_null_terminated=true"
If arrays claim to have an array-length and also are null-terminated then
use and rely on the given length.
Adapt the girparser for this and add "array_length = true" accordingly.
https://bugzilla.gnome.org/show_bug.cgi?id=788775
Rico Tzschichholz [Sat, 7 Oct 2017 10:53:12 +0000 (12:53 +0200)]
libxml-2.0: Fix header of XPath.Context.register_ns()
Rico Tzschichholz [Fri, 6 Oct 2017 07:18:27 +0000 (09:18 +0200)]
gio-2.0: "address" parameter of Socket.receive_message() is optional