diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-10-25 09:13:51 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-10-25 09:16:55 +0200 |
commit | 3c08b7c479da987ef594d7d75ab7516de21ad8f9 (patch) | |
tree | a45527e46d3244a554282420e7d7d18296b4d71b | |
parent | 59e74da2a13cdba2f3e1c211827c2fd622d247d5 (diff) | |
download | vala-3c08b7c479da987ef594d7d75ab7516de21ad8f9.tar.gz |
vapi: Update GIR-based bindings
-rw-r--r-- | vapi/gdesktopenums-3.0.vapi | 6 | ||||
-rw-r--r-- | vapi/gio-2.0.vapi | 2 | ||||
-rw-r--r-- | vapi/gnome-desktop-3.0.vapi | 4 | ||||
-rw-r--r-- | vapi/gtk4.vapi | 48 | ||||
-rw-r--r-- | vapi/packagekit-glib2.vapi | 32 |
5 files changed, 86 insertions, 6 deletions
diff --git a/vapi/gdesktopenums-3.0.vapi b/vapi/gdesktopenums-3.0.vapi index 1db85f59a..b5f699b00 100644 --- a/vapi/gdesktopenums-3.0.vapi +++ b/vapi/gdesktopenums-3.0.vapi @@ -23,6 +23,12 @@ namespace GDesktop { @24H, @12H } + [CCode (cheader_filename = "gsettings-desktop-schemas/gdesktop-enums.h", cprefix = "G_DESKTOP_COLOR_SCHEME_", has_type_id = false)] + public enum ColorScheme { + DEFAULT, + PREFER_DARK, + PREFER_LIGHT + } [CCode (cheader_filename = "gsettings-desktop-schemas/gdesktop-enums.h", cprefix = "G_DESKTOP_DEVICE_SEND_EVENTS_", has_type_id = false)] public enum DeviceSendEvents { ENABLED, diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi index 2eadebf6a..85ad15ea9 100644 --- a/vapi/gio-2.0.vapi +++ b/vapi/gio-2.0.vapi @@ -379,6 +379,8 @@ namespace GLib { [HasEmitter] [Version (since = "2.36")] public virtual signal void launch_failed (string startup_notify_id); + [Version (since = "2.72")] + public virtual signal void launch_started (GLib.AppInfo info, GLib.Variant? platform_data); [Version (since = "2.36")] public virtual signal void launched (GLib.AppInfo info, GLib.Variant platform_data); } diff --git a/vapi/gnome-desktop-3.0.vapi b/vapi/gnome-desktop-3.0.vapi index e145f7ec0..378830a9f 100644 --- a/vapi/gnome-desktop-3.0.vapi +++ b/vapi/gnome-desktop-3.0.vapi @@ -40,7 +40,7 @@ namespace Gnome { public static string normalize_locale (string locale); [CCode (cheader_filename = "libgnome-desktop/gnome-languages.h", cname = "gnome_parse_locale")] [Version (since = "3.8")] - public static bool parse_locale (string locale, out string language_codep, out string country_codep, out string codesetp, out string modifierp); + public static bool parse_locale (string locale, out string language_codep, out string? country_codep, out string? codesetp, out string? modifierp); } [CCode (cheader_filename = "libgnome-desktop/gnome-bg.h", type_id = "gnome_bg_get_type ()")] public class BG : GLib.Object { @@ -305,7 +305,7 @@ namespace Gnome { [Version (since = "3.18")] public GLib.List<weak string> get_languages_for_layout (string layout_id); [Version (since = "3.6")] - public bool get_layout_info (string id, out unowned string display_name, out unowned string short_name, out unowned string xkb_layout, out unowned string xkb_variant); + public bool get_layout_info (string id, out unowned string? display_name, out unowned string? short_name, out unowned string? xkb_layout, out unowned string? xkb_variant); [Version (since = "3.8")] public GLib.List<weak string> get_layouts_for_country (string country_code); [Version (since = "3.8")] diff --git a/vapi/gtk4.vapi b/vapi/gtk4.vapi index 1b1907b38..875e1dee4 100644 --- a/vapi/gtk4.vapi +++ b/vapi/gtk4.vapi @@ -5019,6 +5019,8 @@ namespace Gdk { protected Display (); public void beep (); public void close (); + [Version (since = "4.6")] + public Gdk.GLContext? create_gl_context () throws GLib.Error; public bool device_is_grabbed (Gdk.Device device); public void flush (); public Gdk.AppLaunchContext get_app_launch_context (); @@ -5166,7 +5168,9 @@ namespace Gdk { } [CCode (cheader_filename = "gdk/gdk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gdk_file_list_get_type ()")] [Compact] + [Version (since = "4.6")] public class FileList { + public GLib.SList<weak GLib.File> get_files (); } [CCode (cheader_filename = "gdk/gdk.h", type_id = "gdk_focus_event_get_type ()")] public class FocusEvent : Gdk.Event { @@ -5213,6 +5217,10 @@ namespace Gdk { [CCode (has_construct_function = false)] protected GLContext (); public static void clear_current (); + [Version (since = "4.6")] + public Gdk.GLAPI get_allowed_apis (); + [Version (since = "4.6")] + public Gdk.GLAPI get_api (); public static unowned Gdk.GLContext? get_current (); public bool get_debug_enabled (); public unowned Gdk.Display? get_display (); @@ -5228,10 +5236,16 @@ namespace Gdk { public bool is_shared (Gdk.GLContext other); public void make_current (); public bool realize () throws GLib.Error; + [Version (since = "4.6")] + public void set_allowed_apis (Gdk.GLAPI apis); public void set_debug_enabled (bool enabled); public void set_forward_compatible (bool compatible); public void set_required_version (int major, int minor); public void set_use_es (int use_es); + [Version (since = "4.6")] + public Gdk.GLAPI allowed_apis { get; set; } + [Version (since = "4.6")] + public Gdk.GLAPI api { get; } [Version (deprecated = true, deprecated_since = "4.4")] public Gdk.GLContext shared_context { get; construct; } } @@ -5372,7 +5386,7 @@ namespace Gdk { protected Surface (); public void beep (); public Gdk.CairoContext create_cairo_context (); - public Gdk.GLContext? create_gl_context () throws GLib.Error; + public Gdk.GLContext create_gl_context () throws GLib.Error; public Cairo.Surface create_similar_surface (Cairo.Content content, int width, int height); public Gdk.VulkanContext create_vulkan_context () throws GLib.Error; [DestroysInstance] @@ -5747,6 +5761,13 @@ namespace Gdk { CURRENT_MONITOR, ALL_MONITORS } + [CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_GL_API_", type_id = "gdk_gl_api_get_type ()")] + [Flags] + [Version (since = "4.6")] + public enum GLAPI { + GL, + GLES + } [CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_GRAVITY_", type_id = "gdk_gravity_get_type ()")] public enum Gravity { NORTH_WEST, @@ -5789,10 +5810,13 @@ namespace Gdk { B8G8R8, R16G16B16, R16G16B16A16_PREMULTIPLIED, + R16G16B16A16, R16G16B16_FLOAT, R16G16B16A16_FLOAT_PREMULTIPLIED, + R16G16B16A16_FLOAT, R32G32B32_FLOAT, R32G32B32A32_FLOAT_PREMULTIPLIED, + R32G32B32A32_FLOAT, N_FORMATS } [CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_", type_id = "gdk_modifier_type_get_type ()")] @@ -6108,6 +6132,12 @@ namespace Gsk { public unowned Gsk.RenderNode get_child (); public unowned string get_message (); } + [CCode (cheader_filename = "gsk/gsk.h", type_id = "gsk_gl_renderer_get_type ()")] + public class GLRenderer : Gsk.Renderer { + [CCode (has_construct_function = false, type = "GskRenderer*")] + [Version (since = "4.2")] + public GLRenderer (); + } [CCode (cheader_filename = "gsk/gsk.h", type_id = "gsk_gl_shader_get_type ()")] public class GLShader : GLib.Object { [CCode (has_construct_function = false)] @@ -6171,7 +6201,7 @@ namespace Gsk { [CCode (cheader_filename = "gsk/gsk.h", type_id = "gsk_ngl_renderer_get_type ()")] public class NglRenderer : Gsk.Renderer { [CCode (has_construct_function = false, type = "GskRenderer*")] - [Version (since = "4.2")] + [Version (deprecated = true, deprecated_since = "4.4")] public NglRenderer (); } [CCode (cheader_filename = "gsk/gsk.h", type_id = "gsk_opacity_node_get_type ()")] @@ -6226,7 +6256,7 @@ namespace Gsk { public static Gsk.Renderer? for_surface (Gdk.Surface surface); public unowned Gdk.Surface? get_surface (); public bool is_realized (); - public bool realize (Gdk.Surface surface) throws GLib.Error; + public bool realize (Gdk.Surface? surface) throws GLib.Error; public void render (Gsk.RenderNode root, Cairo.Region? region); public Gdk.Texture render_texture (Gsk.RenderNode root, Graphene.Rect? viewport); public void unrealize (); @@ -7897,12 +7927,16 @@ namespace Gtk { public unowned GLib.ListModel? get_model (); public uint get_selected (); public unowned GLib.Object? get_selected_item (); + [Version (since = "4.6")] + public bool get_show_arrow (); public void set_enable_search (bool enable_search); public void set_expression (Gtk.Expression? expression); public void set_factory (Gtk.ListItemFactory? factory); public void set_list_factory (Gtk.ListItemFactory? factory); public void set_model (GLib.ListModel? model); public void set_selected (uint position); + [Version (since = "4.6")] + public void set_show_arrow (bool show_arrow); public bool enable_search { get; set; } public Gtk.Expression expression { get; set; } public Gtk.ListItemFactory factory { get; set; } @@ -7910,6 +7944,8 @@ namespace Gtk { public GLib.ListModel model { get; set; } public uint selected { get; set; } public GLib.Object selected_item { get; } + [Version (since = "4.6")] + public bool show_arrow { get; set; } } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_drop_target_get_type ()")] public class DropTarget : Gtk.EventController { @@ -8422,6 +8458,8 @@ namespace Gtk { public class FlowBox : Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Orientable { [CCode (has_construct_function = false, type = "GtkWidget*")] public FlowBox (); + [Version (since = "4.6")] + public void append (Gtk.Widget child); public void bind_model (GLib.ListModel? model, owned Gtk.FlowBoxCreateWidgetFunc? create_widget_func); public bool get_activate_on_single_click (); public unowned Gtk.FlowBoxChild? get_child_at_index (int idx); @@ -8436,6 +8474,8 @@ namespace Gtk { public void insert (Gtk.Widget widget, int position); public void invalidate_filter (); public void invalidate_sort (); + [Version (since = "4.6")] + public void prepend (Gtk.Widget child); public void remove (Gtk.Widget widget); public void select_child (Gtk.FlowBoxChild child); public void selected_foreach (Gtk.FlowBoxForeachFunc func); @@ -10859,7 +10899,7 @@ namespace Gtk { public void push_opacity (double opacity); 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 push_shadow ([CCode (array_length_cname = "n_shadows", array_length_pos = 1.1, array_length_type = "gsize")] Gsk.Shadow[] shadow); public void render_background (Gtk.StyleContext context, double x, double y, double width, double height); public void render_focus (Gtk.StyleContext context, double x, double y, double width, double height); public void render_frame (Gtk.StyleContext context, double x, double y, double width, double height); diff --git a/vapi/packagekit-glib2.vapi b/vapi/packagekit-glib2.vapi index c55a3ab4a..274e1207f 100644 --- a/vapi/packagekit-glib2.vapi +++ b/vapi/packagekit-glib2.vapi @@ -369,6 +369,8 @@ namespace Pk { public Details (); [Version (since = "0.8.12")] public unowned string get_description (); + [Version (since = "1.2.4")] + public uint64 get_download_size (); [Version (since = "0.8.12")] public Pk.Group get_group (); [Version (since = "0.8.12")] @@ -385,6 +387,9 @@ namespace Pk { [Version (since = "0.5.4")] public string description { owned get; set; } [NoAccessorMethod] + [Version (since = "1.2.4")] + public uint64 download_size { get; set; } + [NoAccessorMethod] [Version (since = "0.5.4")] public Pk.Group group { get; set; } [NoAccessorMethod] @@ -538,6 +543,8 @@ namespace Pk { public unowned string get_name (); [Version (since = "0.5.4")] public unowned string get_summary (); + [Version (since = "1.2.4")] + public Pk.Info get_update_severity (); [Version (since = "0.6.4")] public unowned string get_version (); [Version (since = "0.5.0")] @@ -582,6 +589,8 @@ namespace Pk { public void set_info (Pk.Info info); [Version (since = "0.8.14")] public void set_summary (string summary); + [Version (since = "1.2.4")] + public void set_update_severity (Pk.Info update_severity); [NoAccessorMethod] [Version (since = "0.5.4")] public string description { owned get; set; } @@ -621,6 +630,8 @@ namespace Pk { [NoAccessorMethod] [Version (since = "0.5.4")] public Pk.Restart update_restart { get; set; } + [Version (since = "1.2.4")] + public Pk.Info update_severity { get; set; } [NoAccessorMethod] [Version (since = "0.5.4")] public Pk.UpdateState update_state { get; set; } @@ -1537,6 +1548,7 @@ namespace Pk { UNTRUSTED, TRUSTED, UNAVAILABLE, + CRITICAL, LAST; [CCode (cname = "pk_info_enum_from_string")] [Version (since = "0.5.0")] @@ -1610,6 +1622,13 @@ namespace Pk { [Version (since = "0.9.6")] public unowned string to_string (); } + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_OFFLINE_FLAGS_", type_id = "pk_offline_flags_get_type ()")] + [Flags] + [Version (since = "1.2.5")] + public enum OfflineFlags { + NONE, + INTERACTIVE + } [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_PACKAGE_SACK_SORT_TYPE_", type_id = "pk_package_sack_sort_type_get_type ()")] public enum PackageSackSortType { NAME, @@ -1865,6 +1884,7 @@ namespace Pk { INVALID_FILE, NOT_SUPPORTED, DECLINED_SIMULATION, + DECLINED_INTERACTION, LAST; [Version (since = "0.5.2")] public static GLib.Quark quark (); @@ -1988,9 +2008,15 @@ namespace Pk { [Version (since = "0.9.6")] public static bool offline_cancel (GLib.Cancellable? cancellable = null) throws GLib.Error; [CCode (cheader_filename = "packagekit-glib2/packagekit.h")] + [Version (since = "1.2.5")] + public static bool offline_cancel_with_flags (Pk.OfflineFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error; + [CCode (cheader_filename = "packagekit-glib2/packagekit.h")] [Version (since = "0.9.6")] public static bool offline_clear_results (GLib.Cancellable? cancellable = null) throws GLib.Error; [CCode (cheader_filename = "packagekit-glib2/packagekit.h")] + [Version (since = "1.2.5")] + public static bool offline_clear_results_with_flags (Pk.OfflineFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error; + [CCode (cheader_filename = "packagekit-glib2/packagekit.h")] [Version (replacement = "OfflineError.quark", since = "0.9.6")] public static GLib.Quark offline_error_quark (); [CCode (cheader_filename = "packagekit-glib2/packagekit.h")] @@ -2030,6 +2056,12 @@ namespace Pk { [Version (since = "1.0.12")] public static bool offline_trigger_upgrade (Pk.OfflineAction action, GLib.Cancellable? cancellable = null) throws GLib.Error; [CCode (cheader_filename = "packagekit-glib2/packagekit.h")] + [Version (since = "1.2.5")] + public static bool offline_trigger_upgrade_with_flags (Pk.OfflineAction action, Pk.OfflineFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error; + [CCode (cheader_filename = "packagekit-glib2/packagekit.h")] + [Version (since = "1.2.5")] + public static bool offline_trigger_with_flags (Pk.OfflineAction action, Pk.OfflineFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error; + [CCode (cheader_filename = "packagekit-glib2/packagekit.h")] public static void polkit_agent_close (); [CCode (cheader_filename = "packagekit-glib2/packagekit.h")] public static int polkit_agent_open (); |