From: Rico Tzschichholz Date: Wed, 21 Aug 2019 14:28:33 +0000 (+0200) Subject: vapi: Update GIR-based bindings X-Git-Tag: 0.46.0~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=747c50c7b2b5261b9927272826ea35f42ec44d1f;p=thirdparty%2Fvala.git vapi: Update GIR-based bindings --- diff --git a/vapi/atspi-2.vapi b/vapi/atspi-2.vapi index b8b010459..094f20c29 100644 --- a/vapi/atspi-2.vapi +++ b/vapi/atspi-2.vapi @@ -910,5 +910,7 @@ namespace Atspi { [CCode (cheader_filename = "atspi/atspi.h")] public static void set_main_context (GLib.MainContext cnx); [CCode (cheader_filename = "atspi/atspi.h")] + public static void set_reference_window (Atspi.Accessible accessible); + [CCode (cheader_filename = "atspi/atspi.h")] public static void set_timeout (int val, int startup_time); } diff --git a/vapi/graphene-gobject-1.0.vapi b/vapi/graphene-gobject-1.0.vapi index c8224379f..20bf90a0d 100644 --- a/vapi/graphene-gobject-1.0.vapi +++ b/vapi/graphene-gobject-1.0.vapi @@ -220,6 +220,8 @@ namespace Graphene { public unowned Graphene.Plane? init_from_vec4 (Graphene.Vec4 src); public Graphene.Plane negate (); public Graphene.Plane normalize (); + [Version (since = "1.10")] + public Graphene.Plane transform (Graphene.Matrix matrix, Graphene.Matrix? normal_matrix); } [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_point_t", type_id = "graphene_point_get_type ()")] [Version (since = "1.0")] @@ -276,6 +278,8 @@ namespace Graphene { [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_quaternion_t", type_id = "graphene_quaternion_get_type ()")] [Version (since = "1.0")] public struct Quaternion { + [Version (since = "1.10")] + public Graphene.Quaternion add (Graphene.Quaternion b); public float dot (Graphene.Quaternion b); public bool equal (Graphene.Quaternion b); public unowned Graphene.Quaternion? init (float x, float y, float z, float w); @@ -289,7 +293,11 @@ namespace Graphene { public unowned Graphene.Quaternion? init_from_vec4 (Graphene.Vec4 src); public unowned Graphene.Quaternion? init_identity (); public Graphene.Quaternion invert (); + [Version (since = "1.10")] + public Graphene.Quaternion multiply (Graphene.Quaternion b); public Graphene.Quaternion normalize (); + [Version (since = "1.10")] + public Graphene.Quaternion scale (float factor); public Graphene.Quaternion slerp (Graphene.Quaternion b, float factor); public void to_angle_vec3 (out float angle, out Graphene.Vec3 axis); [Version (since = "1.2")] @@ -431,6 +439,8 @@ namespace Graphene { public unowned Graphene.Vec2? init_from_float ([CCode (array_length = false)] float src[2]); [Version (since = "1.0")] public unowned Graphene.Vec2? init_from_vec2 (Graphene.Vec2 src); + [Version (since = "1.10")] + public Graphene.Vec2 interpolate (Graphene.Vec2 v2, double factor); [Version (since = "1.0")] public float length (); [Version (since = "1.0")] @@ -494,6 +504,8 @@ namespace Graphene { public unowned Graphene.Vec3? init_from_float ([CCode (array_length = false)] float src[3]); [Version (since = "1.0")] public unowned Graphene.Vec3? init_from_vec3 (Graphene.Vec3 src); + [Version (since = "1.10")] + public Graphene.Vec3 interpolate (Graphene.Vec3 v2, double factor); [Version (since = "1.0")] public float length (); [Version (since = "1.0")] @@ -557,6 +569,8 @@ namespace Graphene { public unowned Graphene.Vec4? init_from_vec3 (Graphene.Vec3 src, float w); [Version (since = "1.0")] public unowned Graphene.Vec4? init_from_vec4 (Graphene.Vec4 src); + [Version (since = "1.10")] + public Graphene.Vec4 interpolate (Graphene.Vec4 v2, double factor); [Version (since = "1.0")] public float length (); [Version (since = "1.0")] diff --git a/vapi/gtk+-3.0.vapi b/vapi/gtk+-3.0.vapi index 2b2263caa..d05ddbd40 100644 --- a/vapi/gtk+-3.0.vapi +++ b/vapi/gtk+-3.0.vapi @@ -3793,6 +3793,11 @@ namespace Gtk { public string subtitle { get; set; } public string title { get; set; } } + [CCode (cheader_filename = "gtk/gtk.h,gtk/gtk-a11y.h", type_id = "gtk_header_bar_accessible_get_type ()")] + public class HeaderBarAccessible : Gtk.ContainerAccessible, Atk.Component { + [CCode (has_construct_function = false)] + protected HeaderBarAccessible (); + } [CCode (cheader_filename = "gtk/gtk.h,gtk/gtkimmodule.h", type_id = "gtk_im_context_get_type ()")] public abstract class IMContext : GLib.Object { [CCode (has_construct_function = false)] diff --git a/vapi/gtk4.vapi b/vapi/gtk4.vapi index 178a12071..9d6a6250e 100644 --- a/vapi/gtk4.vapi +++ b/vapi/gtk4.vapi @@ -6422,6 +6422,7 @@ namespace Gtk { [CCode (has_construct_function = false, type = "GtkWidget*")] public AccelLabel (string str); public void get_accel (out uint accelerator_key, out Gdk.ModifierType accelerator_mods); + public unowned GLib.Closure? get_accel_closure (); public unowned Gtk.Widget? get_accel_widget (); public uint get_accel_width (); public unowned string get_label (); @@ -6432,8 +6433,7 @@ namespace Gtk { public void set_accel_widget (Gtk.Widget? accel_widget); public void set_label (string text); public void set_use_underline (bool setting); - [NoAccessorMethod] - public GLib.Closure accel_closure { owned get; set; } + public GLib.Closure accel_closure { get; owned set; } public Gtk.Widget accel_widget { get; set; } public string label { get; set; } public bool use_underline { get; set; } @@ -6959,6 +6959,8 @@ namespace Gtk { public virtual Gdk.Rectangle get_aligned_area (Gtk.Widget widget, Gtk.CellRendererState flags, Gdk.Rectangle cell_area); public void get_alignment (out float xalign, out float yalign); public void get_fixed_size (out int width, out int height); + public bool get_is_expanded (); + public bool get_is_expander (); public void get_padding (out int xpad, out int ypad); public virtual void get_preferred_height (Gtk.Widget widget, out int minimum_size, out int natural_size); public virtual void get_preferred_height_for_width (Gtk.Widget widget, int width, out int minimum_height, out int natural_height); @@ -6977,6 +6979,8 @@ namespace Gtk { public class void set_accessible_type (GLib.Type type); public void set_alignment (float xalign, float yalign); public void set_fixed_size (int width, int height); + public void set_is_expanded (bool is_expander); + public void set_is_expander (bool is_expander); public void set_padding (int xpad, int ypad); public void set_sensitive (bool sensitive); public void set_visible (bool visible); @@ -6993,9 +6997,7 @@ namespace Gtk { public bool editing { get; } [NoAccessorMethod] public int height { get; set; } - [NoAccessorMethod] public bool is_expanded { get; set; } - [NoAccessorMethod] public bool is_expander { get; set; } [NoAccessorMethod] public Gtk.CellRendererMode mode { get; set; } @@ -8210,7 +8212,8 @@ namespace Gtk { public class GestureLongPress : Gtk.GestureSingle { [CCode (has_construct_function = false, type = "GtkGesture*")] public GestureLongPress (); - [NoAccessorMethod] + public double get_delay_factor (); + public void set_delay_factor (double delay_factor); public double delay_factor { get; set; } public signal void cancelled (); public signal void pressed (double x, double y); @@ -9921,8 +9924,6 @@ namespace Gtk { [NoWrapper] public virtual Gtk.Border get_range_border (); public Gdk.Rectangle get_range_rect (); - [NoWrapper] - public virtual void get_range_size_request (Gtk.Orientation orientation, out int minimum, out int natural); public bool get_restrict_to_fill_level (); public int get_round_digits (); public bool get_show_fill_level (); @@ -10042,6 +10043,7 @@ namespace Gtk { public Gtk.PositionType get_value_pos (); public void set_digits (int digits); public void set_draw_value (bool draw_value); + public void set_format_value_func (owned Gtk.ScaleFormatValueFunc? func); public void set_has_origin (bool has_origin); public void set_value_pos (Gtk.PositionType pos); [CCode (has_construct_function = false, type = "GtkWidget*")] @@ -10050,7 +10052,6 @@ namespace Gtk { public bool draw_value { get; set; } public bool has_origin { get; set; } public Gtk.PositionType value_pos { get; set; } - public virtual signal string format_value (double value); } [CCode (cheader_filename = "gtk/gtk.h,gtk/gtk-a11y.h", type_id = "gtk_scale_accessible_get_type ()")] public class ScaleAccessible : Gtk.RangeAccessible, Atk.Component, Atk.Value { @@ -10489,7 +10490,7 @@ namespace Gtk { public void push_cross_fade (double progress); public void push_debug (string message, ...); public void push_opacity (double opacity); - public void push_repeat (Graphene.Rect bounds, Graphene.Rect child_bounds); + public void push_repeat (Graphene.Rect bounds, Graphene.Rect? child_bounds); public void push_rounded_clip (Gsk.RoundedRect bounds); public void push_shadow ([CCode (array_length_cname = "n_shadows", array_length_pos = 1.1, array_length_type = "gsize", type = "const GskShadow*")] Gsk.Shadow[] shadow); public void render_background (Gtk.StyleContext context, double x, double y, double width, double height); @@ -11689,7 +11690,7 @@ namespace Gtk { [CCode (has_construct_function = false)] public TreeViewColumn (); public bool cell_get_position (Gtk.CellRenderer cell_renderer, out int x_offset, out int width); - public void cell_get_size (Gdk.Rectangle? cell_area, out int x_offset, out int y_offset, out int width, out int height); + public void cell_get_size (out int x_offset, out int y_offset, out int width, out int height); public bool cell_is_visible (); public void cell_set_cell_data (Gtk.TreeModel tree_model, Gtk.TreeIter iter, bool is_expander, bool is_expanded); public void focus_cell (Gtk.CellRenderer cell); @@ -11831,7 +11832,7 @@ namespace Gtk { public void destroyed (ref unowned Gtk.Widget widget_pointer); public bool device_is_shadowed (Gdk.Device device); public void error_bell (); - public bool event ([CCode (type = "const GdkEvent*")] Gdk.Event event); + public bool event ([CCode (type = "GdkEvent*")] Gdk.Event event); [NoWrapper] public virtual bool focus (Gtk.DirectionType direction); public virtual unowned Atk.Object get_accessible (); @@ -13797,6 +13798,8 @@ namespace Gtk { public delegate void PrintSettingsFunc (string key, string value); [CCode (cheader_filename = "gtk/gtk.h", has_target = false)] public delegate bool RcPropertyParser (GLib.ParamSpec pspec, GLib.StringBuilder rc_string, GLib.Value property_value); + [CCode (cheader_filename = "gtk/gtk.h", instance_pos = 2.9)] + public delegate string ScaleFormatValueFunc (Gtk.Scale scale, double value); [CCode (cheader_filename = "gtk/gtk.h", instance_pos = 1.9)] public delegate bool TextCharPredicate (unichar ch); [CCode (cheader_filename = "gtk/gtk.h", instance_pos = 1.9)] diff --git a/vapi/libpeas-1.0.vapi b/vapi/libpeas-1.0.vapi index c7c4eedb6..194ee3d2b 100644 --- a/vapi/libpeas-1.0.vapi +++ b/vapi/libpeas-1.0.vapi @@ -136,4 +136,6 @@ namespace Peas { public delegate void ExtensionSetForeachFunc (Peas.ExtensionSet @set, Peas.PluginInfo info, Peas.Extension exten); [CCode (cheader_filename = "libpeas/peas.h", instance_pos = 1.9)] public delegate GLib.Object FactoryFunc ([CCode (array_length_cname = "n_parameters", array_length_pos = 0.5, array_length_type = "guint")] GLib.Parameter[] parameters); + [CCode (cheader_filename = "libpeas/peas.h")] + public static void cclosure_marshal_VOID__BOXED_OBJECT (GLib.Closure closure, GLib.Value return_value, uint n_param_values, GLib.Value param_values, void* invocation_hint, void* marshal_data); } diff --git a/vapi/libsoup-2.4.vapi b/vapi/libsoup-2.4.vapi index f2c5a166e..b0bea0e55 100644 --- a/vapi/libsoup-2.4.vapi +++ b/vapi/libsoup-2.4.vapi @@ -497,6 +497,10 @@ namespace Soup { [Version (since = "2.68")] public HSTSEnforcer (); [Version (since = "2.68")] + public GLib.List get_domains (bool session_policies); + [Version (since = "2.68")] + public GLib.List get_policies (bool session_policies); + [Version (since = "2.68")] public virtual bool has_valid_policy (string domain); [Version (since = "2.68")] public virtual bool is_persistent (); diff --git a/vapi/libwnck-3.0.vapi b/vapi/libwnck-3.0.vapi index 4ff9fa004..a0ee12c49 100644 --- a/vapi/libwnck-3.0.vapi +++ b/vapi/libwnck-3.0.vapi @@ -162,6 +162,8 @@ namespace Wnck { [Version (since = "3.24.0")] public void set_scroll_enabled (bool scroll_enabled); public void set_switch_workspace_on_unminimize (bool switch_workspace_on_unminimize); + public signal void task_enter_notify ([CCode (type = "gpointer")] GLib.List windows); + public signal void task_leave_notify ([CCode (type = "gpointer")] GLib.List windows); } [CCode (cheader_filename = "libwnck/libwnck.h", type_id = "wnck_window_get_type ()")] public class Window : GLib.Object { diff --git a/vapi/metadata/Gtk-4.0.metadata b/vapi/metadata/Gtk-4.0.metadata index dd8fdd43b..ffc72d5b3 100644 --- a/vapi/metadata/Gtk-4.0.metadata +++ b/vapi/metadata/Gtk-4.0.metadata @@ -38,8 +38,6 @@ EntryBuffer .get_text#virtual_method.n_bytes out default=null Range .get_range_border.* out - .get_range_size_request.minimum out - .get_range_size_request.natural out TextView .create_buffer unowned=false skip=false Widget diff --git a/vapi/metadata/Wnck-3.0.metadata b/vapi/metadata/Wnck-3.0.metadata index a47d1bc1c..aa07635fe 100644 --- a/vapi/metadata/Wnck-3.0.metadata +++ b/vapi/metadata/Wnck-3.0.metadata @@ -2,4 +2,6 @@ pid_read_resource_usage parent="Wnck.ResourceUsage" name="pid_read" .usage out unowned=false xid_read_resource_usage parent="Wnck.ResourceUsage" name="xid_read" - .usage out unowned=false \ No newline at end of file + .usage out unowned=false +Tasklist + .task_*_notify#signal.windows type="GLib.List"