Simon Werbeck [Fri, 27 Jun 2014 23:41:52 +0000 (01:41 +0200)]
Set G_SIGNAL_DEPRECATED on annotated signals
When using the [Deprecated] attribute on a signal, the corresponding
signal flag is now set upon signal creation. This requires that
--target-glib is set accordingly
Luca Bruno [Sat, 28 Jun 2014 08:42:14 +0000 (10:42 +0200)]
codewriter: Do not write (unowned string)[] for constants
The element type of a constant array is forced to be unowned
in the parser. Therefore we don't write (unowned string) to avoid
breaking vapi parsing uselessly with older valac versions.
Evan Nemerson [Mon, 2 Jun 2014 17:18:26 +0000 (10:18 -0700)]
gstreamer-rtsp-server-1.0: update bindings
The previous bindings only worked for an unstable pre-release version
of gstreamer-rtsp-server-1.0. The new (stable) version is not
backwards compatible, so neither can the Vala bindings be. Since we
had to break backwards compatibilitiy, why not go big? I've taken the
opportunity to move the bindings into the Gst.RTSPServer namespace to
better match the other gstreamer bindings, as well as other assorted
less-disruptive clean-ups.
Evan Nemerson [Thu, 12 Jun 2014 15:12:24 +0000 (08:12 -0700)]
glib-2.0: add static methods back into Sequence, marked as deprecated
They are, it seems, usable by calling them as if they were instance
methods. However, doing so causes a warning from valac ("Access to
static member ... with an instance reference").
Evan Nemerson [Fri, 6 Jun 2014 04:15:10 +0000 (21:15 -0700)]
glib-2.0: add GLib.HashSet
This is basically just a convenience wrapper around GLib.HashTable
where the key and value are set to the same value, providing a set
data type instead of a map.
Evan Nemerson [Sat, 31 May 2014 04:15:13 +0000 (21:15 -0700)]
glib-2.0: remove HashTable.get_keys_as_array
This was causing a syntax error when trying to compile Vala with an
older version of valac (whatever is in gnome-continuous). It looks
like we should hold off on adding stuff with this syntax until
next cycle.
Evan Nemerson [Mon, 26 May 2014 02:42:00 +0000 (19:42 -0700)]
girparser: don't deprecate children of deprecated containers
GObject Introspection doesn't support marking entire types as
deprecated, so we end up with a lot of places where the type isn't
deprecated, but every method, property, field, signal, etc. in it is,
which causes a lot of spew during compilation. This patch allows us
to easily deprecate a type in metadata and any extra deprecation
information on child symbols will be omitted.
Evan Nemerson [Mon, 26 May 2014 02:39:48 +0000 (19:39 -0700)]
girparser: support return_void metadata argument
This allows us to generate backwards compatible signatures for
functions with a void return value and a single out param for a struct
from metadata files instead of resorting to *-custom.vala.
Evan Nemerson [Wed, 28 May 2014 19:13:05 +0000 (12:13 -0700)]
gstreamer-1.0: update to latest git.
Using bindings some libraries, such as gstreamer-audio-1.0, will break
compatibility with gstreamer 1.0 since gstreamer didn't include
single-include headers until 1.2.
Evan Nemerson [Wed, 28 May 2014 04:42:10 +0000 (21:42 -0700)]
libsoup-2.4: deprecate Buffer.new and MessageBody.append
These functions require the user to correctly specify a Soup.MemoryUse
argument, but that's easy to get wrong without understanding how the
memory is managed. Alternatives for these functions which will always
transfer ownership of the memory have been in place since 2.32, so
from now on we will emit a warning when someone tries to use the old
versions.
Robert Ancell [Wed, 14 May 2014 00:33:07 +0000 (12:33 +1200)]
xcb: Remove unnecessary padding fields
Some structures allow access to the padding fields from the C structures. Since
these don't do anything except make the memory be set out correctly there's no
reason to access them from Vala.
Ryan Lortie [Wed, 16 Apr 2014 14:54:57 +0000 (10:54 -0400)]
girparser: grok "nullable"
Understand the new "nullable" attribute in .gir files.
Presently, this is mostly an alias for allow-none='', but it will also
allows a new feature: we can explicitly mark out parameters as having a
nullable type (as a distinct concept from accepting 'NULL' as a
parameter to the C function call in order to ignore the result).
.gir may eventually want to remove allow-none='' some day, so make sure
we also accept nullable='' in all places that we accepted allow-none=''
to mean 'can be NULL'.