[vala/staging] vapi: Update GIR-based bindings
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] vapi: Update GIR-based bindings
- Date: Tue, 10 Aug 2021 15:12:52 +0000 (UTC)
commit 0afdde060b0cc3d4c575f6686730a38441e92966
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Aug 10 17:09:06 2021 +0200
vapi: Update GIR-based bindings
vapi/gio-2.0.vapi | 16 ++++++++++++++++
vapi/gmodule-2.0.vapi | 9 +++++++++
vapi/gnome-desktop-3.0.vapi | 1 +
vapi/gobject-introspection-1.0.vapi | 4 ++++
vapi/libwnck-3.0.vapi | 1 +
vapi/metadata/Wnck-3.0.metadata | 2 ++
6 files changed, 33 insertions(+)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 9b343e1f5..b3a24f38d 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -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")]
diff --git a/vapi/gmodule-2.0.vapi b/vapi/gmodule-2.0.vapi
index 680a33464..6149fb3f0 100644
--- a/vapi/gmodule-2.0.vapi
+++ b/vapi/gmodule-2.0.vapi
@@ -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)]
diff --git a/vapi/gnome-desktop-3.0.vapi b/vapi/gnome-desktop-3.0.vapi
index e7cf14462..e145f7ec0 100644
--- a/vapi/gnome-desktop-3.0.vapi
+++ b/vapi/gnome-desktop-3.0.vapi
@@ -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 {
diff --git a/vapi/gobject-introspection-1.0.vapi b/vapi/gobject-introspection-1.0.vapi
index f0b16d3de..b0fbcf4a3 100644
--- a/vapi/gobject-introspection-1.0.vapi
+++ b/vapi/gobject-introspection-1.0.vapi
@@ -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 ()")]
diff --git a/vapi/libwnck-3.0.vapi b/vapi/libwnck-3.0.vapi
index 9fce7617f..4c339847a 100644
--- a/vapi/libwnck-3.0.vapi
+++ b/vapi/libwnck-3.0.vapi
@@ -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);
diff --git a/vapi/metadata/Wnck-3.0.metadata b/vapi/metadata/Wnck-3.0.metadata
index aa07635fe..c0dbd60b0 100644
--- a/vapi/metadata/Wnck-3.0.metadata
+++ b/vapi/metadata/Wnck-3.0.metadata
@@ -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>"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]