[vala/0.34] gio-2.0: Expose g_task_get_source_object as Task.get_unowned_source_object
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.34] gio-2.0: Expose g_task_get_source_object as Task.get_unowned_source_object
- Date: Thu, 26 Oct 2017 08:25:30 +0000 (UTC)
commit fcabcbc5a91676e0603e53b739877b7a8d2dd1b5
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Oct 11 18:59:38 2017 +0200
gio-2.0: Expose g_task_get_source_object as Task.get_unowned_source_object
... and some nullable fixes
vapi/gio-2.0.vapi | 7 +++++--
vapi/metadata/Gio-2.0.metadata | 2 +-
2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index b7480ff..9f4b600 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -2256,7 +2256,7 @@ namespace GLib {
[CCode (has_construct_function = false)]
public SettingsSchemaSource.from_directory (string directory, GLib.SettingsSchemaSource?
parent, bool trusted) throws GLib.Error;
[CCode (cheader_filename = "gio/gio.h")]
- public static unowned GLib.SettingsSchemaSource get_default ();
+ public static unowned GLib.SettingsSchemaSource? get_default ();
[Version (since = "2.40")]
public void list_schemas (bool recursive, [CCode (array_length = false, array_null_terminated
= true)] out string[] non_relocatable, [CCode (array_length = false, array_null_terminated = true)] out
string[] relocatable);
public GLib.SettingsSchema? lookup (string schema_id, bool recursive);
@@ -2736,6 +2736,9 @@ namespace GLib {
public void* get_source_tag ();
[Version (since = "2.36")]
public void* get_task_data ();
+ [CCode (cname = "g_task_get_source_object")]
+ [Version (since = "2.36")]
+ public unowned GLib.Object? get_unowned_source_object ();
[Version (since = "2.36")]
public bool had_error ();
[Version (since = "2.36")]
@@ -3211,7 +3214,7 @@ namespace GLib {
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_async_result_get_type ()")]
public interface AsyncResult : GLib.Object {
- public abstract GLib.Object get_source_object ();
+ public abstract GLib.Object? get_source_object ();
public abstract void* get_user_data ();
[Version (since = "2.34")]
public abstract bool is_tagged (void* source_tag);
diff --git a/vapi/metadata/Gio-2.0.metadata b/vapi/metadata/Gio-2.0.metadata
index baa9bd2..5ab0290 100644
--- a/vapi/metadata/Gio-2.0.metadata
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -411,7 +411,7 @@ Socket
.receive_message.messages out unowned=false
.receive_message.flags ref
Task
- .get_source_object type="GLib.Object"
+ .get_source_object name="get_unowned_source_object" nullable
TlsBackend
.get_certificate_type abstract
.get_client_connection_type abstract
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]