From: Rico Tzschichholz Date: Mon, 18 May 2020 10:37:57 +0000 (+0200) Subject: gtk4: Update to 3.98.3+028942c8 X-Git-Tag: 0.49.1~129 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c60585b6d42e8084915cc40ac47608790932672;p=thirdparty%2Fvala.git gtk4: Update to 3.98.3+028942c8 --- diff --git a/vapi/gtk4.vapi b/vapi/gtk4.vapi index 09c02050a..0241b1adc 100644 --- a/vapi/gtk4.vapi +++ b/vapi/gtk4.vapi @@ -4587,7 +4587,7 @@ namespace Gdk { public void error_trap_pop_ignored (); public void error_trap_push (); public static bool get_glx_version (Gdk.Display display, out int major, out int minor); - public static unowned Gdk.Monitor get_primary_monitor (Gdk.Display display); + public static unowned Gdk.Monitor get_primary_monitor (Gdk.Display self); public static unowned Gdk.X11.Screen get_screen (Gdk.Display display); public unowned string get_startup_notification_id (); public uint32 get_user_time (); @@ -4673,8 +4673,6 @@ namespace Gdk { [CCode (cheader_filename = "gdk/gdkx.h")] public static unowned string get_xatom_name_for_display (Gdk.X11.Display display, X.Atom xatom); [CCode (cheader_filename = "gdk/gdkx.h")] - public static void register_standard_event_type (Gdk.X11.Display display, int event_base, int n_events); - [CCode (cheader_filename = "gdk/gdkx.h")] public static void set_sm_client_id (string? sm_client_id); } [CCode (cheader_filename = "gdk/gdk.h", type_id = "gdk_app_launch_context_get_type ()")] @@ -4950,11 +4948,10 @@ namespace Gdk { public unowned Gdk.Clipboard get_clipboard (); public static unowned Gdk.Display? get_default (); public unowned Gdk.Surface get_default_group (); - public unowned Gdk.Seat get_default_seat (); + public unowned Gdk.Seat? get_default_seat (); public Gdk.Event? get_event (); - public unowned Gdk.Monitor? get_monitor (int monitor_num); public unowned Gdk.Monitor get_monitor_at_surface (Gdk.Surface surface); - public int get_n_monitors (); + public unowned GLib.ListModel get_monitors (); public unowned string get_name (); public unowned Gdk.Clipboard get_primary_clipboard (); public bool get_setting (string name, GLib.Value value); @@ -4971,15 +4968,14 @@ namespace Gdk { public Gdk.Event? peek_event (); public void put_event (Gdk.Event event); public bool supports_input_shapes (); - public bool supports_shapes (); public void sync (); [NoAccessorMethod] public bool composited { get; } [NoAccessorMethod] + public bool input_shapes { get; } + [NoAccessorMethod] public bool rgba { get; } public signal void closed (bool is_error); - public signal void monitor_added (Gdk.Monitor monitor); - public signal void monitor_removed (Gdk.Monitor monitor); public signal void opened (); public signal void seat_added (Gdk.Seat seat); public signal void seat_removed (Gdk.Seat seat); @@ -5001,7 +4997,7 @@ namespace Gdk { public abstract class Drag : GLib.Object { [CCode (has_construct_function = false)] protected Drag (); - public static Gdk.Drag? begin (Gdk.Surface surface, Gdk.Device device, Gdk.ContentProvider content, Gdk.DragAction actions, int dx, int dy); + public static Gdk.Drag? begin (Gdk.Surface surface, Gdk.Device device, Gdk.ContentProvider content, Gdk.DragAction actions, double dx, double dy); public void drop_done (bool success); public Gdk.DragAction get_actions (); public unowned Gdk.ContentProvider get_content (); @@ -5292,8 +5288,6 @@ namespace Gdk { [CCode (has_construct_function = false)] protected Surface (); public void beep (); - public void begin_move_drag (Gdk.Device device, int button, int x, int y, uint32 timestamp); - public void begin_resize_drag (Gdk.SurfaceEdge edge, Gdk.Device device, int button, int x, int y, uint32 timestamp); public Gdk.CairoContext create_cairo_context (); public Gdk.GLContext create_gl_context () throws GLib.Error; public Cairo.Surface create_similar_surface (Cairo.Content content, int width, int height); @@ -5313,7 +5307,6 @@ namespace Gdk { public int get_width (); public void hide (); public bool is_destroyed (); - public bool is_viewable (); [CCode (has_construct_function = false)] public Surface.popup (Gdk.Surface parent, bool autohide); public void queue_expose (); @@ -5440,6 +5433,8 @@ namespace Gdk { } [CCode (cheader_filename = "gdk/gdk.h", type_cname = "GdkToplevelInterface", type_id = "gdk_toplevel_get_type ()")] public interface Toplevel : Gdk.Surface { + public void begin_move (Gdk.Device device, int button, double x, double y, uint32 timestamp); + public void begin_resize (Gdk.SurfaceEdge edge, Gdk.Device? device, int button, double x, double y, uint32 timestamp); public void focus (uint32 timestamp); public Gdk.SurfaceState get_state (); public void inhibit_system_shortcuts (Gdk.Event? event); @@ -6388,13 +6383,14 @@ namespace Gtk { public Gtk.Widget widget { get; set; } } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_action_bar_get_type ()")] - public class ActionBar : Gtk.Container, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget { + public class ActionBar : Gtk.Widget, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget { [CCode (has_construct_function = false, type = "GtkWidget*")] public ActionBar (); public unowned Gtk.Widget? get_center_widget (); public bool get_revealed (); public void pack_end (Gtk.Widget child); public void pack_start (Gtk.Widget child); + public void remove (Gtk.Widget child); public void set_center_widget (Gtk.Widget? center_widget); public void set_revealed (bool revealed); public bool revealed { get; set; } @@ -6532,7 +6528,6 @@ namespace Gtk { [NoAccessorMethod] public bool register_session { get; set; } [NoAccessorMethod] - [Version (since = "3.24")] public bool screensaver_active { get; } public signal void query_end (); public virtual signal void window_added (Gtk.Window window); @@ -6634,13 +6629,16 @@ namespace Gtk { protected BooleanCellAccessible (); } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_box_get_type ()")] - public class Box : Gtk.Container, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Orientable { + public class Box : Gtk.Widget, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Orientable { [CCode (has_construct_function = false, type = "GtkWidget*")] public Box (Gtk.Orientation orientation, int spacing); + public void append (Gtk.Widget child); public Gtk.BaselinePosition get_baseline_position (); public bool get_homogeneous (); public int get_spacing (); public void insert_child_after (Gtk.Widget child, Gtk.Widget? sibling); + public void prepend (Gtk.Widget child); + public void remove (Gtk.Widget child); public void reorder_child_after (Gtk.Widget child, Gtk.Widget? sibling); public void set_baseline_position (Gtk.BaselinePosition position); public void set_homogeneous (bool homogeneous); @@ -7416,28 +7414,6 @@ namespace Gtk { [CCode (has_construct_function = false)] protected ConstraintLayoutChild (); } - [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_container_get_type ()")] - public abstract class Container : Gtk.Widget, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget { - [CCode (has_construct_function = false)] - protected Container (); - public virtual GLib.Type child_type (); - public virtual void forall (Gtk.Callback callback); - public void @foreach (Gtk.Callback callback); - public GLib.List get_children (); - [HasEmitter] - public virtual signal void add (Gtk.Widget widget); - [HasEmitter] - public virtual signal void remove (Gtk.Widget widget); - } - [CCode (cheader_filename = "gtk/gtk.h,gtk/gtk-a11y.h", type_id = "gtk_container_accessible_get_type ()")] - public class ContainerAccessible : Gtk.WidgetAccessible, Atk.Component { - [CCode (has_construct_function = false)] - protected ContainerAccessible (); - [NoWrapper] - public virtual int add_gtk (Gtk.Widget widget, void* data); - [NoWrapper] - public virtual int remove_gtk (Gtk.Widget widget, void* data); - } [CCode (cheader_filename = "gtk/gtk.h,gtk/gtk-a11y.h", type_id = "gtk_container_cell_accessible_get_type ()")] public class ContainerCellAccessible : Gtk.CellAccessible, Atk.Action, Atk.Component, Atk.TableCell { [CCode (has_construct_function = false)] @@ -7497,7 +7473,6 @@ namespace Gtk { public unowned Gtk.HeaderBar get_header_bar (); public int get_response_for_widget (Gtk.Widget widget); public unowned Gtk.Widget? get_widget_for_response (int response_id); - public int run (); public void set_default_response (int response_id); public void set_response_sensitive (int response_id, bool setting); [CCode (has_construct_function = false, type = "GtkWidget*")] @@ -7600,7 +7575,7 @@ namespace Gtk { public void set_formats (Gdk.ContentFormats? formats); public Gdk.DragAction actions { get; set; } public Gdk.ContentFormats formats { owned get; set; } - public signal bool accept (Gdk.Drop object); + public signal bool accept (Gdk.Drop drop); public signal Gdk.DragAction drag_enter (Gdk.Drop drop, double x, double y); public signal void drag_leave (Gdk.Drop drop); public signal Gdk.DragAction drag_motion (Gdk.Drop drop, double x, double y); @@ -7898,15 +7873,17 @@ namespace Gtk { public signal void scroll_end (); } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_expander_get_type ()")] - public class Expander : Gtk.Container, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget { + public class Expander : Gtk.Widget, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget { [CCode (has_construct_function = false, type = "GtkWidget*")] public Expander (string? label); + public unowned Gtk.Widget? get_child (); public bool get_expanded (); public unowned string? get_label (); public unowned Gtk.Widget? get_label_widget (); public bool get_resize_toplevel (); public bool get_use_markup (); public bool get_use_underline (); + public void set_child (Gtk.Widget? child); public void set_expanded (bool expanded); public void set_label (string? label); public void set_label_widget (Gtk.Widget? label_widget); @@ -7915,6 +7892,7 @@ namespace Gtk { public void set_use_underline (bool use_underline); [CCode (has_construct_function = false, type = "GtkWidget*")] public Expander.with_mnemonic (string? label); + public Gtk.Widget child { get; set; } public bool expanded { get; set construct; } public string label { get; set construct; } public Gtk.Widget label_widget { get; set; } @@ -7924,7 +7902,7 @@ namespace Gtk { public signal void activate (); } [CCode (cheader_filename = "gtk/gtk.h,gtk/gtk-a11y.h", type_id = "gtk_expander_accessible_get_type ()")] - public class ExpanderAccessible : Gtk.ContainerAccessible, Atk.Action, Atk.Component { + public class ExpanderAccessible : Gtk.WidgetAccessible, Atk.Action, Atk.Component { [CCode (has_construct_function = false)] protected ExpanderAccessible (); } @@ -8031,13 +8009,14 @@ namespace Gtk { public GLib.ListModel model { get; construct; } } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_fixed_get_type ()")] - public class Fixed : Gtk.Container, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget { + public class Fixed : Gtk.Widget, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget { [CCode (has_construct_function = false, type = "GtkWidget*")] public Fixed (); public void get_child_position (Gtk.Widget widget, out int x, out int y); public unowned Gsk.Transform? get_child_transform (Gtk.Widget widget); public void move (Gtk.Widget widget, int x, int y); public void put (Gtk.Widget widget, int x, int y); + public void remove (Gtk.Widget widget); public void set_child_transform (Gtk.Widget widget, Gsk.Transform? transform); } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_fixed_layout_get_type ()")] @@ -8065,7 +8044,7 @@ namespace Gtk { public GLib.ListModel model { get; set; } } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_flow_box_get_type ()")] - public class FlowBox : Gtk.Container, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Orientable { + public class FlowBox : Gtk.Widget, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Orientable { [CCode (has_construct_function = false, type = "GtkWidget*")] public FlowBox (); public void bind_model (GLib.ListModel? model, owned Gtk.FlowBoxCreateWidgetFunc? create_widget_func); @@ -8082,6 +8061,7 @@ namespace Gtk { public void insert (Gtk.Widget widget, int position); public void invalidate_filter (); public void invalidate_sort (); + public void remove (Gtk.Widget widget); public void select_child (Gtk.FlowBoxChild child); public void selected_foreach (Gtk.FlowBoxForeachFunc func); public void set_activate_on_single_click (bool single); @@ -8116,7 +8096,7 @@ namespace Gtk { public signal void unselect_all (); } [CCode (cheader_filename = "gtk/gtk.h,gtk/gtk-a11y.h", type_id = "gtk_flow_box_accessible_get_type ()")] - public class FlowBoxAccessible : Gtk.ContainerAccessible, Atk.Component, Atk.Selection { + public class FlowBoxAccessible : Gtk.WidgetAccessible, Atk.Component, Atk.Selection { [CCode (has_construct_function = false)] protected FlowBoxAccessible (); } @@ -8341,7 +8321,7 @@ namespace Gtk { public signal void scale_changed (double scale); } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_grid_get_type ()")] - public class Grid : Gtk.Container, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Orientable { + public class Grid : Gtk.Widget, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Orientable { [CCode (has_construct_function = false, type = "GtkWidget*")] public Grid (); public void attach (Gtk.Widget child, int left, int top, int width = 1, int height = 1); @@ -8357,6 +8337,7 @@ namespace Gtk { public void insert_next_to (Gtk.Widget sibling, Gtk.PositionType side); public void insert_row (int position); public void query_child (Gtk.Widget child, out int left, out int top, out int width, out int height); + public void remove (Gtk.Widget child); public void remove_column (int position); public void remove_row (int position); public void set_baseline_row (int row); @@ -8411,7 +8392,7 @@ namespace Gtk { public int top_attach { get; set; } } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_header_bar_get_type ()")] - public class HeaderBar : Gtk.Container, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget { + public class HeaderBar : Gtk.Widget, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget { [CCode (has_construct_function = false, type = "GtkWidget*")] public HeaderBar (); public unowned string get_decoration_layout (); @@ -8419,6 +8400,7 @@ namespace Gtk { public unowned Gtk.Widget? get_title_widget (); public void pack_end (Gtk.Widget child); public void pack_start (Gtk.Widget child); + public void remove (Gtk.Widget child); public void set_decoration_layout (string? layout); public void set_show_title_buttons (bool setting); public void set_title_widget (Gtk.Widget? title_widget); @@ -8513,7 +8495,7 @@ namespace Gtk { public signal void changed (); } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_icon_view_get_type ()")] - public class IconView : Gtk.Container, Atk.Implementor, Gtk.Buildable, Gtk.CellLayout, Gtk.ConstraintTarget, Gtk.Scrollable { + public class IconView : Gtk.Widget, Atk.Implementor, Gtk.Buildable, Gtk.CellLayout, Gtk.ConstraintTarget, Gtk.Scrollable { [CCode (has_construct_function = false, type = "GtkWidget*")] public IconView (); public Gdk.Paintable create_drag_icon (Gtk.TreePath path); @@ -8608,7 +8590,7 @@ namespace Gtk { public signal void unselect_all (); } [CCode (cheader_filename = "gtk/gtk.h,gtk/gtk-a11y.h", type_id = "gtk_icon_view_accessible_get_type ()")] - public class IconViewAccessible : Gtk.ContainerAccessible, Atk.Component, Atk.Selection { + public class IconViewAccessible : Gtk.WidgetAccessible, Atk.Component, Atk.Selection { [CCode (has_construct_function = false)] protected IconViewAccessible (); } @@ -8670,15 +8652,18 @@ namespace Gtk { protected ImageCellAccessible (); } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_info_bar_get_type ()")] - public class InfoBar : Gtk.Container, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget { + public class InfoBar : Gtk.Widget, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget { [CCode (has_construct_function = false, type = "GtkWidget*")] public InfoBar (); public void add_action_widget (Gtk.Widget child, int response_id); public unowned Gtk.Button add_button (string button_text, int response_id); public void add_buttons (...); + public new void add_child (Gtk.Widget widget); public Gtk.MessageType get_message_type (); public bool get_revealed (); public bool get_show_close_button (); + public void remove_action_widget (Gtk.Widget widget); + public void remove_child (Gtk.Widget widget); public void set_default_response (int response_id); public void set_message_type (Gtk.MessageType message_type); public void set_response_sensitive (int response_id, bool setting); @@ -8857,7 +8842,7 @@ namespace Gtk { protected LinkButtonAccessible (); } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_list_box_get_type ()")] - public class ListBox : Gtk.Container, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget { + public class ListBox : Gtk.Widget, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget { [CCode (has_construct_function = false, type = "GtkWidget*")] public ListBox (); public void bind_model (GLib.ListModel? model, owned Gtk.ListBoxCreateWidgetFunc? create_widget_func); @@ -8876,6 +8861,7 @@ namespace Gtk { public void invalidate_headers (); public void invalidate_sort (); public void prepend (Gtk.Widget child); + public void remove (Gtk.Widget child); public void select_row (Gtk.ListBoxRow? row); public void selected_foreach (Gtk.ListBoxForeachFunc func); public void set_activate_on_single_click (bool single); @@ -8904,7 +8890,7 @@ namespace Gtk { public signal void unselect_all (); } [CCode (cheader_filename = "gtk/gtk.h,gtk/gtk-a11y.h", type_id = "gtk_list_box_accessible_get_type ()")] - public class ListBoxAccessible : Gtk.ContainerAccessible, Atk.Component, Atk.Selection { + public class ListBoxAccessible : Gtk.WidgetAccessible, Atk.Component, Atk.Selection { [CCode (has_construct_function = false)] protected ListBoxAccessible (); } @@ -9109,7 +9095,7 @@ namespace Gtk { public void set_menu_model (GLib.MenuModel? menu_model); public void set_popover (Gtk.Widget? popover); public void set_use_underline (bool use_underline); - public Gtk.Container align_widget { get; set; } + public Gtk.Widget align_widget { get; set; } public Gtk.ArrowType direction { get; set; } public bool has_frame { get; set; } public string icon_name { get; set; } @@ -9194,7 +9180,6 @@ namespace Gtk { public unowned Gtk.Window? get_transient_for (); public bool get_visible (); public virtual void hide (); - public int run (); public void set_modal (bool modal); public void set_title (string? title); public void set_transient_for (Gtk.Window? parent); @@ -9220,7 +9205,7 @@ namespace Gtk { public GLib.ListModel model { get; construct; } } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_notebook_get_type ()")] - public class Notebook : Gtk.Container, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget { + public class Notebook : Gtk.Widget, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget { [CCode (has_construct_function = false, type = "GtkWidget*")] public Notebook (); public int append_page (Gtk.Widget child, Gtk.Widget? tab_label = null); @@ -9288,7 +9273,7 @@ namespace Gtk { public signal void switch_page (Gtk.Widget page, uint page_num); } [CCode (cheader_filename = "gtk/gtk.h,gtk/gtk-a11y.h", type_id = "gtk_notebook_accessible_get_type ()")] - public class NotebookAccessible : Gtk.ContainerAccessible, Atk.Component, Atk.Selection { + public class NotebookAccessible : Gtk.WidgetAccessible, Atk.Component, Atk.Selection { [CCode (has_construct_function = false)] protected NotebookAccessible (); } @@ -9391,19 +9376,26 @@ namespace Gtk { public void to_key_file (GLib.KeyFile key_file, string? group_name); } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_paned_get_type ()")] - public class Paned : Gtk.Container, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Orientable { + public class Paned : Gtk.Widget, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Orientable { [CCode (has_construct_function = false, type = "GtkWidget*")] public Paned (Gtk.Orientation orientation); - public void add1 (Gtk.Widget child); - public void add2 (Gtk.Widget child); - public unowned Gtk.Widget? get_child1 (); - public unowned Gtk.Widget? get_child2 (); + public unowned Gtk.Widget? get_end_child (); public int get_position (); + public bool get_resize_end_child (); + public bool get_resize_start_child (); + public bool get_shrink_end_child (); + public bool get_shrink_start_child (); + public unowned Gtk.Widget? get_start_child (); public bool get_wide_handle (); - public void pack1 (Gtk.Widget child, bool resize, bool shrink); - public void pack2 (Gtk.Widget child, bool resize, bool shrink); + public void set_end_child (Gtk.Widget child); public void set_position (int position); + public void set_resize_end_child (bool resize); + public void set_resize_start_child (bool resize); + public void set_shrink_end_child (bool resize); + public void set_shrink_start_child (bool resize); + public void set_start_child (Gtk.Widget child); public void set_wide_handle (bool wide); + public Gtk.Widget end_child { get; set; } [NoAccessorMethod] public int max_position { get; } [NoAccessorMethod] @@ -9411,14 +9403,11 @@ namespace Gtk { public int position { get; set; } [NoAccessorMethod] public bool position_set { get; set; } - [NoAccessorMethod] - public bool resize_child1 { get; set; } - [NoAccessorMethod] - public bool resize_child2 { get; set; } - [NoAccessorMethod] - public bool shrink_child1 { get; set; } - [NoAccessorMethod] - public bool shrink_child2 { get; set; } + public bool resize_end_child { get; set; } + public bool resize_start_child { get; set; } + public bool shrink_end_child { get; set; } + public bool shrink_start_child { get; set; } + public Gtk.Widget start_child { get; set; } public bool wide_handle { get; set; } public signal bool accept_position (); public signal bool cancel_position (); @@ -9428,7 +9417,7 @@ namespace Gtk { public signal bool toggle_handle_focus (); } [CCode (cheader_filename = "gtk/gtk.h,gtk/gtk-a11y.h", type_id = "gtk_paned_accessible_get_type ()")] - public class PanedAccessible : Gtk.ContainerAccessible, Atk.Component, Atk.Value { + public class PanedAccessible : Gtk.WidgetAccessible, Atk.Component, Atk.Value { [CCode (has_construct_function = false)] protected PanedAccessible (); } @@ -9551,7 +9540,7 @@ namespace Gtk { public virtual signal void closed (); } [CCode (cheader_filename = "gtk/gtk.h,gtk/gtk-a11y.h", type_id = "gtk_popover_accessible_get_type ()")] - public class PopoverAccessible : Gtk.ContainerAccessible, Atk.Component { + public class PopoverAccessible : Gtk.WidgetAccessible, Atk.Component { [CCode (has_construct_function = false)] protected PopoverAccessible (); } @@ -10521,7 +10510,7 @@ namespace Gtk { protected SpinnerAccessible (); } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_stack_get_type ()")] - public class Stack : Gtk.Container, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget { + public class Stack : Gtk.Widget, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget { [CCode (has_construct_function = false, type = "GtkWidget*")] public Stack (); public unowned Gtk.StackPage add_named (Gtk.Widget child, string name); @@ -10538,6 +10527,7 @@ namespace Gtk { public bool get_vhomogeneous (); public unowned Gtk.Widget? get_visible_child (); public unowned string? get_visible_child_name (); + public void remove (Gtk.Widget child); public void set_hhomogeneous (bool hhomogeneous); public void set_homogeneous (bool homogeneous); public void set_interpolate_size (bool interpolate_size); @@ -10558,7 +10548,7 @@ namespace Gtk { public string visible_child_name { get; set; } } [CCode (cheader_filename = "gtk/gtk.h,gtk/gtk-a11y.h", type_id = "gtk_stack_accessible_get_type ()")] - public class StackAccessible : Gtk.ContainerAccessible, Atk.Component { + public class StackAccessible : Gtk.WidgetAccessible, Atk.Component { [CCode (has_construct_function = false)] protected StackAccessible (); } @@ -11081,7 +11071,7 @@ namespace Gtk { public signal void tag_removed (Gtk.TextTag tag); } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_text_view_get_type ()")] - public class TextView : Gtk.Container, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Scrollable { + public class TextView : Gtk.Widget, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Scrollable { [CCode (has_construct_function = false, type = "GtkWidget*")] public TextView (); public void add_child_at_anchor (Gtk.Widget child, Gtk.TextChildAnchor anchor); @@ -11126,6 +11116,7 @@ namespace Gtk { public void move_overlay (Gtk.Widget child, int xpos, int ypos); public bool move_visually (ref Gtk.TextIter iter, int count); public bool place_cursor_onscreen (); + public void remove (Gtk.Widget child); public void reset_cursor_blink (); public void reset_im_context (); public void scroll_mark_onscreen (Gtk.TextMark mark); @@ -11197,7 +11188,7 @@ namespace Gtk { public virtual signal void toggle_overwrite (); } [CCode (cheader_filename = "gtk/gtk.h,gtk/gtk-a11y.h", type_id = "gtk_text_view_accessible_get_type ()")] - public class TextViewAccessible : Gtk.ContainerAccessible, Atk.Component, Atk.EditableText, Atk.Text { + public class TextViewAccessible : Gtk.WidgetAccessible, Atk.Component, Atk.EditableText, Atk.Text { [CCode (has_construct_function = false)] protected TextViewAccessible (); } @@ -11423,7 +11414,7 @@ namespace Gtk { public void swap (Gtk.TreeIter a, Gtk.TreeIter b); } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_tree_view_get_type ()")] - public class TreeView : Gtk.Container, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Scrollable { + public class TreeView : Gtk.Widget, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Scrollable { [CCode (has_construct_function = false, type = "GtkWidget*")] public TreeView (); public int append_column (Gtk.TreeViewColumn column); @@ -11553,7 +11544,7 @@ namespace Gtk { public signal bool unselect_all (); } [CCode (cheader_filename = "gtk/gtk.h,gtk/gtk-a11y.h", type_id = "gtk_tree_view_accessible_get_type ()")] - public class TreeViewAccessible : Gtk.ContainerAccessible, Atk.Component, Atk.Selection, Atk.Table, Gtk.CellAccessibleParent { + public class TreeViewAccessible : Gtk.WidgetAccessible, Atk.Component, Atk.Selection, Atk.Table, Gtk.CellAccessibleParent { [CCode (has_construct_function = false)] protected TreeViewAccessible (); } @@ -11708,7 +11699,6 @@ namespace Gtk { public Pango.Layout create_pango_layout (string? text); [NoWrapper] public virtual void css_changed (Gtk.CssStyleChange change); - public void destroyed (ref unowned Gtk.Widget widget_pointer); public bool device_is_shadowed (Gdk.Device device); public void error_bell (); [NoWrapper] @@ -11734,6 +11724,7 @@ namespace Gtk { public unowned Gtk.Widget? get_first_child (); public unowned Gtk.Widget? get_focus_child (); public bool get_focus_on_click (); + public bool get_focusable (); public unowned Pango.FontMap? get_font_map (); public unowned Cairo.FontOptions? get_font_options (); public unowned Gdk.FrameClock? get_frame_clock (); @@ -11817,7 +11808,7 @@ namespace Gtk { public void set_can_focus (bool can_focus); public void set_can_target (bool can_target); public void set_child_visible (bool child_visible); - public void set_css_classes (string classes); + public void set_css_classes ([CCode (array_length = false, array_null_terminated = true)] string[] classes); [CCode (cname = "gtk_widget_class_set_css_name")] public class void set_css_name (string name); public void set_cursor (Gdk.Cursor? cursor); @@ -11826,6 +11817,7 @@ namespace Gtk { public void set_direction (Gtk.TextDirection dir); public virtual void set_focus_child (Gtk.Widget? child); public void set_focus_on_click (bool focus_on_click); + public void set_focusable (bool focusable); public void set_font_map (Pango.FontMap? font_map); public void set_font_options (Cairo.FontOptions? options); public void set_halign (Gtk.Align align); @@ -11869,7 +11861,7 @@ namespace Gtk { public void snapshot_child (Gtk.Widget child, Gtk.Snapshot snapshot); [NoWrapper] public virtual void system_setting_changed (Gtk.SystemSetting settings); - public bool translate_coordinates (Gtk.Widget dest_widget, int src_x, int src_y, out int dest_x, out int dest_y); + public bool translate_coordinates (Gtk.Widget dest_widget, double src_x, double src_y, out double dest_x, out double dest_y); public void trigger_tooltip_query (); public void unparent (); [NoWrapper] @@ -11882,6 +11874,7 @@ namespace Gtk { public string css_name { get; construct; } public Gdk.Cursor cursor { get; set; } public bool focus_on_click { get; set; } + public bool focusable { get; set; } public Gtk.Align halign { get; set; } [NoAccessorMethod] public bool has_default { get; } @@ -11913,7 +11906,6 @@ namespace Gtk { public bool visible { get; set; } [NoAccessorMethod] public int width_request { get; set; } - [HasEmitter] public signal void destroy (); public virtual signal void direction_changed (Gtk.TextDirection previous_direction); public virtual signal void grab_notify (bool was_grabbed); @@ -11957,6 +11949,7 @@ namespace Gtk { [CCode (has_construct_function = false, type = "GtkWidget*")] public Window (); public void close (); + public void destroy (); public void fullscreen (); public void fullscreen_on_monitor (Gdk.Monitor monitor); public unowned Gtk.Application? get_application (); @@ -11999,7 +11992,6 @@ namespace Gtk { public void set_display (Gdk.Display display); public void set_focus (Gtk.Widget? focus); public void set_focus_visible (bool setting); - public void set_has_user_ref_count (bool setting); public void set_hide_on_close (bool setting); public void set_icon_name (string? name); public static void set_interactive_debugging (bool enable); @@ -12076,6 +12068,14 @@ namespace Gtk { public GLib.List list_windows (); public void remove_window (Gtk.Window window); } + [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_window_handle_get_type ()")] + public class WindowHandle : Gtk.Widget, Atk.Implementor, Gtk.Buildable, Gtk.ConstraintTarget { + [CCode (has_construct_function = false, type = "GtkWidget*")] + public WindowHandle (); + public unowned Gtk.Widget? get_child (); + public void set_child (Gtk.Widget? child); + public Gtk.Widget child { get; set; } + } [CCode (cheader_filename = "gtk/gtk.h", type_cname = "GtkActionableInterface", type_id = "gtk_actionable_get_type ()")] public interface Actionable : Gtk.Widget { public abstract unowned string? get_action_name (); @@ -12307,8 +12307,7 @@ namespace Gtk { public static unowned Gtk.Widget get_for_surface (Gdk.Surface surface); public abstract unowned Gsk.Renderer get_renderer (); public abstract unowned Gdk.Surface get_surface (); - [NoWrapper] - public abstract void get_surface_transform (int x, int y); + public abstract void get_surface_transform (out double x, out double y); } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_orientable_get_type ()")] public interface Orientable : GLib.Object { diff --git a/vapi/metadata/Gtk-4.0-custom.vala b/vapi/metadata/Gtk-4.0-custom.vala index 70ca91d89..e1596c59e 100644 --- a/vapi/metadata/Gtk-4.0-custom.vala +++ b/vapi/metadata/Gtk-4.0-custom.vala @@ -11,14 +11,6 @@ namespace Gtk { public static unowned BindingSet @new (string name); } - [CCode (type_id = "gtk_container_accessible_get_type ()")] - public class ContainerAccessible : Gtk.WidgetAccessible { - [NoWrapper] - public virtual int add_gtk (Gtk.Widget widget, void* data); - [NoWrapper] - public virtual int remove_gtk (Gtk.Widget widget, void* data); - } - [CCode (cheader_filename = "gtk/gtk.h", has_copy_function = false, has_destroy_function = false, has_type_id = false)] public struct RecentData { } diff --git a/vapi/metadata/Gtk-4.0.metadata b/vapi/metadata/Gtk-4.0.metadata index 062294dae..ee5b6313c 100644 --- a/vapi/metadata/Gtk-4.0.metadata +++ b/vapi/metadata/Gtk-4.0.metadata @@ -203,6 +203,8 @@ Constraint .new_constant name="const" EntryCompletion .insert_prefix#method name="request_prefix_insertion" +InfoBar + .add_child new Notebook .insert_page_menu skip TreeView