diff options
author | Florian Brosch <flo.brosch@gmail.com> | 2014-05-08 02:56:19 +0200 |
---|---|---|
committer | Luca Bruno <lucabru@src.gnome.org> | 2014-12-25 13:52:29 +0100 |
commit | b54e76d17da49b7b39219ee9c24c3757103a6b64 (patch) | |
tree | a0402fffaf048ab9a4335be403050ed27dfc0359 | |
parent | b1cb07d5d80bd713cffc8c2a92f2329c85ee326f (diff) | |
download | vala-b54e76d17da49b7b39219ee9c24c3757103a6b64.tar.gz |
gobject-2.0: Add [Version] attributes
-rw-r--r-- | vapi/gobject-2.0.vapi | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vapi/gobject-2.0.vapi b/vapi/gobject-2.0.vapi index f015b3dca..21bb10469 100644 --- a/vapi/gobject-2.0.vapi +++ b/vapi/gobject-2.0.vapi @@ -300,6 +300,7 @@ namespace GLib { public struct ObjectConstructParam { } + [Version (since = "2.26")] [CCode (cprefix = "G_BINDING_")] [Flags] public enum BindingFlags { @@ -309,8 +310,10 @@ namespace GLib { INVERT_BOOLEAN } + [Version (since = "2.26")] public delegate bool BindingTransformFunc (GLib.Binding binding, GLib.Value source_value, ref GLib.Value target_value); + [Version (since = "2.26")] public class Binding : GLib.Object { public weak GLib.Object source { get; } public string source_property { get; } @@ -385,10 +388,12 @@ namespace GLib { public void add_toggle_ref (ToggleNotify notify); public void remove_toggle_ref (ToggleNotify notify); + [Version (since = "2.26")] [CCode (cname = "g_object_bind_property_with_closures")] public unowned GLib.Binding bind_property (string source_property, GLib.Object target, string target_property, GLib.BindingFlags flags = GLib.BindingFlags.DEFAULT, [CCode (type = "GClosure*")] owned GLib.BindingTransformFunc? transform_to = null, [CCode (type = "GClosure*")] owned GLib.BindingTransformFunc? transform_from = null); } + [Version (since = "2.32")] [CCode (destroy_function = "g_weak_ref_clear", lvalue_access = false)] public struct WeakRef { public WeakRef (GLib.Object? object); @@ -479,7 +484,9 @@ namespace GLib { public bool get_boolean (); public void set_char (char v_char); public char get_char (); + [Version (since = "2.32")] public void set_schar (int8 v_char); + [Version (since = "2.32")] public int8 get_schar (); public void set_uchar (uchar v_uchar); public uchar get_uchar (); @@ -517,7 +524,9 @@ namespace GLib { public void take_object (owned Object v_object); public unowned Object get_object (); public Object dup_object (); + [Version (since = "2.12")] public void set_gtype (Type v_gtype); + [Version (since = "2.12")] public Type get_gtype (); public void set_param(ParamSpec param); public ParamSpec get_param(); |