]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapi: Update GIR-based bindings
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 10 Mar 2021 17:51:52 +0000 (18:51 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 10 Mar 2021 17:51:52 +0000 (18:51 +0100)
vapi/gstreamer-player-1.0.vapi
vapi/gtk4.vapi
vapi/libwnck-3.0.vapi

index 7b7c08a3a858b16b6cf5f71354abd24b90142418..6f8581f11ebab59cf2bbda2ea58da813c55f2232 100644 (file)
@@ -100,7 +100,7 @@ namespace Gst {
                [NoAccessorMethod]
                public Gst.Video.MultiviewFramePacking video_multiview_mode { get; set; }
                [NoAccessorMethod]
-               public Gst.PlayerVideoRenderer video_renderer { construct; }
+               public Gst.PlayerVideoRenderer video_renderer { owned get; }
                public double volume { get; set; }
                public signal void buffering (int object);
                public signal void duration_changed (uint64 object);
index 91d143746660ef3a70399f8a9a0bc37c4b5028e6..ee63daba5a2f1a484b295858e75c4a3ea65333a4 100644 (file)
@@ -6008,6 +6008,7 @@ 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")]
@@ -6105,6 +6106,7 @@ namespace Gsk {
        [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 ()")]
@@ -7398,6 +7400,7 @@ 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 ();
        }
@@ -8708,8 +8711,9 @@ 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 (string text, int cursor_index, int anchor_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);
@@ -14250,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")]
index 537099c2d8eb6f6c78cbe0fcd46578a8225086e7..9fce7617f7f67c8590470cce16ecbf72d22df053 100644 (file)
@@ -61,6 +61,17 @@ namespace Wnck {
                public virtual signal void icon_changed ();
                public virtual signal void name_changed ();
        }
+       [CCode (cheader_filename = "libwnck/libwnck.h", type_id = "wnck_image_menu_item_get_type ()")]
+       public class ImageMenuItem : Gtk.MenuItem, Atk.Implementor, Gtk.Actionable, Gtk.Activatable, Gtk.Buildable {
+               [CCode (has_construct_function = false, type = "GtkWidget*")]
+               public ImageMenuItem ();
+               public void make_label_bold ();
+               public void make_label_normal ();
+               public void set_image_from_icon_pixbuf (Gdk.Pixbuf pixbuf);
+               public void set_image_from_window (Wnck.Window window);
+               [CCode (has_construct_function = false, type = "GtkWidget*")]
+               public ImageMenuItem.with_label (string label);
+       }
        [CCode (cheader_filename = "libwnck/libwnck.h", type_id = "wnck_pager_get_type ()")]
        public class Pager : Gtk.Widget, Atk.Implementor, Gtk.Buildable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
@@ -70,6 +81,7 @@ namespace Wnck {
                public void set_display_mode (Wnck.PagerDisplayMode mode);
                public bool set_n_rows (int n_rows);
                public bool set_orientation (Gtk.Orientation orientation);
+               [Version (since = "3.36")]
                public void set_scroll_mode (Wnck.PagerScrollMode scroll_mode);
                [Version (since = "2.2")]
                public void set_shadow_type (Gtk.ShadowType shadow_type);
@@ -363,9 +375,11 @@ namespace Wnck {
                CONTENT
        }
        [CCode (cheader_filename = "libwnck/libwnck.h", cprefix = "WNCK_PAGER_SCROLL_", type_id = "wnck_pager_scroll_mode_get_type ()")]
+       [Version (since = "3.36")]
        public enum PagerScrollMode {
                @2D,
-               @1D
+               @1D,
+               NONE
        }
        [CCode (cheader_filename = "libwnck/libwnck.h", cprefix = "WNCK_TASKLIST_", type_id = "wnck_tasklist_grouping_type_get_type ()")]
        public enum TasklistGroupingType {