From: Rico Tzschichholz Date: Wed, 20 Jan 2021 08:42:32 +0000 (+0100) Subject: vapi: Update GIR-based bindings X-Git-Tag: 0.51.1~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d54925cd7c0e87004e3a17aa0e2b9101571e8885;p=thirdparty%2Fvala.git vapi: Update GIR-based bindings --- diff --git a/vapi/atspi-2.vapi b/vapi/atspi-2.vapi index ff369bf44..f9a482c79 100644 --- a/vapi/atspi-2.vapi +++ b/vapi/atspi-2.vapi @@ -91,6 +91,28 @@ namespace Atspi { [CCode (has_construct_function = false)] protected Application (); } + [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_device_get_type ()")] + public class Device : GLib.Object { + [CCode (has_construct_function = false)] + public Device (); + [NoWrapper] + public virtual void add_key_grab (Atspi.KeyDefinition kd); + public void add_key_watcher (); + public Atspi.KeyDefinition get_grab_by_id (uint id); + public virtual uint get_locked_modifiers (); + public virtual uint get_modifier (int keycode); + public virtual bool grab_keyboard (); + public virtual uint map_modifier (int keycode); + public bool notify_key (bool pressed, int keycode, int keysym, int state, string text); + public virtual void remove_key_grab (uint id); + public virtual void ungrab_keyboard (); + public virtual void unmap_modifier (int keycode); + } + [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_device_legacy_get_type ()")] + public class DeviceLegacy : Atspi.Device { + [CCode (has_construct_function = false)] + public DeviceLegacy (); + } [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_device_listener_get_type ()")] public class DeviceListener : GLib.Object { public weak GLib.List callbacks; @@ -104,6 +126,11 @@ namespace Atspi { [CCode (has_construct_function = false)] public DeviceListener.simple ([CCode (destroy_notify_pos = 1.1)] owned Atspi.DeviceListenerSimpleCB callback); } + [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_device_x11_get_type ()")] + public class DeviceX11 : Atspi.Device { + [CCode (has_construct_function = false)] + public DeviceX11 (); + } [CCode (cheader_filename = "atspi/atspi.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atspi_event_get_type ()")] [Compact] public class Event { @@ -152,7 +179,7 @@ namespace Atspi { public int keycode; public weak string keystring; public int keysym; - public int unused; + public uint modifiers; } [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_match_rule_get_type ()")] public class MatchRule : GLib.Object { @@ -798,6 +825,8 @@ namespace Atspi { public delegate void EventListenerCB (owned Atspi.Event event); [CCode (cheader_filename = "atspi/atspi.h", has_target = false)] public delegate void EventListenerSimpleCB (owned Atspi.Event event); + [CCode (cheader_filename = "atspi/atspi.h", instance_pos = 6.9)] + public delegate void KeyCallback (Atspi.Device device, bool pressed, uint keycode, uint keysym, uint modifiers, string keystring); [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_COMPONENTLAYER_COUNT")] public const int COMPONENTLAYER_COUNT; [CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_COORD_TYPE_COUNT")] diff --git a/vapi/gdesktopenums-3.0.vapi b/vapi/gdesktopenums-3.0.vapi index 75483100a..1db85f59a 100644 --- a/vapi/gdesktopenums-3.0.vapi +++ b/vapi/gdesktopenums-3.0.vapi @@ -40,6 +40,27 @@ namespace GDesktop { SMART, STRICT } + [CCode (cheader_filename = "gsettings-desktop-schemas/gdesktop-enums.h", cprefix = "G_DESKTOP_FONT_ANTIALIASING_MODE_", has_type_id = false)] + public enum FontAntialiasingMode { + NONE, + GRAYSCALE, + RGBA + } + [CCode (cheader_filename = "gsettings-desktop-schemas/gdesktop-enums.h", cprefix = "G_DESKTOP_FONT_HINTING_", has_type_id = false)] + public enum FontHinting { + NONE, + SLIGHT, + MEDIUM, + FULL + } + [CCode (cheader_filename = "gsettings-desktop-schemas/gdesktop-enums.h", cprefix = "G_DESKTOP_FONT_RGBA_ORDER_", has_type_id = false)] + public enum FontRgbaOrder { + RGBA, + RGB, + BGR, + VRGB, + VBGR + } [CCode (cheader_filename = "gsettings-desktop-schemas/gdesktop-enums.h", cprefix = "G_DESKTOP_LOCATION_ACCURACY_LEVEL_", has_type_id = false)] public enum LocationAccuracyLevel { COUNTRY, diff --git a/vapi/goocanvas-2.0.vapi b/vapi/goocanvas-2.0.vapi index cd7143c65..37cd3cf35 100644 --- a/vapi/goocanvas-2.0.vapi +++ b/vapi/goocanvas-2.0.vapi @@ -33,7 +33,7 @@ namespace Goo { public Gdk.GrabStatus keyboard_grab (Goo.CanvasItem item, bool owner_events, uint32 time); public void keyboard_ungrab (Goo.CanvasItem item, uint32 time); public static GLib.Array parse_path_data (string path_data); - public Gdk.GrabStatus pointer_grab (Goo.CanvasItem item, Gdk.EventMask event_mask, Gdk.Cursor cursor, uint32 time); + public Gdk.GrabStatus pointer_grab (Goo.CanvasItem item, Gdk.EventMask event_mask, Gdk.Cursor? cursor, uint32 time); public void pointer_ungrab (Goo.CanvasItem item, uint32 time); public void register_widget_item (Goo.CanvasWidget witem); public void render (Cairo.Context cr, Goo.CanvasBounds? bounds, double scale); diff --git a/vapi/gtk4.vapi b/vapi/gtk4.vapi index ceb18df96..ec01f7150 100644 --- a/vapi/gtk4.vapi +++ b/vapi/gtk4.vapi @@ -7388,6 +7388,7 @@ namespace Gtk { public bool inconsistent { get; set; } public string label { get; set; } public bool use_underline { get; set; } + public virtual signal void activate (); public virtual signal void toggled (); } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_closure_expression_get_type ()")] diff --git a/vapi/packagekit-glib2.vapi b/vapi/packagekit-glib2.vapi index 2f34cda47..a82de9033 100644 --- a/vapi/packagekit-glib2.vapi +++ b/vapi/packagekit-glib2.vapi @@ -1562,8 +1562,7 @@ namespace Pk { UNKNOWN, REBOOT, POWER_OFF, - UNSET, - LAST; + UNSET; [Version (since = "0.9.6")] public static Pk.OfflineAction from_string (string action); [Version (since = "0.9.6")] @@ -1791,8 +1790,7 @@ namespace Pk { public errordomain OfflineError { FAILED, INVALID_VALUE, - NO_DATA, - LAST; + NO_DATA; [Version (since = "0.9.6")] public static GLib.Quark quark (); }