[vala/0.34] gio-2.0: Fix constructor which wasn't detected as such



commit a7b98375620a3624416e809b86ad324d5cb1e8de
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sat Oct 8 23:32:59 2016 +0200

    gio-2.0: Fix constructor which wasn't detected as such

 vapi/gio-2.0.vapi              |    5 ++---
 vapi/metadata/Gio-2.0.metadata |    2 ++
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 8c149d3..c98c8ae 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -2319,10 +2319,9 @@ namespace GLib {
        }
        [CCode (cheader_filename = "gio/gio.h", type_id = "g_simple_proxy_resolver_get_type ()")]
        public class SimpleProxyResolver : GLib.Object, GLib.ProxyResolver {
-               [CCode (has_construct_function = false)]
-               protected SimpleProxyResolver ();
+               [CCode (has_construct_function = false, type = "GProxyResolver*")]
                [Version (since = "2.36")]
-               public static GLib.ProxyResolver @new (string? default_proxy, string? ignore_hosts);
+               public SimpleProxyResolver (string? default_proxy, string? ignore_hosts);
                [Version (since = "2.36")]
                public void set_default_proxy (string default_proxy);
                [Version (since = "2.36")]
diff --git a/vapi/metadata/Gio-2.0.metadata b/vapi/metadata/Gio-2.0.metadata
index bb705d5..305fde1 100644
--- a/vapi/metadata/Gio-2.0.metadata
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -206,6 +206,8 @@ SimpleAsyncResult
   .new skip
   .new_error skip
   .new_from_error skip
+SimpleProxyResolver
+  .new symbol_type="constructor"
 Socket
   .condition_wait throws="GLib.IOError"
   .create_source skip=false type="GLib.SocketSource"


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