From: Rico Tzschichholz Date: Thu, 2 Jul 2020 17:50:48 +0000 (+0200) Subject: gtk4: Improve Gtk.ParamSpecExpression binding X-Git-Tag: 0.49.1~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=619bed2065dbed116bd46fe451bc8f301e19ac8c;p=thirdparty%2Fvala.git gtk4: Improve Gtk.ParamSpecExpression binding --- diff --git a/vapi/gtk4.vapi b/vapi/gtk4.vapi index 1487a01ec..97fd5f33a 100644 --- a/vapi/gtk4.vapi +++ b/vapi/gtk4.vapi @@ -9773,8 +9773,8 @@ namespace Gtk { } [CCode (cheader_filename = "gtk/gtk.h", lower_case_csuffix = "param_expression", type_id = "gtk_param_expression_get_type ()")] public class ParamSpecExpression : GLib.ParamSpec { - [CCode (has_construct_function = false)] - protected ParamSpecExpression (); + [CCode (cheader_filename = "gtk/gtk.h", cname = "gtk_param_spec_expression", has_construct_function = false, type = "GParamSpec*")] + public ParamSpecExpression (string name, string nick, string blurb, GLib.ParamFlags flags); } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_password_entry_get_type ()")] public class PasswordEntry : Gtk.Widget, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Editable { @@ -14386,8 +14386,6 @@ namespace Gtk { [CCode (cheader_filename = "gtk/gtk.h")] public static unowned Gtk.Widget native_get_for_surface (Gdk.Surface surface); [CCode (cheader_filename = "gtk/gtk.h")] - public static GLib.ParamSpec param_spec_expression (string name, string nick, string blurb, GLib.ParamFlags flags); - [CCode (cheader_filename = "gtk/gtk.h")] public static Gtk.PageSetup print_run_page_setup_dialog (Gtk.Window? parent, Gtk.PageSetup? page_setup, Gtk.PrintSettings settings); [CCode (cheader_filename = "gtk/gtk.h")] public static void print_run_page_setup_dialog_async (Gtk.Window? parent, Gtk.PageSetup? page_setup, Gtk.PrintSettings settings, [CCode (scope = "async")] Gtk.PageSetupDoneFunc done_cb); @@ -14416,9 +14414,9 @@ namespace Gtk { [CCode (cheader_filename = "gtk/gtk.h")] public static Gtk.Expression? value_dup_expression (GLib.Value value); [CCode (cheader_filename = "gtk/gtk.h")] - public static unowned Gtk.Expression? value_get_expression (GLib.Value value); + public static unowned Gtk.Expression? value_get_expression (ref GLib.Value value); [CCode (cheader_filename = "gtk/gtk.h")] - public static void value_set_expression (GLib.Value value, Gtk.Expression expression); + public static void value_set_expression (ref GLib.Value value, Gtk.Expression expression); [CCode (cheader_filename = "gtk/gtk.h")] - public static void value_take_expression (GLib.Value value, owned Gtk.Expression? expression); + public static void value_take_expression (ref GLib.Value value, owned Gtk.Expression? expression); } diff --git a/vapi/metadata/Gtk-4.0.metadata b/vapi/metadata/Gtk-4.0.metadata index ee5b6313c..22f1ee01f 100644 --- a/vapi/metadata/Gtk-4.0.metadata +++ b/vapi/metadata/Gtk-4.0.metadata @@ -233,6 +233,11 @@ CellArea .cell_get_property.value ref .get_cell_property.value ref +param_spec_expression parent="Gtk.ParamSpecExpression" name="new" symbol_type="constructor" +value_get_expression.value ref +value_set_expression.value ref +value_take_expression.value ref + // Implementation in -custom.vala BuildableParser skip