[vala/0.50] gtk4: Update to 3.99.3+25a1c421



commit c91959acc5b188500ba590ca5bab177f2ae6e965
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Oct 19 20:54:21 2020 +0200

    gtk4: Update to 3.99.3+25a1c421

 vapi/Makefile.am                         |   1 +
 vapi/gtk4.vapi                           | 224 +++++++++++++++++++++++++------
 vapi/metadata/Gdk-4.0.metadata           |   2 +
 vapi/metadata/GdkWayland-4.0-custom.vala |   2 +
 vapi/metadata/GdkWayland-4.0.metadata    |   4 +
 vapi/metadata/Gsk-4.0-custom.vala        |   2 +
 vapi/metadata/Gsk-4.0.metadata           |   7 +-
 vapi/metadata/Gtk-4.0.metadata           |   2 -
 8 files changed, 200 insertions(+), 44 deletions(-)
---
diff --git a/vapi/Makefile.am b/vapi/Makefile.am
index 78978dc40..5136d5812 100644
--- a/vapi/Makefile.am
+++ b/vapi/Makefile.am
@@ -586,6 +586,7 @@ gtk+-3.0:
 gtk4:
        $(GENVAPI) --library $(srcdir)/gtk4 --pkg cairo --pkg gdk-pixbuf-2.0 --pkg gio-2.0 --pkg 
graphene-gobject-1.0 --pkg pango --pkg x11 \
                --metadatadir $(METADATADIR) \
+               $(METADATADIR)/GdkWayland-4.0-custom.vala $(GIRDIR)/GdkWayland-4.0.gir \
                $(METADATADIR)/GdkX11-4.0-custom.vala $(GIRDIR)/GdkX11-4.0.gir \
                $(METADATADIR)/Gdk-4.0-custom.vala $(GIRDIR)/Gdk-4.0.gir \
                $(METADATADIR)/Gsk-4.0-custom.vala $(GIRDIR)/Gsk-4.0.gir \
diff --git a/vapi/gtk4.vapi b/vapi/gtk4.vapi
index 225968d37..bf9a0937b 100644
--- a/vapi/gtk4.vapi
+++ b/vapi/gtk4.vapi
@@ -4560,6 +4560,67 @@ namespace Gdk {
                [CCode (cheader_filename = "gdk/gdk.h", cname = "GDK_KEY_zstroke")]
                public const uint zstroke;
        }
+       namespace Wayland {
+               [CCode (cheader_filename = "gdk/gdkwayland.h", type_id = "gdk_wayland_device_get_type ()")]
+               [GIR (name = "WaylandDevice")]
+               public class Device : Gdk.Device {
+                       [CCode (has_construct_function = false)]
+                       protected Device ();
+                       public unowned string? get_node_path ();
+               }
+               [CCode (cheader_filename = "gdk/gdkwayland.h", type_id = "gdk_wayland_display_get_type ()")]
+               [GIR (name = "WaylandDisplay")]
+               public class Display : Gdk.Display {
+                       [CCode (has_construct_function = false)]
+                       protected Display ();
+                       public unowned string? get_startup_notification_id ();
+                       public bool query_registry (string global);
+                       public void set_cursor_theme (string theme, int size);
+                       public void set_startup_notification_id (string startup_id);
+               }
+               [CCode (cheader_filename = "gdk/gdkwayland.h", type_id = "gdk_wayland_gl_context_get_type 
()")]
+               [GIR (name = "WaylandGLContext")]
+               public class GLContext : Gdk.GLContext {
+                       [CCode (has_construct_function = false)]
+                       protected GLContext ();
+               }
+               [CCode (cheader_filename = "gdk/gdkwayland.h", type_id = "gdk_wayland_monitor_get_type ()")]
+               [GIR (name = "WaylandMonitor")]
+               public class Monitor : Gdk.Monitor {
+                       [CCode (has_construct_function = false)]
+                       protected Monitor ();
+               }
+               [CCode (cheader_filename = "gdk/gdkwayland.h", type_id = "gdk_wayland_popup_get_type ()")]
+               [GIR (name = "WaylandPopup")]
+               public class Popup : Gdk.Wayland.Surface, Gdk.Popup {
+                       [CCode (has_construct_function = false)]
+                       protected Popup ();
+               }
+               [CCode (cheader_filename = "gdk/gdkwayland.h", type_id = "gdk_wayland_seat_get_type ()")]
+               [GIR (name = "WaylandSeat")]
+               public class Seat : Gdk.Seat {
+                       [CCode (has_construct_function = false)]
+                       protected Seat ();
+               }
+               [CCode (cheader_filename = "gdk/gdkwayland.h", type_id = "gdk_wayland_surface_get_type ()")]
+               [GIR (name = "WaylandSurface")]
+               public class Surface : Gdk.Surface {
+                       [CCode (has_construct_function = false)]
+                       protected Surface ();
+               }
+               [CCode (cheader_filename = "gdk/gdkwayland.h", type_id = "gdk_wayland_toplevel_get_type ()")]
+               [GIR (name = "WaylandToplevel")]
+               public class Toplevel : Gdk.Wayland.Surface, Gdk.Toplevel {
+                       [CCode (has_construct_function = false)]
+                       protected Toplevel ();
+                       public bool export_handle (owned Gdk.Wayland.ToplevelExported callback);
+                       public void set_application_id (string application_id);
+                       public bool set_transient_for_exported (string parent_handle_str);
+                       public void unexport_handle ();
+               }
+               [CCode (cheader_filename = "gdk/gdkwayland.h", instance_pos = 2.9)]
+               public delegate void ToplevelExported (Gdk.Wayland.Toplevel toplevel, string handle);
+       }
        namespace X11 {
                [CCode (cheader_filename = "gdk/gdkx.h", type_id = "gdk_x11_app_launch_context_get_type ()")]
                [GIR (name = "X11AppLaunchContext")]
@@ -4733,11 +4794,15 @@ namespace Gdk {
                public unowned Gdk.Display get_display ();
                public unowned Gdk.ContentFormats get_formats ();
                public bool is_local ();
-               public async GLib.InputStream read_async (string mime_types, int io_priority, 
GLib.Cancellable? cancellable, out unowned string out_mime_type) throws GLib.Error;
+               public async GLib.InputStream? read_async (string mime_types, int io_priority, 
GLib.Cancellable? cancellable, out unowned string out_mime_type) throws GLib.Error;
                public async string? read_text_async (GLib.Cancellable? cancellable) throws GLib.Error;
                public async Gdk.Texture? read_texture_async (GLib.Cancellable? cancellable) throws 
GLib.Error;
                public async unowned GLib.Value? read_value_async (GLib.Type type, int io_priority, 
GLib.Cancellable? cancellable) throws GLib.Error;
+               public void @set (GLib.Type type, ...);
                public bool set_content (Gdk.ContentProvider? provider);
+               public void set_text (string text);
+               public void set_texture (Gdk.Texture texture);
+               public void set_valist (GLib.Type type, va_list args);
                public void set_value (GLib.Value value);
                public async bool store_async (int io_priority, GLib.Cancellable? cancellable) throws 
GLib.Error;
                public Gdk.ContentProvider content { get; }
@@ -4783,7 +4848,7 @@ namespace Gdk {
                public unowned string[]? get_mime_types (out size_t n_mime_types);
                public bool match (Gdk.ContentFormats second);
                public GLib.Type match_gtype (Gdk.ContentFormats second);
-               public unowned string match_mime_type (Gdk.ContentFormats second);
+               public unowned string? match_mime_type (Gdk.ContentFormats second);
                public void print (GLib.StringBuilder string);
                public unowned Gdk.ContentFormats @ref ();
                public string to_string ();
@@ -4961,7 +5026,7 @@ namespace Gdk {
                public unowned string get_name ();
                public unowned Gdk.Clipboard get_primary_clipboard ();
                public bool get_setting (string name, GLib.Value value);
-               public unowned string get_startup_notification_id ();
+               public unowned string? get_startup_notification_id ();
                public bool is_closed ();
                public bool is_composited ();
                public bool is_rgba ();
@@ -5976,6 +6041,45 @@ namespace Gsk {
                [CCode (has_construct_function = false, type = "GskRenderer*")]
                public GLRenderer ();
        }
+       [CCode (cheader_filename = "gsk/gsk.h", type_id = "gsk_gl_shader_get_type ()")]
+       public class GLShader : GLib.Object {
+               [CCode (has_construct_function = false)]
+               protected GLShader ();
+               public bool compile (Gsk.Renderer renderer) throws GLib.Error;
+               public int find_uniform_by_name (string name);
+               public GLib.Bytes format_args (...);
+               public GLib.Bytes format_args_va (va_list uniforms);
+               [CCode (has_construct_function = false)]
+               public GLShader.from_bytes (GLib.Bytes sourcecode);
+               [CCode (has_construct_function = false)]
+               public GLShader.from_resource (string resource_path);
+               public bool get_arg_bool (GLib.Bytes args, int idx);
+               public float get_arg_float (GLib.Bytes args, int idx);
+               public int32 get_arg_int (GLib.Bytes args, int idx);
+               public uint32 get_arg_uint (GLib.Bytes args, int idx);
+               public void get_arg_vec2 (GLib.Bytes args, int idx, Graphene.Vec2 out_value);
+               public void get_arg_vec3 (GLib.Bytes args, int idx, Graphene.Vec3 out_value);
+               public void get_arg_vec4 (GLib.Bytes args, int idx, Graphene.Vec4 out_value);
+               public size_t get_args_size ();
+               public int get_n_textures ();
+               public int get_n_uniforms ();
+               public unowned string get_resource ();
+               public unowned GLib.Bytes get_source ();
+               public unowned string get_uniform_name (int idx);
+               public int get_uniform_offset (int idx);
+               public Gsk.GLUniformType get_uniform_type (int idx);
+               public string resource { get; construct; }
+               public GLib.Bytes source { get; construct; }
+       }
+       [CCode (cheader_filename = "gsk/gsk.h", type_id = "gsk_gl_shader_node_get_type ()")]
+       public class GLShaderNode : Gsk.RenderNode {
+               [CCode (has_construct_function = false, type = "GskRenderNode*")]
+               public GLShaderNode (Gsk.GLShader shader, Graphene.Rect bounds, GLib.Bytes args, [CCode 
(array_length_cname = "n_children", array_length_pos = 4.1, array_length_type = "guint")] Gsk.RenderNode[] 
children);
+               public unowned GLib.Bytes get_args ();
+               public unowned Gsk.RenderNode get_child (uint idx);
+               public uint get_n_children ();
+               public unowned Gsk.GLShader get_shader ();
+       }
        [CCode (cheader_filename = "gsk/gsk.h", type_id = "gsk_inset_shadow_node_get_type ()")]
        public class InsetShadowNode : Gsk.RenderNode {
                [CCode (has_construct_function = false, type = "GskRenderNode*")]
@@ -6032,6 +6136,7 @@ namespace Gsk {
        public abstract class RenderNode {
                [CCode (has_construct_function = false)]
                protected RenderNode ();
+               public static Gsk.RenderNode? deserialize (GLib.Bytes bytes, Gsk.ParseErrorFunc? error_func);
                public void draw (Cairo.Context cr);
                public Graphene.Rect get_bounds ();
                public Gsk.RenderNodeType get_node_type ();
@@ -6080,6 +6185,23 @@ namespace Gsk {
                public unowned Gsk.RenderNode get_child ();
                public unowned Gsk.RoundedRect? peek_clip ();
        }
+       [CCode (cheader_filename = "gsk/gsk.h", ref_function = "gsk_shader_args_builder_ref", type_id = 
"gsk_shader_args_builder_get_type ()", unref_function = "gsk_shader_args_builder_unref")]
+       [Compact]
+       public class ShaderArgsBuilder {
+               [CCode (has_construct_function = false)]
+               public ShaderArgsBuilder (Gsk.GLShader shader, GLib.Bytes initial_values);
+               public GLib.Bytes free_to_args ();
+               public unowned Gsk.ShaderArgsBuilder @ref ();
+               public void set_bool (int idx, bool value);
+               public void set_float (int idx, float value);
+               public void set_int (int idx, int32 value);
+               public void set_uint (int idx, uint32 value);
+               public void set_vec2 (int idx, Graphene.Vec2 value);
+               public void set_vec3 (int idx, Graphene.Vec3 value);
+               public void set_vec4 (int idx, Graphene.Vec4 value);
+               public GLib.Bytes to_args ();
+               public void unref ();
+       }
        [CCode (cheader_filename = "gsk/gsk.h", type_id = "gsk_shadow_node_get_type ()")]
        public class ShadowNode : Gsk.RenderNode {
                [CCode (has_construct_function = false, type = "GskRenderNode*")]
@@ -6114,7 +6236,7 @@ namespace Gsk {
                public bool equal (Gsk.Transform second);
                public Gsk.TransformCategory get_category ();
                [DestroysInstance]
-               public Gsk.Transform invert ();
+               public Gsk.Transform? invert ();
                [DestroysInstance]
                public Gsk.Transform matrix (Graphene.Matrix matrix);
                public static bool parse (string string, out Gsk.Transform out_transform);
@@ -6211,6 +6333,17 @@ namespace Gsk {
                BOTTOM_RIGHT,
                BOTTOM_LEFT
        }
+       [CCode (cheader_filename = "gsk/gsk.h", cprefix = "GSK_GL_UNIFORM_TYPE_", type_id = 
"gsk_gl_uniform_type_get_type ()")]
+       public enum GLUniformType {
+               NONE,
+               FLOAT,
+               INT,
+               UINT,
+               BOOL,
+               VEC2,
+               VEC3,
+               VEC4
+       }
        [CCode (cheader_filename = "gsk/gsk.h", cprefix = "GSK_", type_id = "gsk_render_node_type_get_type 
()")]
        public enum RenderNodeType {
                NOT_A_RENDER_NODE,
@@ -6236,7 +6369,8 @@ namespace Gsk {
                CROSS_FADE_NODE,
                TEXT_NODE,
                BLUR_NODE,
-               DEBUG_NODE
+               DEBUG_NODE,
+               GL_SHADER_NODE
        }
        [CCode (cheader_filename = "gsk/gsk.h", cprefix = "GSK_SCALING_FILTER_", type_id = 
"gsk_scaling_filter_get_type ()")]
        public enum ScalingFilter {
@@ -6261,6 +6395,8 @@ namespace Gsk {
                INVALID_DATA;
                public static GLib.Quark quark ();
        }
+       [CCode (cheader_filename = "gsk/gsk.h", error_pos = 1.8, instance_pos = 1.9)]
+       public delegate void ParseErrorFunc (Gtk.CssSection section) throws GLib.Error;
 }
 [CCode (cprefix = "Gtk", gir_namespace = "Gtk", gir_version = "4.0", lower_case_cprefix = "gtk_")]
 namespace Gtk {
@@ -6268,15 +6404,17 @@ namespace Gtk {
        public abstract class ATContext : GLib.Object {
                [CCode (has_construct_function = false)]
                protected ATContext ();
-               public static Gtk.ATContext? create (Gtk.AccessibleRole accessible_role, Gtk.Accessible 
accessible);
+               public static Gtk.ATContext? create (Gtk.AccessibleRole accessible_role, Gtk.Accessible 
accessible, Gdk.Display display);
                public unowned Gtk.Accessible get_accessible ();
                public Gtk.AccessibleRole get_accessible_role ();
                public Gtk.Accessible accessible { get; construct; }
                public Gtk.AccessibleRole accessible_role { get; construct; }
+               [NoAccessorMethod]
+               public Gdk.Display display { owned get; construct; }
                public signal void state_change ();
        }
        [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_about_dialog_get_type ()")]
-       public class AboutDialog : Gtk.Dialog, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, 
Gtk.Native, Gtk.Root, Gtk.ShortcutManager {
+       public class AboutDialog : Gtk.Window, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, 
Gtk.Native, Gtk.Root, Gtk.ShortcutManager {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public AboutDialog ();
                public void add_credit_section (string section_name, [CCode (array_length = false, 
array_null_terminated = true)] string[] people);
@@ -6284,20 +6422,20 @@ namespace Gtk {
                public unowned string[] get_artists ();
                [CCode (array_length = false, array_null_terminated = true)]
                public unowned string[] get_authors ();
-               public unowned string get_comments ();
-               public unowned string get_copyright ();
+               public unowned string? get_comments ();
+               public unowned string? get_copyright ();
                [CCode (array_length = false, array_null_terminated = true)]
                public unowned string[] get_documenters ();
-               public unowned string get_license ();
+               public unowned string? get_license ();
                public Gtk.License get_license_type ();
                public unowned Gdk.Paintable? get_logo ();
                public unowned string? get_logo_icon_name ();
                public unowned string get_program_name ();
-               public unowned string get_system_information ();
-               public unowned string get_translator_credits ();
-               public unowned string get_version ();
-               public unowned string get_website ();
-               public unowned string get_website_label ();
+               public unowned string? get_system_information ();
+               public unowned string? get_translator_credits ();
+               public unowned string? get_version ();
+               public unowned string? get_website ();
+               public unowned string? get_website_label ();
                public bool get_wrap_license ();
                public void set_artists ([CCode (array_length = false, array_null_terminated = true)] 
string[] artists);
                public void set_authors ([CCode (array_length = false, array_null_terminated = true)] 
string[] authors);
@@ -6671,7 +6809,7 @@ namespace Gtk {
        [CCode (cheader_filename = "gtk/gtk.h", has_type_id = false)]
        [Compact]
        public class BuildableParseContext {
-               public unowned string get_element ();
+               public unowned string? get_element ();
                public unowned GLib.GenericArray<string> get_element_stack ();
                public void get_position (out int line_number, out int char_number);
                public void* pop ();
@@ -7594,8 +7732,6 @@ namespace Gtk {
                public GLib.File file { get; set; }
                public int io_priority { get; set; }
                [NoAccessorMethod]
-               public GLib.Type item_type { get; }
-               [NoAccessorMethod]
                public bool loading { get; }
                public bool monitored { get; set; }
        }
@@ -7900,7 +8036,7 @@ namespace Gtk {
                public EntryCompletion ();
                public void complete ();
                public string? compute_prefix (string key);
-               public unowned string get_completion_prefix ();
+               public unowned string? get_completion_prefix ();
                public unowned Gtk.Widget get_entry ();
                public bool get_inline_completion ();
                public bool get_inline_selection ();
@@ -8636,6 +8772,7 @@ namespace Gtk {
                public IconTheme ();
                public void add_resource_path (string path);
                public void add_search_path (string path);
+               public unowned Gdk.Display? get_display ();
                public static unowned Gtk.IconTheme get_for_display (Gdk.Display display);
                [CCode (array_length = false, array_null_terminated = true)]
                public string[] get_icon_names ();
@@ -9512,7 +9649,7 @@ namespace Gtk {
        public class ObjectExpression : Gtk.Expression {
                [CCode (has_construct_function = false, type = "GtkExpression*")]
                public ObjectExpression (GLib.Object object);
-               public unowned GLib.Object get_object ();
+               public unowned GLib.Object? get_object ();
        }
        [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_overlay_get_type ()")]
        public class Overlay : Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget {
@@ -9730,6 +9867,7 @@ namespace Gtk {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public Popover ();
                public bool get_autohide ();
+               public bool get_cascade_popdown ();
                public unowned Gtk.Widget? get_child ();
                public bool get_has_arrow ();
                public bool get_mnemonics_visible ();
@@ -9739,6 +9877,7 @@ namespace Gtk {
                public void popdown ();
                public void popup ();
                public void set_autohide (bool autohide);
+               public void set_cascade_popdown (bool cascade_popdown);
                public void set_child (Gtk.Widget? child);
                public void set_default_widget (Gtk.Widget? widget);
                public void set_has_arrow (bool has_arrow);
@@ -9747,6 +9886,7 @@ namespace Gtk {
                public void set_pointing_to (Gdk.Rectangle rect);
                public void set_position (Gtk.PositionType position);
                public bool autohide { get; set; }
+               public bool cascade_popdown { get; set; }
                public Gtk.Widget child { get; set; }
                [NoAccessorMethod]
                public Gtk.Widget default_widget { owned get; set; }
@@ -10569,14 +10709,15 @@ namespace Gtk {
                public void append_linear_gradient (Graphene.Rect bounds, Graphene.Point start_point, 
Graphene.Point end_point, [CCode (array_length_cname = "n_stops", array_length_pos = 4.1, array_length_type = 
"gsize")] Gsk.ColorStop[] stops);
                public void append_node (Gsk.RenderNode node);
                public void append_outset_shadow (Gsk.RoundedRect outline, Gdk.RGBA color, float dx, float 
dy, float spread, float blur_radius);
-               public void append_radial_gradient (Graphene.Rect bounds, Graphene.Point center, float 
hradius, float vradius, float start, float end, [CCode (array_length_cname = "n_stops", array_length_pos = 
7.1, array_length_type = "gsize", type = "const GskColorStop*")] Gsk.ColorStop[] stops);
+               public void append_radial_gradient (Graphene.Rect bounds, Graphene.Point center, float 
hradius, float vradius, float start, float end, [CCode (array_length_cname = "n_stops", array_length_pos = 
7.1, array_length_type = "gsize")] Gsk.ColorStop[] stops);
                public void append_repeating_linear_gradient (Graphene.Rect bounds, Graphene.Point 
start_point, Graphene.Point end_point, [CCode (array_length_cname = "n_stops", array_length_pos = 4.1, 
array_length_type = "gsize")] Gsk.ColorStop[] stops);
-               public void append_repeating_radial_gradient (Graphene.Rect bounds, Graphene.Point center, 
float hradius, float vradius, float start, float end, [CCode (array_length_cname = "n_stops", 
array_length_pos = 7.1, array_length_type = "gsize", type = "const GskColorStop*")] Gsk.ColorStop[] stops);
+               public void append_repeating_radial_gradient (Graphene.Rect bounds, Graphene.Point center, 
float hradius, float vradius, float start, float end, [CCode (array_length_cname = "n_stops", 
array_length_pos = 7.1, array_length_type = "gsize")] Gsk.ColorStop[] stops);
                public void append_texture (Gdk.Texture texture, Graphene.Rect bounds);
                [DestroysInstance]
                public Gsk.RenderNode free_to_node ();
                [DestroysInstance]
                public Gdk.Paintable free_to_paintable (Graphene.Size? size);
+               public void gl_shader_pop_texture ();
                public void perspective (float depth);
                public void pop ();
                public void push_blend (Gsk.BlendMode blend_mode);
@@ -10585,6 +10726,7 @@ namespace Gtk {
                public void push_color_matrix (Graphene.Matrix color_matrix, Graphene.Vec4 color_offset);
                public void push_cross_fade (double progress);
                public void push_debug (string message, ...);
+               public void push_gl_shader (Gsk.GLShader shader, Graphene.Rect bounds, owned GLib.Bytes 
take_args);
                public void push_opacity (double opacity);
                public void push_repeat (Graphene.Rect bounds, Graphene.Rect? child_bounds);
                public void push_rounded_clip (Gsk.RoundedRect bounds);
@@ -10638,6 +10780,7 @@ namespace Gtk {
                public SpinButton (Gtk.Adjustment? adjustment, double climb_rate, uint digits);
                public void configure (Gtk.Adjustment? adjustment, double climb_rate, uint digits);
                public unowned Gtk.Adjustment get_adjustment ();
+               public double get_climb_rate ();
                public uint get_digits ();
                public void get_increments (out double step, out double page);
                public bool get_numeric ();
@@ -10648,6 +10791,7 @@ namespace Gtk {
                public int get_value_as_int ();
                public bool get_wrap ();
                public void set_adjustment (Gtk.Adjustment adjustment);
+               public void set_climb_rate (double climb_rate);
                public void set_digits (uint digits);
                public void set_increments (double step, double page);
                public void set_numeric (bool numeric);
@@ -10661,7 +10805,6 @@ namespace Gtk {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public SpinButton.with_range (double min, double max, double step);
                public Gtk.Adjustment adjustment { get; set; }
-               [NoAccessorMethod]
                public double climb_rate { get; set; }
                public uint digits { get; set; }
                public bool numeric { get; set; }
@@ -10723,7 +10866,7 @@ namespace Gtk {
                public string visible_child_name { get; set; }
        }
        [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_stack_page_get_type ()")]
-       public class StackPage : GLib.Object {
+       public class StackPage : GLib.Object, Gtk.Accessible {
                [CCode (has_construct_function = false)]
                protected StackPage ();
                public unowned Gtk.Widget get_child ();
@@ -10859,8 +11002,6 @@ namespace Gtk {
                public void render_handle (Cairo.Context cr, double x, double y, double width, double height);
                [CCode (cheader_filename = "gtk/gtk.h", cname = "gtk_render_icon")]
                public void render_icon (Cairo.Context cr, Gdk.Texture texture, double x, double y);
-               [CCode (cheader_filename = "gtk/gtk.h", cname = "gtk_render_insertion_cursor")]
-               public void render_insertion_cursor (Cairo.Context cr, double x, double y, Pango.Layout 
layout, int index, Pango.Direction direction);
                [CCode (cheader_filename = "gtk/gtk.h", cname = "gtk_render_layout")]
                public void render_layout (Cairo.Context cr, double x, double y, Pango.Layout layout);
                [CCode (cheader_filename = "gtk/gtk.h", cname = "gtk_render_line")]
@@ -10895,6 +11036,7 @@ namespace Gtk {
                public bool get_activates_default ();
                public unowned Pango.AttrList? get_attributes ();
                public unowned Gtk.EntryBuffer get_buffer ();
+               public bool get_enable_emoji_completion ();
                public unowned GLib.MenuModel get_extra_menu ();
                public Gtk.InputHints get_input_hints ();
                public Gtk.InputPurpose get_input_purpose ();
@@ -10902,13 +11044,16 @@ namespace Gtk {
                public int get_max_length ();
                public bool get_overwrite_mode ();
                public unowned string? get_placeholder_text ();
+               public bool get_propagate_text_width ();
                public unowned Pango.TabArray? get_tabs ();
                public uint16 get_text_length ();
+               public bool get_truncate_multiline ();
                public bool get_visibility ();
                public bool grab_focus_without_selecting ();
                public void set_activates_default (bool activates);
                public void set_attributes (Pango.AttrList? attrs);
                public void set_buffer (Gtk.EntryBuffer buffer);
+               public void set_enable_emoji_completion (bool enable_emoji_completion);
                public void set_extra_menu (GLib.MenuModel? model);
                public void set_input_hints (Gtk.InputHints hints);
                public void set_input_purpose (Gtk.InputPurpose purpose);
@@ -10916,7 +11061,9 @@ namespace Gtk {
                public void set_max_length (int length);
                public void set_overwrite_mode (bool overwrite);
                public void set_placeholder_text (string? text);
+               public void set_propagate_text_width (bool propagate_text_width);
                public void set_tabs (Pango.TabArray? tabs);
+               public void set_truncate_multiline (bool truncate_multiline);
                public void set_visibility (bool visible);
                public void unset_invisible_char ();
                [CCode (has_construct_function = false, type = "GtkWidget*")]
@@ -10924,7 +11071,6 @@ namespace Gtk {
                public bool activates_default { get; set; }
                public Pango.AttrList attributes { get; set; }
                public Gtk.EntryBuffer buffer { get; set construct; }
-               [NoAccessorMethod]
                public bool enable_emoji_completion { get; set; }
                public GLib.MenuModel extra_menu { get; set; }
                [NoAccessorMethod]
@@ -10937,12 +11083,10 @@ namespace Gtk {
                public int max_length { get; set; }
                public bool overwrite_mode { get; set; }
                public string placeholder_text { get; set; }
-               [NoAccessorMethod]
                public bool propagate_text_width { get; set; }
                [NoAccessorMethod]
                public int scroll_offset { get; }
                public Pango.TabArray tabs { get; set; }
-               [NoAccessorMethod]
                public bool truncate_multiline { get; set; }
                public bool visibility { get; set; }
                public signal void activate ();
@@ -10990,9 +11134,9 @@ namespace Gtk {
                public bool get_has_selection ();
                public unowned Gtk.TextMark get_insert ();
                public void get_iter_at_child_anchor (out Gtk.TextIter iter, Gtk.TextChildAnchor anchor);
-               public void get_iter_at_line (out Gtk.TextIter iter, int line_number);
-               public void get_iter_at_line_index (out Gtk.TextIter iter, int line_number, int byte_index);
-               public void get_iter_at_line_offset (out Gtk.TextIter iter, int line_number, int char_offset);
+               public bool get_iter_at_line (out Gtk.TextIter iter, int line_number);
+               public bool get_iter_at_line_index (out Gtk.TextIter iter, int line_number, int byte_index);
+               public bool get_iter_at_line_offset (out Gtk.TextIter iter, int line_number, int char_offset);
                public void get_iter_at_mark (out Gtk.TextIter iter, Gtk.TextMark mark);
                public void get_iter_at_offset (out Gtk.TextIter iter, int char_offset);
                public int get_line_count ();
@@ -12240,7 +12384,7 @@ namespace Gtk {
        public class WindowControls : Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public WindowControls (Gtk.PackType side);
-               public unowned string get_decoration_layout ();
+               public unowned string? get_decoration_layout ();
                public bool get_empty ();
                public Gtk.PackType get_side ();
                public void set_decoration_layout (string? layout);
@@ -12307,17 +12451,19 @@ namespace Gtk {
        [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_buildable_get_type ()")]
        public interface Buildable : GLib.Object {
                [NoWrapper]
-               public abstract void add_child (Gtk.Builder builder, GLib.Object child, string type);
+               public abstract void add_child (Gtk.Builder builder, GLib.Object child, string? type);
                [NoWrapper]
-               public abstract void custom_finished (Gtk.Builder builder, GLib.Object child, string tagname, 
void* data);
+               public abstract void custom_finished (Gtk.Builder builder, GLib.Object? child, string 
tagname, void* data);
                [NoWrapper]
-               public abstract void custom_tag_end (Gtk.Builder builder, GLib.Object child, string tagname, 
void* data);
+               public abstract void custom_tag_end (Gtk.Builder builder, GLib.Object? child, string tagname, 
void* data);
                [NoWrapper]
-               public abstract bool custom_tag_start (Gtk.Builder builder, GLib.Object child, string 
tagname, Gtk.BuildableParser parser, void* data);
+               public abstract bool custom_tag_start (Gtk.Builder builder, GLib.Object? child, string 
tagname, out Gtk.BuildableParser parser, out void* data);
                public unowned string get_buildable_id ();
                [NoWrapper]
                public abstract unowned string get_id ();
                [NoWrapper]
+               public abstract unowned GLib.Object get_internal_child (Gtk.Builder builder, string 
childname);
+               [NoWrapper]
                public abstract void parser_finished (Gtk.Builder builder);
                [NoWrapper]
                public abstract void set_buildable_property (Gtk.Builder builder, string name, GLib.Value 
value);
@@ -12363,7 +12509,6 @@ namespace Gtk {
                public bool get_use_alpha ();
                public abstract void set_rgba (Gdk.RGBA color);
                public void set_use_alpha (bool use_alpha);
-               [ConcreteAccessor]
                public abstract Gdk.RGBA rgba { get; set; }
                [ConcreteAccessor]
                public abstract bool use_alpha { get; set; }
@@ -13274,7 +13419,8 @@ namespace Gtk {
                INHIBIT_OSK,
                VERTICAL_WRITING,
                EMOJI,
-               NO_EMOJI
+               NO_EMOJI,
+               PRIVATE
        }
        [CCode (cheader_filename = "gtk/gtk.h", cprefix = "GTK_INPUT_PURPOSE_", type_id = 
"gtk_input_purpose_get_type ()")]
        public enum InputPurpose {
diff --git a/vapi/metadata/Gdk-4.0.metadata b/vapi/metadata/Gdk-4.0.metadata
index 81ece5cb1..6dfbc3b74 100644
--- a/vapi/metadata/Gdk-4.0.metadata
+++ b/vapi/metadata/Gdk-4.0.metadata
@@ -6,6 +6,8 @@ KEY_* name="KEY_(.+)" type="uint" parent="Gdk.Key"
 // Event API
 events_*#function parent="Gdk.Event" name="events_(.+)"
 
+Clipboard
+        .set* skip=false
 Cursor abstract=false
 Device
         .get_surface_at_position skip=false
diff --git a/vapi/metadata/GdkWayland-4.0-custom.vala b/vapi/metadata/GdkWayland-4.0-custom.vala
new file mode 100644
index 000000000..5e1dcef3c
--- /dev/null
+++ b/vapi/metadata/GdkWayland-4.0-custom.vala
@@ -0,0 +1,2 @@
+namespace Gdk {
+}
diff --git a/vapi/metadata/GdkWayland-4.0.metadata b/vapi/metadata/GdkWayland-4.0.metadata
new file mode 100644
index 000000000..7e58c22ac
--- /dev/null
+++ b/vapi/metadata/GdkWayland-4.0.metadata
@@ -0,0 +1,4 @@
+* cheader_filename = "gdk/gdkwayland.h"
+
+//wayland_* name="wayland_(.+)" parent="Gdk.Wayland"
+Wayland* name="Wayland(.+)" parent="Gdk.Wayland"
diff --git a/vapi/metadata/Gsk-4.0-custom.vala b/vapi/metadata/Gsk-4.0-custom.vala
index c76e261f2..bbab18d72 100644
--- a/vapi/metadata/Gsk-4.0-custom.vala
+++ b/vapi/metadata/Gsk-4.0-custom.vala
@@ -1,2 +1,4 @@
 namespace Gsk {
+       [CCode (error_pos = 1.8, instance_pos = 1.9)]
+       public delegate void ParseErrorFunc (Gtk.CssSection section) throws GLib.Error;
 }
diff --git a/vapi/metadata/Gsk-4.0.metadata b/vapi/metadata/Gsk-4.0.metadata
index 50e411fb6..595ec73c1 100644
--- a/vapi/metadata/Gsk-4.0.metadata
+++ b/vapi/metadata/Gsk-4.0.metadata
@@ -6,6 +6,7 @@ Renderer
        .new_for_surface symbol_type="function" name="for_surface"
 BorderNode
        .peek_widths symbol_type="method" array
-RadialGradientNode
-       .*#function symbol_type="method" instance_idx=0
-       .peek_color_stops array array_length_idx=0
+GLShader
+       .format_args* skip=false
+RenderNode
+       .deserialize skip=false
diff --git a/vapi/metadata/Gtk-4.0.metadata b/vapi/metadata/Gtk-4.0.metadata
index 20940b6b7..9daf2d386 100644
--- a/vapi/metadata/Gtk-4.0.metadata
+++ b/vapi/metadata/Gtk-4.0.metadata
@@ -333,8 +333,6 @@ Notebook
 PrintOperation
   .create_custom_widget skip=false
 Snapshot
-  .append*_radial_gradient.stops array
-  .append*_radial_gradient.stops array_length_idx=7
   .push_shadow.shadow array array_length_idx=1
 
 // Not completely sure


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