]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapi: Update GIR-based bindings
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 10 Aug 2021 15:09:06 +0000 (17:09 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 10 Aug 2021 15:10:15 +0000 (17:10 +0200)
vapi/gio-2.0.vapi
vapi/gmodule-2.0.vapi
vapi/gnome-desktop-3.0.vapi
vapi/gobject-introspection-1.0.vapi
vapi/libwnck-3.0.vapi
vapi/metadata/Wnck-3.0.metadata

index 9b343e1f50c7eea2438650fb7a269e29d0dba7fd..b3a24f38d475f9ccc8ee8236b4efa98053ef65a6 100644 (file)
@@ -1498,6 +1498,9 @@ namespace GLib {
                [CCode (cheader_filename = "gio/gio.h", cname = "G_NETWORK_MONITOR_EXTENSION_POINT_NAME")]
                [Version (since = "2.30")]
                public const string NETWORK_MONITOR;
+               [CCode (cheader_filename = "gio/gio.h", cname = "G_POWER_PROFILE_MONITOR_EXTENSION_POINT_NAME")]
+               [Version (since = "2.70")]
+               public const string POWER_PROFILE_MONITOR;
                [CCode (cheader_filename = "gio/gio.h", cname = "G_PROXY_EXTENSION_POINT_NAME")]
                [Version (since = "2.26")]
                public const string PROXY;
@@ -2014,6 +2017,8 @@ namespace GLib {
                public void add_button (string label, string detailed_action);
                public void add_button_with_target_value (string label, string action, GLib.Variant? target);
                public void set_body (string? body);
+               [Version (since = "2.70")]
+               public void set_category (string? category);
                public void set_default_action (string detailed_action);
                public void set_default_action_and_target_value (string action, GLib.Variant? target);
                public void set_icon (GLib.Icon icon);
@@ -3963,6 +3968,14 @@ namespace GLib {
                [Version (since = "2.60")]
                public abstract GLib.PollableReturn writev_nonblocking_fn ([CCode (array_length_cname = "n_vectors", array_length_pos = 1.5, array_length_type = "gsize")] GLib.OutputVector[] vectors, out size_t bytes_written) throws GLib.Error;
        }
+       [CCode (cheader_filename = "gio/gio.h", type_cname = "GPowerProfileMonitorInterface", type_id = "g_power_profile_monitor_get_type ()")]
+       [Version (since = "2.70")]
+       public interface PowerProfileMonitor : GLib.Initable, GLib.Object {
+               public static GLib.PowerProfileMonitor dup_default ();
+               public bool get_power_saver_enabled ();
+               [ConcreteAccessor]
+               public abstract bool power_saver_enabled { get; }
+       }
        [CCode (cheader_filename = "gio/gio.h", type_cname = "GProxyInterface", type_id = "g_proxy_get_type ()")]
        [Version (since = "2.26")]
        public interface Proxy : GLib.Object {
@@ -5123,6 +5136,9 @@ namespace GLib {
        [Version (since = "2.34")]
        public static bool pollable_stream_write_all (GLib.OutputStream stream, [CCode (array_length_cname = "count", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] buffer, bool blocking, out size_t bytes_written, GLib.Cancellable? cancellable = null) throws GLib.Error;
        [CCode (cheader_filename = "gio/gio.h")]
+       [Version (replacement = "PowerProfileMonitor.dup_default", since = "2.70")]
+       public static GLib.PowerProfileMonitor power_profile_monitor_dup_default ();
+       [CCode (cheader_filename = "gio/gio.h")]
        [Version (replacement = "ResolverError.quark", since = "2.22")]
        public static GLib.Quark resolver_error_quark ();
        [CCode (cheader_filename = "gio/gio.h")]
index 680a3346486e7c5586f2f9fe0b18fa4c29605b70..6149fb3f051fc2c6da5e2d67397e5382ba23d34c 100644 (file)
@@ -10,6 +10,7 @@ namespace GLib {
                [DestroysInstance]
                public bool close ();
                public static unowned string error ();
+               public static GLib.Quark error_quark ();
                public void make_resident ();
                public unowned string name ();
                public static GLib.Module? open (string? file_name, GLib.ModuleFlags flags);
@@ -31,6 +32,14 @@ namespace GLib {
                LOCAL,
                MASK
        }
+       [CCode (cheader_filename = "gmodule.h", cprefix = "G_MODULE_ERROR_")]
+       [Version (since = "2.70")]
+       public errordomain ModuleError {
+               FAILED,
+               CHECK_FAILED;
+               [Version (replacement = "Module.error_quark")]
+               public static GLib.Quark quark ();
+       }
        [CCode (cheader_filename = "gmodule.h", has_target = false)]
        public delegate unowned string ModuleCheckInit (GLib.Module module);
        [CCode (cheader_filename = "gmodule.h", has_target = false)]
index e7cf14462423238da87249397e5a4e014498f490..e145f7ec0bbfd7f6e6485c54f224a62c943ea631 100644 (file)
@@ -312,6 +312,7 @@ namespace Gnome {
                public GLib.List<weak string> get_layouts_for_language (string language_code);
                [Version (since = "3.6")]
                public GLib.List<weak string> get_options_for_group (string group_id);
+               public signal void layouts_changed ();
        }
        [CCode (cheader_filename = "libgnome-desktop/gnome-rr.h", has_type_id = false)]
        public struct RRCTM {
index f0b16d3de6509cf1eb4212bc184fd55ed0b0e693..b0fbcf4a3c8c23f8b6e66c7de008e9f86344261e 100644 (file)
@@ -132,6 +132,8 @@ namespace GI {
                public GI.StructInfo? get_class_struct ();
                public GI.ConstantInfo get_constant (int n);
                public GI.FieldInfo get_field (int n);
+               [Version (since = "1.70")]
+               public bool get_final ();
                public bool get_fundamental ();
                public unowned string? get_get_value_function ();
                public unowned GI.ObjectInfoGetValueFunction? get_get_value_function_pointer ();
@@ -161,7 +163,9 @@ namespace GI {
        [Compact]
        public class PropertyInfo : GI.BaseInfo {
                public GLib.ParamFlags get_flags ();
+               public GI.FunctionInfo? get_getter ();
                public GI.Transfer get_ownership_transfer ();
+               public GI.FunctionInfo? get_setter ();
                public GI.TypeInfo get_type ();
        }
        [CCode (cheader_filename = "girepository.h", type_id = "g_base_info_gtype_get_type ()")]
index 9fce7617f7f67c8590470cce16ecbf72d22df053..4c339847ab74a9a508985efa79de931cc607e729 100644 (file)
@@ -162,6 +162,7 @@ namespace Wnck {
                public Tasklist ();
                [Version (since = "3.24.0")]
                public bool get_scroll_enabled ();
+               [Version (deprecated = true, deprecated_since = "3.42")]
                public int get_size_hint_list (int n_elements);
                [Version (since = "2.12")]
                public void set_button_relief (Gtk.ReliefStyle relief);
index aa07635fe99a9d5fc764173e3d2656a6aa19c87d..c0dbd60b09e8afce39881929afce52c91bd0e577 100644 (file)
@@ -3,5 +3,7 @@ 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
+Handle skip
+IconCache skip
 Tasklist
        .task_*_notify#signal.windows type="GLib.List<unowned Wnck.Window>"