[vala/wip/gio-2.0: 3/3] gio-2.0: Use metadata instead of custom defintions for Initable



commit 472b28214dc11b6579485427614cfe1fe2520759
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sat Sep 24 13:19:42 2016 +0200

    gio-2.0: Use metadata instead of custom defintions for Initable

 vapi/gio-2.0.vapi                 |    2 +-
 vapi/metadata/Gio-2.0-custom.vala |    4 ----
 vapi/metadata/Gio-2.0.metadata    |    6 ++++--
 3 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 026be60..0a5c6a7 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -3480,7 +3480,7 @@ namespace GLib {
                [NoWrapper]
                public virtual bool to_tokens (GLib.GenericArray<string> tokens, out int out_version);
        }
-       [CCode (cheader_filename = "gio/gio.h")]
+       [CCode (cheader_filename = "gio/gio.h", type_id = "g_initable_get_type ()")]
        [Version (since = "2.22")]
        public interface Initable : GLib.Object {
                public abstract bool init (GLib.Cancellable? cancellable = null) throws GLib.Error;
diff --git a/vapi/metadata/Gio-2.0-custom.vala b/vapi/metadata/Gio-2.0-custom.vala
index 5e62e4a..c2bbfc7 100644
--- a/vapi/metadata/Gio-2.0-custom.vala
+++ b/vapi/metadata/Gio-2.0-custom.vala
@@ -171,10 +171,6 @@ namespace GLib {
                public virtual GLib.Icon? from_tokens (string[] tokens, int version) throws GLib.Error;
        }
 
-       public interface Initable : GLib.Object {
-               public static GLib.Object @new (GLib.Type object_type, GLib.Cancellable? cancellable = null, 
...) throws GLib.Error;
-       }
-
        [Flags]
        public enum ConverterFlags {
                [Version (deprecated_since = "vala-0.16", replacement = "ConverterFlags.NONE")]
diff --git a/vapi/metadata/Gio-2.0.metadata b/vapi/metadata/Gio-2.0.metadata
index 1145558..fb00d3b 100644
--- a/vapi/metadata/Gio-2.0.metadata
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -258,8 +258,10 @@ Icon
   .to_string nullable
   .to_tokens skip
 Initable
-  .new_valist skip=false
-  .newv type="GLib.Object"
+  .new* skip=false throws="GLib.Error"
+  .new throws="GLib.Error"
+  .new.error skip
+  .newv skip=false type="GLib.Object"
 PollableInputStream
   .create_source type="GLib.PollableSource"
   .read_nonblocking.buffer type="uint8[]" array_length_idx=1


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