diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-06-07 12:40:23 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-06-07 12:40:23 +0200 |
commit | 25634e137decbe7999368302c2209c37585b6fcd (patch) | |
tree | 83fc600c41e67540c9985756df09e81d60bc4a6c /vapi | |
parent | 1fbf10bc43d18e8facd89e7b01a179175e97e3bf (diff) | |
download | vala-25634e137decbe7999368302c2209c37585b6fcd.tar.gz |
vapi: Update GIR-based bindings
Diffstat (limited to 'vapi')
-rw-r--r-- | vapi/atk.vapi | 4 | ||||
-rw-r--r-- | vapi/atspi-2.vapi | 4 | ||||
-rw-r--r-- | vapi/gstreamer-video-1.0.vapi | 32 | ||||
-rw-r--r-- | vapi/gtk+-4.0.vapi | 18 | ||||
-rw-r--r-- | vapi/json-glib-1.0.vapi | 40 | ||||
-rw-r--r-- | vapi/metadata/PangoCairo-1.0.metadata | 1 | ||||
-rw-r--r-- | vapi/packagekit-glib2.vapi | 1 | ||||
-rw-r--r-- | vapi/pango.vapi | 7 |
8 files changed, 62 insertions, 45 deletions
diff --git a/vapi/atk.vapi b/vapi/atk.vapi index b766d3e25..fcaa45710 100644 --- a/vapi/atk.vapi +++ b/vapi/atk.vapi @@ -660,6 +660,10 @@ namespace Atk { DESCRIBED_BY, DESCRIPTION_FOR, NODE_PARENT_OF, + DETAILS, + DETAILS_FOR, + ERROR_MESSAGE, + ERROR_FOR, LAST_DEFINED; [CCode (cheader_filename = "atk/atk.h")] public static Atk.RelationType for_name (string name); diff --git a/vapi/atspi-2.vapi b/vapi/atspi-2.vapi index 463c2664c..4982b76dc 100644 --- a/vapi/atspi-2.vapi +++ b/vapi/atspi-2.vapi @@ -568,6 +568,10 @@ namespace Atspi { PARENT_WINDOW_OF, DESCRIPTION_FOR, DESCRIBED_BY, + DETAILS, + DETAILS_FOR, + ERROR_MESSAGE, + ERROR_FOR, LAST_DEFINED } [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_ROLE_", type_id = "atspi_role_get_type ()")] diff --git a/vapi/gstreamer-video-1.0.vapi b/vapi/gstreamer-video-1.0.vapi index e778f39f2..602cd9d2d 100644 --- a/vapi/gstreamer-video-1.0.vapi +++ b/vapi/gstreamer-video-1.0.vapi @@ -421,28 +421,28 @@ namespace Gst { [GIR (name = "Navigation")] public interface Navigation : GLib.Object { public static Gst.Video.NavigationEventType event_get_type (Gst.Event event); - public static bool event_parse_command (Gst.Event event, Gst.Video.NavigationCommand command); - public static bool event_parse_key_event (Gst.Event event, string key); - public static bool event_parse_mouse_button_event (Gst.Event event, int button, double x, double y); - public static bool event_parse_mouse_move_event (Gst.Event event, double x, double y); + public static bool event_parse_command (Gst.Event event, out Gst.Video.NavigationCommand command); + public static bool event_parse_key_event (Gst.Event event, out unowned string key); + public static bool event_parse_mouse_button_event (Gst.Event event, out int button, out double x, out double y); + public static bool event_parse_mouse_move_event (Gst.Event event, out double x, out double y); public static Gst.Video.NavigationMessageType message_get_type (Gst.Message message); public static Gst.Message message_new_angles_changed (Gst.Object src, uint cur_angle, uint n_angles); public static Gst.Message message_new_commands_changed (Gst.Object src); [Version (since = "1.6")] public static Gst.Message message_new_event (Gst.Object src, Gst.Event event); public static Gst.Message message_new_mouse_over (Gst.Object src, bool active); - public static bool message_parse_angles_changed (Gst.Message message, uint cur_angle, uint n_angles); + public static bool message_parse_angles_changed (Gst.Message message, out uint cur_angle, out uint n_angles); [Version (since = "1.6")] public static bool message_parse_event (Gst.Message message, out Gst.Event event); - public static bool message_parse_mouse_over (Gst.Message message, bool active); + public static bool message_parse_mouse_over (Gst.Message message, out bool active); public static Gst.Video.NavigationQueryType query_get_type (Gst.Query query); public static Gst.Query query_new_angles (); public static Gst.Query query_new_commands (); - public static bool query_parse_angles (Gst.Query query, uint cur_angle, uint n_angles); + public static bool query_parse_angles (Gst.Query query, out uint cur_angle, out uint n_angles); public static bool query_parse_commands_length (Gst.Query query, out uint n_cmds); public static bool query_parse_commands_nth (Gst.Query query, uint nth, out Gst.Video.NavigationCommand cmd); public static void query_set_angles (Gst.Query query, uint cur_angle, uint n_angles); - public static void query_set_commandsv (Gst.Query query, int n_cmds, Gst.Video.NavigationCommand cmds); + public static void query_set_commandsv (Gst.Query query, [CCode (array_length_cname = "n_cmds", array_length_pos = 1.5)] Gst.Video.NavigationCommand[] cmds); public void send_command (Gst.Video.NavigationCommand command); public abstract void send_event (Gst.Structure structure); public void send_key_event (string event, string key); @@ -1469,13 +1469,13 @@ namespace Gst { [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_get_type")] public static Gst.Video.NavigationEventType navigation_event_get_type (Gst.Event event); [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_parse_command")] - public static bool navigation_event_parse_command (Gst.Event event, Gst.Video.NavigationCommand command); + public static bool navigation_event_parse_command (Gst.Event event, out Gst.Video.NavigationCommand command); [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_parse_key_event")] - public static bool navigation_event_parse_key_event (Gst.Event event, string key); + public static bool navigation_event_parse_key_event (Gst.Event event, out unowned string key); [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_parse_mouse_button_event")] - public static bool navigation_event_parse_mouse_button_event (Gst.Event event, int button, double x, double y); + public static bool navigation_event_parse_mouse_button_event (Gst.Event event, out int button, out double x, out double y); [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_parse_mouse_move_event")] - public static bool navigation_event_parse_mouse_move_event (Gst.Event event, double x, double y); + public static bool navigation_event_parse_mouse_move_event (Gst.Event event, out double x, out double y); [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_message_get_type")] public static Gst.Video.NavigationMessageType navigation_message_get_type (Gst.Message message); [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_message_new_angles_changed")] @@ -1488,12 +1488,12 @@ namespace Gst { [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_message_new_mouse_over")] public static Gst.Message navigation_message_new_mouse_over (Gst.Object src, bool active); [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_message_parse_angles_changed")] - public static bool navigation_message_parse_angles_changed (Gst.Message message, uint cur_angle, uint n_angles); + public static bool navigation_message_parse_angles_changed (Gst.Message message, out uint cur_angle, out uint n_angles); [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_message_parse_event")] [Version (since = "1.6")] public static bool navigation_message_parse_event (Gst.Message message, out Gst.Event event); [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_message_parse_mouse_over")] - public static bool navigation_message_parse_mouse_over (Gst.Message message, bool active); + public static bool navigation_message_parse_mouse_over (Gst.Message message, out bool active); [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_query_get_type")] public static Gst.Video.NavigationQueryType navigation_query_get_type (Gst.Query query); [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_query_new_angles")] @@ -1501,7 +1501,7 @@ namespace Gst { [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_query_new_commands")] public static Gst.Query navigation_query_new_commands (); [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_query_parse_angles")] - public static bool navigation_query_parse_angles (Gst.Query query, uint cur_angle, uint n_angles); + public static bool navigation_query_parse_angles (Gst.Query query, out uint cur_angle, out uint n_angles); [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_query_parse_commands_length")] public static bool navigation_query_parse_commands_length (Gst.Query query, out uint n_cmds); [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_query_parse_commands_nth")] @@ -1509,7 +1509,7 @@ namespace Gst { [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_query_set_angles")] public static void navigation_query_set_angles (Gst.Query query, uint cur_angle, uint n_angles); [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_query_set_commandsv")] - public static void navigation_query_set_commandsv (Gst.Query query, int n_cmds, Gst.Video.NavigationCommand cmds); + public static void navigation_query_set_commandsv (Gst.Query query, [CCode (array_length_cname = "n_cmds", array_length_pos = 1.5)] Gst.Video.NavigationCommand[] cmds); [CCode (cheader_filename = "gst/video/video.h")] public static GLib.Type overlay_composition_meta_api_get_type (); [CCode (cheader_filename = "gst/video/video.h")] diff --git a/vapi/gtk+-4.0.vapi b/vapi/gtk+-4.0.vapi index f52c40e00..3b529efe0 100644 --- a/vapi/gtk+-4.0.vapi +++ b/vapi/gtk+-4.0.vapi @@ -8384,6 +8384,18 @@ namespace Gtk { public bool fit_model { get; set; } public Gtk.TreeModel model { get; set; } } + [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_center_box_get_type ()")] + public class CenterBox : Gtk.Widget, Atk.Implementor, Gtk.Buildable, Gtk.Orientable { + [CCode (has_construct_function = false, type = "GtkWidget*")] + [Version (since = "3.92")] + public CenterBox (); + [Version (since = "3.92")] + public void set_center_widget (Gtk.Widget child); + [Version (since = "3.92")] + public void set_end_widget (Gtk.Widget child); + [Version (since = "3.92")] + public void set_start_widget (Gtk.Widget child); + } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_check_button_get_type ()")] public class CheckButton : Gtk.ToggleButton, Atk.Implementor, Gtk.Actionable, Gtk.Buildable { [CCode (has_construct_function = false, type = "GtkWidget*")] @@ -14457,8 +14469,10 @@ namespace Gtk { public void input_shape_combine_region (Cairo.Region? region); [Version (since = "3.6")] public void insert_action_group (string name, GLib.ActionGroup? group); - public void insert_after (Gtk.Widget parent, Gtk.Widget previous_sibling); - public void insert_before (Gtk.Widget parent, Gtk.Widget next_sibling); + [Version (since = "3.92")] + public void insert_after (Gtk.Widget parent, Gtk.Widget? previous_sibling); + [Version (since = "3.92")] + public void insert_before (Gtk.Widget parent, Gtk.Widget? next_sibling); [CCode (cname = "gtk_widget_class_install_style_property")] public class void install_style_property (GLib.ParamSpec pspec); public bool intersect (Gdk.Rectangle area, out Gdk.Rectangle? intersection = null); diff --git a/vapi/json-glib-1.0.vapi b/vapi/json-glib-1.0.vapi index 65544cb63..ddc14556c 100644 --- a/vapi/json-glib-1.0.vapi +++ b/vapi/json-glib-1.0.vapi @@ -62,22 +62,22 @@ namespace Json { public class Builder : GLib.Object { [CCode (has_construct_function = false)] public Builder (); - public unowned Json.Builder add_boolean_value (bool value); - public unowned Json.Builder add_double_value (double value); - public unowned Json.Builder add_int_value (int64 value); - public unowned Json.Builder add_null_value (); - public unowned Json.Builder add_string_value (string value); - public unowned Json.Builder add_value (owned Json.Node node); - public unowned Json.Builder begin_array (); - public unowned Json.Builder begin_object (); - public unowned Json.Builder end_array (); - public unowned Json.Builder end_object (); + public unowned Json.Builder? add_boolean_value (bool value); + public unowned Json.Builder? add_double_value (double value); + public unowned Json.Builder? add_int_value (int64 value); + public unowned Json.Builder? add_null_value (); + public unowned Json.Builder? add_string_value (string value); + public unowned Json.Builder? add_value (owned Json.Node node); + public unowned Json.Builder? begin_array (); + public unowned Json.Builder? begin_object (); + public unowned Json.Builder? end_array (); + public unowned Json.Builder? end_object (); public Json.Node? get_root (); [CCode (cname = "json_builder_new_immutable", has_construct_function = false)] [Version (since = "1.2")] public Builder.immutable_new (); public void reset (); - public unowned Json.Builder set_member_name (string member_name); + public unowned Json.Builder? set_member_name (string member_name); [NoAccessorMethod] [Version (since = "1.2")] public bool immutable { get; construct; } @@ -184,7 +184,7 @@ namespace Json { [Version (deprecated = true, deprecated_since = "0.8", replacement = "Json.Object.set_member")] public void add_member (string member_name, owned Json.Node node); [Version (since = "0.6")] - public Json.Node dup_member (string member_name); + public Json.Node? dup_member (string member_name); [Version (since = "1.2")] public bool equal (Json.Object b); [Version (since = "0.8")] @@ -197,8 +197,8 @@ namespace Json { public double get_double_member (string member_name); [Version (since = "0.8")] public int64 get_int_member (string member_name); - public unowned Json.Node get_member (string member_name); - public GLib.List<weak string> get_members (); + public unowned Json.Node? get_member (string member_name); + public GLib.List<weak string>? get_members (); [Version (since = "0.8")] public bool get_null_member (string member_name); [Version (since = "0.8")] @@ -206,7 +206,7 @@ namespace Json { public uint get_size (); [Version (since = "0.8")] public unowned string get_string_member (string member_name); - public GLib.List<weak Json.Node> get_values (); + public GLib.List<weak Json.Node>? get_values (); public bool has_member (string member_name); [Version (since = "1.2")] public uint hash (); @@ -252,6 +252,8 @@ namespace Json { public bool load_from_stream (GLib.InputStream stream, GLib.Cancellable? cancellable = null) throws GLib.Error; [Version (since = "0.12")] public async bool load_from_stream_async (GLib.InputStream stream, GLib.Cancellable? cancellable = null) throws GLib.Error; + [Version (since = "1.4")] + public Json.Node steal_root (); [NoAccessorMethod] [Version (since = "1.2")] public bool immutable { get; construct; } @@ -285,13 +287,13 @@ namespace Json { public void end_member (); public bool get_boolean_value (); public double get_double_value (); - public unowned GLib.Error get_error (); + public unowned GLib.Error? get_error (); public int64 get_int_value (); [Version (since = "0.14")] - public unowned string get_member_name (); + public unowned string? get_member_name (); public bool get_null_value (); public unowned string get_string_value (); - public unowned Json.Node get_value (); + public unowned Json.Node? get_value (); public bool is_array (); public bool is_object (); public bool is_value (); @@ -404,7 +406,7 @@ namespace Json { public static void boxed_register_serialize_func (GLib.Type gboxed_type, Json.NodeType node_type, Json.BoxedSerializeFunc serialize_func); [CCode (cheader_filename = "json-glib/json-glib.h")] [Version (since = "0.10")] - public static Json.Node boxed_serialize (GLib.Type gboxed_type, void* boxed); + public static Json.Node? boxed_serialize (GLib.Type gboxed_type, void* boxed); [CCode (cheader_filename = "json-glib/json-glib.h,json-glib/json-gobject.h")] [Version (deprecated = true, deprecated_since = "0.10", replacement = "Json.gobject_from_data", since = "0.4")] public static GLib.Object construct_gobject (GLib.Type gtype, string data, size_t length) throws GLib.Error; diff --git a/vapi/metadata/PangoCairo-1.0.metadata b/vapi/metadata/PangoCairo-1.0.metadata index 04cf408fe..614e99f00 100644 --- a/vapi/metadata/PangoCairo-1.0.metadata +++ b/vapi/metadata/PangoCairo-1.0.metadata @@ -9,4 +9,3 @@ ShapeRendererFunc.data closure=3 context_get_shape_renderer.context closure=1 create_* unowned=false Font.get_scaled_font unowned -FcFontMap skip diff --git a/vapi/packagekit-glib2.vapi b/vapi/packagekit-glib2.vapi index 0b7eb23d6..5a1de47f8 100644 --- a/vapi/packagekit-glib2.vapi +++ b/vapi/packagekit-glib2.vapi @@ -1720,6 +1720,7 @@ namespace Pk { CHECK_EXECUTABLE_FILES, CHECK_LIBRARIES, COPY_FILES, + RUN_HOOK, LAST; [Version (since = "0.5.0")] public static Pk.Status enum_from_string (string status); diff --git a/vapi/pango.vapi b/vapi/pango.vapi index 4dc314d5e..a28dfe933 100644 --- a/vapi/pango.vapi +++ b/vapi/pango.vapi @@ -732,13 +732,6 @@ namespace Pango { public int width; public int height; } - [CCode (cheader_filename = "pango/pango.h", has_type_id = false)] - public struct ScriptForLang { - [CCode (array_length = false)] - public weak char lang[7]; - [CCode (array_length = false)] - public weak Pango.Script scripts[3]; - } [CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_ALIGN_", type_id = "pango_alignment_get_type ()")] public enum Alignment { LEFT, |