From: Rico Tzschichholz Date: Sun, 20 Nov 2016 19:46:12 +0000 (+0100) Subject: vapi: Update GIR-based bindings X-Git-Tag: 0.35.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=050d4a7132a60614b9725425df8984f430c9282d;p=thirdparty%2Fvala.git vapi: Update GIR-based bindings --- diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi index d9c5f8c62..b9ef4b059 100644 --- a/vapi/gstreamer-1.0.vapi +++ b/vapi/gstreamer-1.0.vapi @@ -1161,7 +1161,7 @@ namespace Gst { public Gst.ClockTimeDiff base_time; public Gst.Bus bus; public Gst.Clock clock; - public weak GLib.List contexts; + public weak GLib.List contexts; public Gst.State current_state; public Gst.StateChangeReturn last_return; public Gst.State next_state; diff --git a/vapi/gstreamer-app-1.0.vapi b/vapi/gstreamer-app-1.0.vapi index fe2ab69a1..d999359c8 100644 --- a/vapi/gstreamer-app-1.0.vapi +++ b/vapi/gstreamer-app-1.0.vapi @@ -8,17 +8,23 @@ namespace Gst { public class Sink : Gst.Base.Sink, Gst.URIHandler { [CCode (has_construct_function = false)] protected Sink (); + [Version (since = "1.12")] + public bool get_buffer_list_support (); public Gst.Caps get_caps (); public bool get_drop (); public bool get_emit_signals (); public uint get_max_buffers (); public bool get_wait_on_eos (); public bool is_eos (); + [Version (since = "1.12")] + public void set_buffer_list_support (bool enable_lists); public void set_caps (Gst.Caps caps); public void set_drop (bool drop); public void set_emit_signals (bool emit); public void set_max_buffers (uint max); public void set_wait_on_eos (bool wait); + [NoAccessorMethod] + public bool buffer_list { get; set; } public Gst.Caps caps { owned get; set; } public bool drop { get; set; } public bool emit_signals { get; set; } diff --git a/vapi/gtk+-4.0.vapi b/vapi/gtk+-4.0.vapi index 5e9bf34e9..e019db692 100644 --- a/vapi/gtk+-4.0.vapi +++ b/vapi/gtk+-4.0.vapi @@ -6701,9 +6701,6 @@ namespace Gdk { [Version (since = "3.0")] public static void cairo_set_source_rgba (Cairo.Context cr, Gdk.RGBA rgba); [CCode (cheader_filename = "gdk/gdk.h")] - [Version (since = "2.24")] - public static void cairo_set_source_window (Cairo.Context cr, Gdk.Window window, double x, double y); - [CCode (cheader_filename = "gdk/gdk.h")] [Version (since = "3.10")] public static Cairo.Surface cairo_surface_create_from_pixbuf (Gdk.Pixbuf pixbuf, int scale, Gdk.Window? for_window); [CCode (cheader_filename = "gdk/gdk.h")] @@ -6813,8 +6810,6 @@ namespace Gdk { [CCode (cheader_filename = "gdk/gdk.h")] public static Gdk.Pixbuf? pixbuf_get_from_surface (Cairo.Surface surface, int src_x, int src_y, int width, int height); [CCode (cheader_filename = "gdk/gdk.h")] - public static Gdk.Pixbuf? pixbuf_get_from_window (Gdk.Window window, int src_x, int src_y, int width, int height); - [CCode (cheader_filename = "gdk/gdk.h")] public static void property_change (Gdk.Window window, Gdk.Atom property, Gdk.Atom type, int format, Gdk.PropMode mode, [CCode (array_length = false, type = "const guchar*")] uint8[] data, int nelements); [CCode (cheader_filename = "gdk/gdk.h")] public static void property_delete (Gdk.Window window, Gdk.Atom property); @@ -8694,8 +8689,6 @@ namespace Gtk { public void add_action_widget (Gtk.Widget child, int response_id); public unowned Gtk.Widget add_button (string button_text, int response_id); public void add_buttons (...); - [Version (deprecated = true, deprecated_since = "3.12", since = "2.14")] - public unowned Gtk.Widget get_action_area (); [Version (since = "2.14")] public unowned Gtk.Box get_content_area (); [Version (since = "3.12")] @@ -8720,6 +8713,20 @@ namespace Gtk { public class DrawingArea : Gtk.Widget, Atk.Implementor, Gtk.Buildable { [CCode (has_construct_function = false, type = "GtkWidget*")] public DrawingArea (); + [Version (since = "3.90")] + public int get_content_height (); + [Version (since = "3.90")] + public int get_content_width (); + [Version (since = "3.90")] + public void set_content_height (int height); + [Version (since = "3.90")] + public void set_content_width (int width); + [Version (since = "3.90")] + public void set_draw_func (owned Gtk.DrawingAreaDrawFunc? draw_func); + [Version (since = "3.90")] + public int content_height { get; set; } + [Version (since = "3.90")] + public int content_width { get; set; } } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_entry_get_type ()")] public class Entry : Gtk.Widget, Atk.Implementor, Gtk.Buildable, Gtk.CellEditable, Gtk.Editable { @@ -10646,6 +10653,7 @@ namespace Gtk { public int get_monitor (); [Version (since = "2.18")] public bool get_reserve_toggle_size (); + [Version (since = "3.22")] public void place_on_monitor (Gdk.Monitor monitor); public void popdown (); public void popup (Gtk.Widget? parent_menu_shell, Gtk.Widget? parent_menu_item, [CCode (delegate_target_pos = 3.5, scope = "async")] Gtk.MenuPositionFunc? func, uint button, uint32 activate_time); @@ -12600,18 +12608,29 @@ namespace Gtk { [Compact] public class Snapshot { public void append_node (Gsk.RenderNode node); + [Version (since = "3.90")] public bool clips_rect (Graphene.Rect bounds); + [Version (since = "3.90")] public void pop (); + [Version (since = "3.90")] public void push_node (Gsk.RenderNode node); + [Version (since = "3.90")] public void render_background (Gtk.StyleContext context, double x, double y, double width, double height); + [Version (since = "3.90")] public void render_focus (Gtk.StyleContext context, double x, double y, double width, double height); + [Version (since = "3.90")] public void render_frame (Gtk.StyleContext context, double x, double y, double width, double height); + [Version (since = "3.90")] public void render_icon (Gtk.StyleContext context, Gdk.Pixbuf pixbuf, double x, double y); [Version (since = "3.90")] public void render_insertion_cursor (Gtk.StyleContext context, double x, double y, Pango.Layout layout, int index, Pango.Direction direction); + [Version (since = "3.90")] public void render_layout (Gtk.StyleContext context, double x, double y, Pango.Layout layout); + [Version (since = "3.90")] public void set_transform (Graphene.Matrix transform); - public void transform (Graphene.Matrix matrix); + [Version (since = "3.90")] + public void transform (Graphene.Matrix transform); + [Version (since = "3.90")] public void translate_2d (int x, int y); } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_spin_button_get_type ()")] @@ -12865,9 +12884,6 @@ namespace Gtk { [CCode (cheader_filename = "gtk/gtk.h", cname = "gtk_render_expander", instance_pos = 0.5)] [Version (since = "3.0")] public void render_expander (Cairo.Context cr, double x, double y, double width, double height); - [CCode (cheader_filename = "gtk/gtk.h", cname = "gtk_render_extension", instance_pos = 0.5)] - [Version (since = "3.0")] - public void render_extension (Cairo.Context cr, double x, double y, double width, double height, Gtk.PositionType gap_side); [CCode (cheader_filename = "gtk/gtk.h", cname = "gtk_render_focus", instance_pos = 0.5)] [Version (since = "3.0")] public void render_focus (Cairo.Context cr, double x, double y, double width, double height); @@ -16774,6 +16790,9 @@ namespace Gtk { [CCode (cheader_filename = "gtk/gtk.h", instance_pos = 2.9)] [Version (since = "2.14")] public delegate void ClipboardURIReceivedFunc (Gtk.Clipboard clipboard, [CCode (array_length = false, array_null_terminated = true)] string[] uris); + [CCode (cheader_filename = "gtk/gtk.h", instance_pos = 4.9)] + [Version (since = "3.90")] + public delegate void DrawingAreaDrawFunc (Gtk.DrawingArea drawing_area, Cairo.Context cr, int width, int height); [CCode (cheader_filename = "gtk/gtk.h", instance_pos = 3.9)] public delegate bool EntryCompletionMatchFunc (Gtk.EntryCompletion completion, string key, Gtk.TreeIter iter); [CCode (cheader_filename = "gtk/gtk.h", instance_pos = 1.9)] @@ -17015,8 +17034,6 @@ namespace Gtk { public const string STYLE_CLASS_FLAT; [CCode (cheader_filename = "gtk/gtk.h", cname = "GTK_STYLE_CLASS_FRAME")] public const string STYLE_CLASS_FRAME; - [CCode (cheader_filename = "gtk/gtk.h", cname = "GTK_STYLE_CLASS_GRIP")] - public const string STYLE_CLASS_GRIP; [CCode (cheader_filename = "gtk/gtk.h", cname = "GTK_STYLE_CLASS_HEADER")] public const string STYLE_CLASS_HEADER; [CCode (cheader_filename = "gtk/gtk.h", cname = "GTK_STYLE_CLASS_HIGHLIGHT")] diff --git a/vapi/libsoup-2.4.vapi b/vapi/libsoup-2.4.vapi index 1bd366de2..42024c4d6 100644 --- a/vapi/libsoup-2.4.vapi +++ b/vapi/libsoup-2.4.vapi @@ -238,6 +238,8 @@ namespace Soup { public class AuthManager : GLib.Object, Soup.SessionFeature { [CCode (has_construct_function = false)] protected AuthManager (); + [Version (since = "2.58")] + public void clear_cached_credentials (); [Version (since = "2.42")] public void use_auth (Soup.URI uri, Soup.Auth auth); public virtual signal void authenticate (Soup.Message msg, Soup.Auth auth, bool retrying);