[vala/staging] gtk4: Improve Gtk.ParamSpecExpression binding



commit 619bed2065dbed116bd46fe451bc8f301e19ac8c
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Thu Jul 2 19:50:48 2020 +0200

    gtk4: Improve Gtk.ParamSpecExpression binding

 vapi/gtk4.vapi                 | 12 +++++-------
 vapi/metadata/Gtk-4.0.metadata |  5 +++++
 2 files changed, 10 insertions(+), 7 deletions(-)
---
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
 


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