[vala/0.48] gtk+-3.0: Fix ModuleInitFunc binding



commit c412ba2f3a2a67ea859aed09def38506a0f85135
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Wed Mar 31 15:03:57 2021 +0200

    gtk+-3.0: Fix ModuleInitFunc binding

 vapi/gtk+-3.0.vapi             | 2 +-
 vapi/metadata/Gtk-3.0.metadata | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/vapi/gtk+-3.0.vapi b/vapi/gtk+-3.0.vapi
index c9eca25c2..d963e7f20 100644
--- a/vapi/gtk+-3.0.vapi
+++ b/vapi/gtk+-3.0.vapi
@@ -12384,7 +12384,7 @@ namespace Gtk {
        [Version (since = "2.2")]
        public delegate void ModuleDisplayInitFunc (Gdk.Display display);
        [CCode (cheader_filename = "gtk/gtk.h", has_target = false)]
-       public delegate void ModuleInitFunc ([CCode (array_length_cname = "argc", array_length_pos = 0.5)] 
string[]? argv);
+       public delegate void ModuleInitFunc ([CCode (array_length_cname = "argc", array_length_pos = 0.5)] 
ref unowned string[]? argv);
        [CCode (cheader_filename = "gtk/gtk.h", instance_pos = 1.9)]
        public delegate void PageSetupDoneFunc (Gtk.PageSetup page_setup);
        [CCode (cheader_filename = "gtk/gtk.h", instance_pos = 2.9)]
diff --git a/vapi/metadata/Gtk-3.0.metadata b/vapi/metadata/Gtk-3.0.metadata
index 17c199cae..64019301b 100644
--- a/vapi/metadata/Gtk-3.0.metadata
+++ b/vapi/metadata/Gtk-3.0.metadata
@@ -691,6 +691,7 @@ Widget
 
 // Sure
 binding_set_by_class.object_class type="GLib.ObjectClass"
+ModuleInitFunc.argv ref unowned
 *.ref unowned
 
 // These delegate types don't have targets in the typedefs, but they


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