diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-09-03 15:15:59 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-09-03 15:15:59 +0200 |
commit | 24e8c3d0b4a92985d940241d70915e805fa9454c (patch) | |
tree | 899b9994d9caa85d337be496c82973cf7e8f2311 | |
parent | adf00e89188553ae8ec0ef524b3b0f8a40138017 (diff) | |
download | vala-24e8c3d0b4a92985d940241d70915e805fa9454c.tar.gz |
gtk4: Update to 4.5.0~e681fdd9
-rw-r--r-- | vapi/gtk4.vapi | 24 | ||||
-rw-r--r-- | vapi/metadata/Gsk-4.0.metadata | 7 |
2 files changed, 30 insertions, 1 deletions
diff --git a/vapi/gtk4.vapi b/vapi/gtk4.vapi index 2e68f77bf..ea21405f4 100644 --- a/vapi/gtk4.vapi +++ b/vapi/gtk4.vapi @@ -6447,6 +6447,14 @@ namespace Gsk { [CCode (cheader_filename = "gsk/gsk.h")] [Version (replacement = "Transform.parse")] public static bool transform_parse (string string, out Gsk.Transform out_transform); + [CCode (cheader_filename = "gsk/gsk.h")] + public static Gsk.RenderNode? value_dup_render_node (GLib.Value value); + [CCode (cheader_filename = "gsk/gsk.h")] + public static unowned Gsk.RenderNode? value_get_render_node (ref GLib.Value value); + [CCode (cheader_filename = "gsk/gsk.h")] + public static void value_set_render_node (ref GLib.Value value, Gsk.RenderNode node); + [CCode (cheader_filename = "gsk/gsk.h")] + public static void value_take_render_node (ref GLib.Value value, owned Gsk.RenderNode? node); } [CCode (cprefix = "Gtk", gir_namespace = "Gtk", gir_version = "4.0", lower_case_cprefix = "gtk_")] namespace Gtk { @@ -8798,7 +8806,7 @@ namespace Gtk { public void set_context_id (string? context_id); } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_icon_paintable_get_type ()")] - public class IconPaintable : GLib.Object, Gdk.Paintable { + public class IconPaintable : GLib.Object, Gdk.Paintable, Gtk.SymbolicPaintable { [CCode (has_construct_function = false)] protected IconPaintable (); [CCode (has_construct_function = false)] @@ -10526,6 +10534,9 @@ namespace Gtk { [NoAccessorMethod] public uint gtk_fontconfig_timestamp { get; set; } [NoAccessorMethod] + [Version (since = "4.6")] + public bool gtk_hint_font_metrics { get; set; } + [NoAccessorMethod] public string gtk_icon_theme_name { owned get; set; } [NoAccessorMethod] public string gtk_im_module { owned get; set; } @@ -12830,6 +12841,10 @@ namespace Gtk { public interface StyleProvider : GLib.Object { public signal void gtk_private_changed (); } + [CCode (cheader_filename = "gtk/gtk.h", type_cname = "GtkSymbolicPaintableInterface", type_id = "gtk_symbolic_paintable_get_type ()")] + public interface SymbolicPaintable : Gdk.Paintable, GLib.Object { + public abstract void snapshot_symbolic (Gdk.Snapshot snapshot, double width, double height, [CCode (array_length_cname = "n_colors", array_length_pos = 4.1, array_length_type = "gsize")] Gdk.RGBA[] colors); + } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_tree_drag_dest_get_type ()")] public interface TreeDragDest : GLib.Object { public abstract bool drag_data_received (Gtk.TreePath dest, GLib.Value value); @@ -13955,6 +13970,13 @@ namespace Gtk { SHOW_STYLE, SHOW_CHANGE } + [CCode (cheader_filename = "gtk/gtk.h", cprefix = "GTK_SYMBOLIC_COLOR_", type_id = "gtk_symbolic_color_get_type ()")] + public enum SymbolicColor { + FOREGROUND, + ERROR, + WARNING, + SUCCESS + } [CCode (cheader_filename = "gtk/gtk.h", cprefix = "GTK_SYSTEM_SETTING_", type_id = "gtk_system_setting_get_type ()")] public enum SystemSetting { DPI, diff --git a/vapi/metadata/Gsk-4.0.metadata b/vapi/metadata/Gsk-4.0.metadata index 261c4e5f2..74ed7f852 100644 --- a/vapi/metadata/Gsk-4.0.metadata +++ b/vapi/metadata/Gsk-4.0.metadata @@ -9,3 +9,10 @@ GLShader ParseErrorFunc skip RenderNode .deserialize skip=false + +// Vala-specific, not really bugs +///////////////////////////////// + +value_get_render_node.value ref +value_set_render_node.value ref +value_take_render_node.value ref |