]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0,gio-2.0,gobject-2.0: Updates from 2.53
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 3 Apr 2017 07:10:17 +0000 (09:10 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 10 Apr 2017 12:54:31 +0000 (14:54 +0200)
vapi/gio-2.0.vapi
vapi/glib-2.0.vapi
vapi/gobject-2.0.vapi
vapi/metadata/Gio-2.0-custom.vala

index 29f9bfa97d5e8b9e6e6ac30830de307cfa03ab07..d1f3610af891fdfbd68ec8a2f6c13bd9d9b6a0ba 100644 (file)
@@ -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 ()")]
index d480b53591808c9801334fc840ccd212306390bd..63437c9cc36de6e6839d9c70987cf8ab30a8b49c 100644 (file)
@@ -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;
index 1c3797ac02ff283e298e733f5291619a70119991..ced58275717998391bff24b7709a77da307bea9c 100644 (file)
@@ -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);
index 5e995c3f3deabc111380c63fc44a55da94c574bc..fb0565b788eb79751ce117aecdd8ed1ba063ddb0 100644 (file)
@@ -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);
        }