[vala] glib-2.0,gio-2.0,gobject-2.0: Updates from 2.53



commit 2a0ee50ca703ad1262b2b495d25af57dfbddb4de
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Apr 3 09:10:17 2017 +0200

    glib-2.0,gio-2.0,gobject-2.0: Updates from 2.53

 vapi/gio-2.0.vapi                 |    2 ++
 vapi/glib-2.0.vapi                |    1 +
 vapi/gobject-2.0.vapi             |   15 +++++++++++++++
 vapi/metadata/Gio-2.0-custom.vala |    1 +
 4 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 29f9bfa..d1f3610 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -3225,6 +3225,7 @@ namespace GLib {
                [CCode (finish_function = "g_async_initable_new_finish")]
                public static async GLib.Object new_valist_async (GLib.Type object_type, string 
first_property_name, va_list var_args, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable 
= null);
                [CCode (finish_function = "g_async_initable_new_finish")]
+               [Version (deprecated = true, deprecated_since = "2.54", since = "2.22")]
                public static async GLib.Object newv_async (GLib.Type object_type, [CCode (array_length_pos = 
1.1)] GLib.Parameter[] parameters, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = 
null);
        }
        [CCode (cheader_filename = "gio/gio.h", type_id = "g_async_result_get_type ()")]
@@ -3568,6 +3569,7 @@ namespace GLib {
                public abstract bool init (GLib.Cancellable? cancellable = null) throws GLib.Error;
                public static GLib.Object @new (GLib.Type object_type, GLib.Cancellable? cancellable = null, 
...) throws GLib.Error;
                public static GLib.Object new_valist (GLib.Type object_type, string first_property_name, 
va_list var_args, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               [Version (deprecated = true, deprecated_since = "2.54", since = "2.22")]
                public static GLib.Object newv (GLib.Type object_type, [CCode (array_length_cname = 
"n_parameters", array_length_pos = 1.5, array_length_type = "guint")] GLib.Parameter[] parameters, 
GLib.Cancellable? cancellable = null) throws GLib.Error;
        }
        [CCode (cheader_filename = "gio/gio.h", type_cname = "GListModelInterface", type_id = 
"g_list_model_get_type ()")]
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index d480b53..63437c9 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -5326,6 +5326,7 @@ namespace GLib {
                public const uint @2_48;
                public const uint @2_50;
                public const uint @2_52;
+               public const uint @2_54;
 
                [CCode (cname = "glib_binary_age")]
                public const uint binary_age;
diff --git a/vapi/gobject-2.0.vapi b/vapi/gobject-2.0.vapi
index 1c3797a..ced5827 100644
--- a/vapi/gobject-2.0.vapi
+++ b/vapi/gobject-2.0.vapi
@@ -165,9 +165,15 @@ namespace GLib {
                public unowned T get_qdata<T> (GLib.Quark quark);
                [CCode (cname = "G_TYPE_FROM_INSTANCE")]
                public GLib.Type get_type ();
+               [Version (since = "2.54")]
+               public void getv ([CCode (array_length_cname = "n_properties", array_length_pos = 0.5, 
array_length_type = "guint")] string[] names, [CCode (array_length_cname = "n_properties", array_length_pos = 
0.5, array_length_type = "guint")] GLib.Value[] values);
                public static GLib.Object @new (GLib.Type type, ...);
                public static GLib.Object new_valist (GLib.Type type, string? firstprop, va_list var_args);
+               [Version (deprecated = true, deprecated_since = "2.54")]
                public static GLib.Object newv (GLib.Type type, [CCode (array_length_pos = 1.9, 
array_length_type = "guint")] GLib.Parameter[] parameters);
+               [Version (since = "2.54")]
+               public static GLib.Object new_with_properties (GLib.Type object_type, [CCode 
(array_length_cname = "n_properties", array_length_pos = 1.5, array_length_type = "guint")] string[] names, 
[CCode (array_length_cname = "n_properties", array_length_pos = 1.5, array_length_type = "guint")] 
GLib.Value[] values);
+
                [CCode (cname = "g_object_notify")]
                public void notify_property (string property_name);
                public unowned GLib.Object @ref ();
@@ -188,6 +194,8 @@ namespace GLib {
                [CCode (cname = "g_object_set_qdata_full", simple_generics = true)]
                public void set_qdata<T> (GLib.Quark quark, owned T data);
                public void set_qdata_full (GLib.Quark quark, void* data, GLib.DestroyNotify? destroy);
+               [Version (since = "2.54")]
+               public void setv ([CCode (array_length_cname = "n_properties", array_length_pos = 0.5, 
array_length_type = "guint")] string[] names, [CCode (array_length_cname = "n_properties", array_length_pos = 
0.5, array_length_type = "guint")] GLib.Value[] values);
                [CCode (simple_generics = true)]
                public T steal_data<T> (string key);
                [CCode (simple_generics = true)]
@@ -474,6 +482,7 @@ namespace GLib {
                public GLib.Value value;
        }
        [CCode (has_copy_function = false, has_destroy_function = false)]
+       [Version (deprecated = true, deprecated_since = "2.54")]
        public struct Parameter {
                public weak string name;
                public GLib.Value value;
@@ -513,6 +522,12 @@ namespace GLib {
                public uint depth ();
                [Version (since = "2.34")]
                public void ensure ();
+               [CCode (cname = "g_enum_to_string")]
+               [Version (since = "2.54")]
+               public string enum_to_string (int @value);
+               [CCode (cname = "g_flags_to_string")]
+               [Version (since = "2.54")]
+               public string flags_to_string (uint @value);
                [CCode (cname = "G_TYPE_FROM_INSTANCE")]
                public static GLib.Type from_instance (void* instance);
                public static GLib.Type from_name (string name);
diff --git a/vapi/metadata/Gio-2.0-custom.vala b/vapi/metadata/Gio-2.0-custom.vala
index 5e995c3..fb0565b 100644
--- a/vapi/metadata/Gio-2.0-custom.vala
+++ b/vapi/metadata/Gio-2.0-custom.vala
@@ -153,6 +153,7 @@ namespace GLib {
                [CCode (finish_function = "g_async_initable_new_finish")]
                public static async GLib.Object new_valist_async (GLib.Type object_type, string 
first_property_name, va_list var_args, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable 
= null);
                [CCode (finish_function = "g_async_initable_new_finish")]
+               [Version (deprecated = true, deprecated_since = "2.54", since = "2.22")]
                public static async GLib.Object newv_async (GLib.Type object_type, [CCode (array_length_pos = 
1.1)] GLib.Parameter[] parameters, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = 
null);
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]