From: Rico Tzschichholz Date: Mon, 3 Apr 2017 07:10:17 +0000 (+0200) Subject: glib-2.0,gio-2.0,gobject-2.0: Updates from 2.53 X-Git-Tag: 0.37.1~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a0ee50ca703ad1262b2b495d25af57dfbddb4de;p=thirdparty%2Fvala.git glib-2.0,gio-2.0,gobject-2.0: Updates from 2.53 --- diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi index 29f9bfa97..d1f3610af 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 d480b5359..63437c9cc 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 1c3797ac0..ced582757 100644 --- a/vapi/gobject-2.0.vapi +++ b/vapi/gobject-2.0.vapi @@ -165,9 +165,15 @@ namespace GLib { public unowned T get_qdata (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 (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 (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 5e995c3f3..fb0565b78 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); }