[vala/0.36] 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.36] gio-2.0: Expose g_task_get_source_object as Task.get_unowned_source_object
- Date: Thu, 26 Oct 2017 08:10:15 +0000 (UTC)
commit 93329cecdddf3d74c4871fb05e22764df16776e7
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 eb851ae..20daaa8 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -2276,7 +2276,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);
@@ -2756,6 +2756,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")]
@@ -3231,7 +3234,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 ac832e8..0971016 100644
--- a/vapi/metadata/Gio-2.0.metadata
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -403,7 +403,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]