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



commit 9adecc1d0a3e72e32fbe86463f4ac9f36b529e57
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 eca04fe..dac4858 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -3486,7 +3486,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 8262e87..294f737 100644
--- a/vapi/metadata/Gio-2.0-custom.vala
+++ b/vapi/metadata/Gio-2.0-custom.vala
@@ -189,10 +189,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 df3b73a..cf5980e 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]