summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2021-03-10 18:51:52 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2021-03-10 18:51:52 +0100
commit65a40cd6728cf82acc91769d180b4f03659b3923 (patch)
treec37764ca77a66aba0a74dbf5e2214f28efe44d34
parent724c3c5ecaeaddd54c0f8d5fb744bfeb680fc5e8 (diff)
downloadvala-65a40cd6728cf82acc91769d180b4f03659b3923.tar.gz
vapi: Update GIR-based bindings
-rw-r--r--vapi/gstreamer-player-1.0.vapi2
-rw-r--r--vapi/gtk4.vapi8
-rw-r--r--vapi/libwnck-3.0.vapi16
3 files changed, 22 insertions, 4 deletions
diff --git a/vapi/gstreamer-player-1.0.vapi b/vapi/gstreamer-player-1.0.vapi
index 7b7c08a3a..6f8581f11 100644
--- a/vapi/gstreamer-player-1.0.vapi
+++ b/vapi/gstreamer-player-1.0.vapi
@@ -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);
diff --git a/vapi/gtk4.vapi b/vapi/gtk4.vapi
index 91d143746..ee63daba5 100644
--- a/vapi/gtk4.vapi
+++ b/vapi/gtk4.vapi
@@ -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")]
diff --git a/vapi/libwnck-3.0.vapi b/vapi/libwnck-3.0.vapi
index 537099c2d..9fce7617f 100644
--- a/vapi/libwnck-3.0.vapi
+++ b/vapi/libwnck-3.0.vapi
@@ -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 {