]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gtk4: Fix binding of CClosureExpression ctor
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 4 Jul 2020 07:03:30 +0000 (09:03 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 4 Jul 2020 07:12:21 +0000 (09:12 +0200)
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1024

vapi/gtk4.vapi
vapi/metadata/Gtk-4.0.metadata

index 97fd5f33ac83e5369c6182d6e3c148e54ca753df..f47f51f70d2691ccd5d89c1cab333701780d73f0 100644 (file)
@@ -6746,7 +6746,7 @@ namespace Gtk {
        [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_cclosure_expression_get_type ()")]
        public class CClosureExpression : Gtk.Expression {
                [CCode (has_construct_function = false, type = "GtkExpression*")]
-               public CClosureExpression (GLib.Type value_type, GLib.ClosureMarshal marshal, [CCode (array_length_cname = "n_params", array_length_pos = 2.5, array_length_type = "guint")] owned Gtk.Expression[] @params, owned GLib.Callback callback_func);
+               public CClosureExpression (GLib.Type value_type, GLib.ClosureMarshal marshal, [CCode (array_length_cname = "n_params", array_length_pos = 2.5, array_length_type = "guint")] owned Gtk.Expression[] @params, GLib.Callback callback_func, void* user_data, GLib.ClosureNotify? user_destroy);
        }
        [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_calendar_get_type ()")]
        public class Calendar : Gtk.Widget, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget {
index 22f1ee01f23ecbf212b2a59999723043aa91031f..0f30ffdd1a3e6f758424cdb30433aea2f1f02878 100644 (file)
@@ -185,6 +185,9 @@ RecentData
 
 // Bug #: confused girparser
 Radio*.group#property no_accessor_method
+CClosureExpression
+  .new.callback_func closure=-1 destroy=-1 owned=false
+  .new.user_destroy nullable
 
 // Skipped for G-I, but usable from Vala
 FlowBox