[vala/0.48] gtk4: Update to 4.1.1+fe45f283
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.48] gtk4: Update to 4.1.1+fe45f283
- Date: Sun, 14 Mar 2021 15:47:45 +0000 (UTC)
commit dfa869f13544ecc0a92d12657f7186d931718a65
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Mar 6 12:38:01 2021 +0100
gtk4: Update to 4.1.1+fe45f283
vapi/gtk4.vapi | 28 ++++++++++++++++++++++------
vapi/metadata/Gdk-4.0.metadata | 2 --
2 files changed, 22 insertions(+), 8 deletions(-)
---
diff --git a/vapi/gtk4.vapi b/vapi/gtk4.vapi
index 841487e8d..ee63daba5 100644
--- a/vapi/gtk4.vapi
+++ b/vapi/gtk4.vapi
@@ -5301,12 +5301,16 @@ namespace Gdk {
public unowned Gdk.Rectangle? get_anchor_rect ();
public void get_offset (out int dx, out int dy);
public Gdk.Gravity get_rect_anchor ();
+ [Version (since = "4.2")]
+ public void get_shadow_width (out int left, out int right, out int top, out int bottom);
public Gdk.Gravity get_surface_anchor ();
public unowned Gdk.PopupLayout @ref ();
public void set_anchor_hints (Gdk.AnchorHints anchor_hints);
public void set_anchor_rect (Gdk.Rectangle anchor_rect);
public void set_offset (int dx, int dy);
public void set_rect_anchor (Gdk.Gravity anchor);
+ [Version (since = "4.2")]
+ public void set_shadow_width (int left, int right, int top, int bottom);
public void set_surface_anchor (Gdk.Gravity anchor);
public void unref ();
}
@@ -6004,6 +6008,8 @@ namespace Gsk {
public class ConicGradientNode : Gsk.RenderNode {
[CCode (has_construct_function = false, type = "GskRenderNode*")]
public ConicGradientNode (Graphene.Rect bounds, Graphene.Point center, float rotation, [CCode
(array_length_cname = "n_color_stops", array_length_pos = 4.1, array_length_type = "gsize")] Gsk.ColorStop[]
color_stops);
+ [Version (since = "4.2")]
+ public float get_angle ();
public unowned Graphene.Point? get_center ();
[CCode (array_length_pos = 0.1, array_length_type = "gsize")]
public unowned Gsk.ColorStop[] get_color_stops ();
@@ -6097,6 +6103,12 @@ namespace Gsk {
public size_t get_n_color_stops ();
public unowned Graphene.Point? get_start ();
}
+ [CCode (cheader_filename = "gsk/gsk.h", type_id = "gsk_ngl_renderer_get_type ()")]
+ public class NglRenderer : Gsk.Renderer {
+ [CCode (has_construct_function = false, type = "GskRenderer*")]
+ [Version (since = "4.2")]
+ public NglRenderer ();
+ }
[CCode (cheader_filename = "gsk/gsk.h", type_id = "gsk_opacity_node_get_type ()")]
public class OpacityNode : Gsk.RenderNode {
[CCode (has_construct_function = false, type = "GskRenderNode*")]
@@ -7388,6 +7400,8 @@ namespace Gtk {
public bool inconsistent { get; set; }
public string label { get; set; }
public bool use_underline { get; set; }
+ [Version (since = "4.2")]
+ public virtual signal void activate ();
public virtual signal void toggled ();
}
[CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_closure_expression_get_type ()")]
@@ -8697,11 +8711,15 @@ namespace Gtk {
public virtual void focus_in ();
public virtual void focus_out ();
public virtual void get_preedit_string (out string str, out Pango.AttrList attrs, out int
cursor_pos);
+ [Version (deprecated = true, deprecated_since = "4.2")]
public virtual bool get_surrounding (out string text, out int cursor_index);
+ public virtual bool get_surrounding_with_selection (out string text, out int cursor_index,
out int anchor_index);
public virtual void reset ();
public virtual void set_client_widget (Gtk.Widget? widget);
public virtual void set_cursor_location (Gdk.Rectangle area);
+ [Version (deprecated = true, deprecated_since = "4.2")]
public virtual void set_surrounding (string text, int len, int cursor_index);
+ public virtual void set_surrounding_with_selection (string text, int len, int cursor_index,
int anchor_index);
public virtual void set_use_preedit (bool use_preedit);
[NoAccessorMethod]
public Gtk.InputHints input_hints { get; set; }
@@ -9114,7 +9132,7 @@ namespace Gtk {
public unowned Gtk.Adjustment get_adjustment ();
public unowned Gtk.ListBoxRow? get_row_at_index (int index_);
public unowned Gtk.ListBoxRow? get_row_at_y (int y);
- public unowned Gtk.ListBoxRow get_selected_row ();
+ public unowned Gtk.ListBoxRow? get_selected_row ();
public GLib.List<weak Gtk.ListBoxRow> get_selected_rows ();
public Gtk.SelectionMode get_selection_mode ();
public bool get_show_separators ();
@@ -10642,7 +10660,7 @@ namespace Gtk {
public bool get_can_unselect ();
public unowned GLib.ListModel get_model ();
public uint get_selected ();
- public void* get_selected_item ();
+ public unowned GLib.Object? get_selected_item ();
public void set_autoselect (bool autoselect);
public void set_can_unselect (bool can_unselect);
public void set_model (GLib.ListModel? model);
@@ -12078,7 +12096,7 @@ namespace Gtk {
public int get_margin_end ();
public int get_margin_start ();
public int get_margin_top ();
- public unowned string? get_name ();
+ public unowned string get_name ();
public unowned Gtk.Native? get_native ();
public unowned Gtk.Widget? get_next_sibling ();
public double get_opacity ();
@@ -14236,7 +14254,7 @@ namespace Gtk {
[CCode (cheader_filename = "gtk/gtk.h")]
public static void disable_setlocale ();
[CCode (cheader_filename = "gtk/gtk.h")]
- public static int distribute_natural_allocation (int extra_space, uint n_requested_sizes,
Gtk.RequestedSize sizes);
+ public static int distribute_natural_allocation (int extra_space, [CCode (array_length_cname =
"n_requested_sizes", array_length_pos = 1.5, array_length_type = "guint")] Gtk.RequestedSize[] sizes);
[CCode (cheader_filename = "gtk/gtk.h")]
public static bool drag_check_threshold (Gtk.Widget widget, int start_x, int start_y, int current_x,
int current_y);
[CCode (cheader_filename = "gtk/gtk.h")]
@@ -14258,8 +14276,6 @@ namespace Gtk {
[CCode (cheader_filename = "gtk/gtk.h")]
public static void hsv_to_rgb (float h, float s, float v, out float r, out float g, out float b);
[CCode (cheader_filename = "gtk/gtk.h")]
- public static void im_modules_init ();
- [CCode (cheader_filename = "gtk/gtk.h")]
public static void init ();
[CCode (cheader_filename = "gtk/gtk.h")]
public static bool init_check ();
diff --git a/vapi/metadata/Gdk-4.0.metadata b/vapi/metadata/Gdk-4.0.metadata
index 3053be7df..40cb0fcbf 100644
--- a/vapi/metadata/Gdk-4.0.metadata
+++ b/vapi/metadata/Gdk-4.0.metadata
@@ -57,5 +57,3 @@ Device
// vapigen actually generates the correctly, but in away that breaks BC
Rectangle.union return_void
-
-DrawingContext skip
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]