]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapi: Update GIR-based bindings
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 21 Aug 2019 14:28:33 +0000 (16:28 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 21 Aug 2019 16:00:02 +0000 (18:00 +0200)
vapi/atspi-2.vapi
vapi/graphene-gobject-1.0.vapi
vapi/gtk+-3.0.vapi
vapi/gtk4.vapi
vapi/libpeas-1.0.vapi
vapi/libsoup-2.4.vapi
vapi/libwnck-3.0.vapi
vapi/metadata/Gtk-4.0.metadata
vapi/metadata/Wnck-3.0.metadata

index b8b0104596106da05ee6105ebdee182c5a9d77a6..094f20c29ad6e5ff63ceefa87f32fdd1d82590d9 100644 (file)
@@ -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);
 }
index c8224379fad9954ca1a30a74f71f4619b184b88c..20bf90a0db22db116acf2158e33f35d6af84d3c8 100644 (file)
@@ -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")]
index 2b2263caab47153771a86df075ed61afa96a36b2..d05ddbd406bde41708cdde366e0ccd05caa320c8 100644 (file)
@@ -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)]
index 178a1207107cea55efaa41dfddef73b9e3edecd8..9d6a6250e20e1e38ff591e260d836707c22094fc 100644 (file)
@@ -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)]
index c7c4eedb60e1febee4f353931a51e80847d377c1..194ee3d2b91d73fa531f8a0fb283b06b54f44bbe 100644 (file)
@@ -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);
 }
index f2c5a166eec84cd675ee3d2d762e61a12317a3cd..b0bea0e55e1a04be6ea4b18b9ab29251135da431 100644 (file)
@@ -497,6 +497,10 @@ namespace Soup {
                [Version (since = "2.68")]
                public HSTSEnforcer ();
                [Version (since = "2.68")]
+               public GLib.List<string> get_domains (bool session_policies);
+               [Version (since = "2.68")]
+               public GLib.List<Soup.HSTSPolicy> 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 ();
index 4ff9fa0040986c38eef2098385d1b2be59808595..a0ee12c4965b2243accfd019ac68dd8c1fb110a7 100644 (file)
@@ -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<weak Wnck.Window> windows);
+               public signal void task_leave_notify ([CCode (type = "gpointer")] GLib.List<weak Wnck.Window> windows);
        }
        [CCode (cheader_filename = "libwnck/libwnck.h", type_id = "wnck_window_get_type ()")]
        public class Window : GLib.Object {
index dd8fdd43b5e9a62c2bdf1e03c086d1441990922d..ffc72d5b377f350ac01937ef9875f8b9980ebe4e 100644 (file)
@@ -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
index a47d1bc1c0d3edfdee8bba86ac19c537768695cf..aa07635fe99a9d5fc764173e3d2656a6aa19c87d 100644 (file)
@@ -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<unowned Wnck.Window>"