[vala/wip/x-version: 2/24] gobject-2.0: Add [Version] attributes
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/x-version: 2/24] gobject-2.0: Add [Version] attributes
- Date: Thu, 25 Dec 2014 20:51:38 +0000 (UTC)
commit b54e76d17da49b7b39219ee9c24c3757103a6b64
Author: Florian Brosch <flo brosch gmail com>
Date: Thu May 8 02:56:19 2014 +0200
gobject-2.0: Add [Version] attributes
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 f015b3d..21bb104 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();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]