[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: Mon, 28 Mar 2022 13:28:18 +0000 (UTC)
commit 0e822dff98c92a888a10c0d9fe04c724f95a0d79
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Mar 28 15:27:45 2022 +0200
vapi: Update GIR-based bindings
vapi/gnome-desktop-3.0.vapi | 5 +++++
vapi/gnome-desktop-4.vapi | 5 +++++
vapi/gtk4.vapi | 18 +++++++++++++++++-
vapi/libpeas-1.0.vapi | 8 +++-----
vapi/libpeas-gtk-1.0.vapi | 2 +-
vapi/metadata/GnomeDesktop-3.0.metadata | 3 +++
vapi/metadata/GnomeDesktop-4.0.metadata | 3 +++
7 files changed, 37 insertions(+), 7 deletions(-)
---
diff --git a/vapi/gnome-desktop-3.0.vapi b/vapi/gnome-desktop-3.0.vapi
index 24d80a8a7..7a5b2954b 100644
--- a/vapi/gnome-desktop-3.0.vapi
+++ b/vapi/gnome-desktop-3.0.vapi
@@ -369,8 +369,13 @@ namespace Gnome {
}
[CCode (cheader_filename = "libgnome-desktop/gnome-idle-monitor.h", instance_pos = 2.9)]
public delegate void IdleMonitorWatchFunc (Gnome.IdleMonitor monitor, uint id);
+ [CCode (cheader_filename = "libgnome-desktop/gnome-desktop-version.h", cname =
"GNOME_DESKTOP_PLATFORM_VERSION")]
+ public const int DESKTOP_PLATFORM_VERSION;
[CCode (cheader_filename = "libgnome-desktop/gnome-rr.h", cname = "GNOME_RR_CONNECTOR_TYPE_PANEL")]
public const string RR_CONNECTOR_TYPE_PANEL;
+ [CCode (cheader_filename = "libgnome-desktop/gnome-desktop-version.h")]
+ [Version (since = "43.0")]
+ public static int get_platform_version ();
[CCode (cheader_filename = "libgnome-desktop/gnome-systemd.h")]
public static async bool start_systemd_scope (string name, int32 pid, string? description,
GLib.DBusConnection? connection, GLib.Cancellable? cancellable) throws GLib.Error;
}
diff --git a/vapi/gnome-desktop-4.vapi b/vapi/gnome-desktop-4.vapi
index 1475bdad4..04ef5b299 100644
--- a/vapi/gnome-desktop-4.vapi
+++ b/vapi/gnome-desktop-4.vapi
@@ -123,6 +123,11 @@ namespace Gnome {
}
[CCode (cheader_filename = "libgnome-desktop/gnome-idle-monitor.h", instance_pos = 2.9)]
public delegate void IdleMonitorWatchFunc (Gnome.IdleMonitor monitor, uint id);
+ [CCode (cheader_filename = "libgnome-desktop/gnome-desktop-version.h", cname =
"GNOME_DESKTOP_PLATFORM_VERSION")]
+ public const int DESKTOP_PLATFORM_VERSION;
+ [CCode (cheader_filename = "libgnome-desktop/gnome-desktop-version.h")]
+ [Version (since = "43.0")]
+ public static int get_platform_version ();
[CCode (cheader_filename = "libgnome-desktop/gnome-systemd.h")]
public static async bool start_systemd_scope (string name, int32 pid, string? description,
GLib.DBusConnection? connection, GLib.Cancellable? cancellable) throws GLib.Error;
}
diff --git a/vapi/gtk4.vapi b/vapi/gtk4.vapi
index 81f1604f6..a66245268 100644
--- a/vapi/gtk4.vapi
+++ b/vapi/gtk4.vapi
@@ -5357,6 +5357,8 @@ namespace Gdk {
protected ScrollEvent ();
public void get_deltas (out double delta_x, out double delta_y);
public Gdk.ScrollDirection get_direction ();
+ [Version (since = "4.8")]
+ public Gdk.ScrollUnit get_unit ();
public bool is_stop ();
}
[CCode (cheader_filename = "gdk/gdk.h", type_id = "gdk_seat_get_type ()")]
@@ -5859,6 +5861,12 @@ namespace Gdk {
RIGHT,
SMOOTH
}
+ [CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_SCROLL_UNIT_", type_id =
"gdk_scroll_unit_get_type ()")]
+ [Version (since = "4.8")]
+ public enum ScrollUnit {
+ WHEEL,
+ SURFACE
+ }
[CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_SEAT_CAPABILITY_", type_id =
"gdk_seat_capabilities_get_type ()")]
[Flags]
public enum SeatCapabilities {
@@ -6173,7 +6181,7 @@ namespace Gsk {
[CCode (cheader_filename = "gsk/gsk.h", type_id = "gsk_gl_shader_node_get_type ()")]
public class GLShaderNode : Gsk.RenderNode {
[CCode (has_construct_function = false, type = "GskRenderNode*")]
- public GLShaderNode (Gsk.GLShader shader, Graphene.Rect bounds, GLib.Bytes args, [CCode
(array_length_cname = "n_children", array_length_pos = 4.1, array_length_type = "guint")] Gsk.RenderNode[]
children);
+ public GLShaderNode (Gsk.GLShader shader, Graphene.Rect bounds, GLib.Bytes args, [CCode
(array_length_cname = "n_children", array_length_pos = 4.1, array_length_type = "guint")] Gsk.RenderNode[]?
children);
public unowned GLib.Bytes get_args ();
public unowned Gsk.RenderNode get_child (uint idx);
public uint get_n_children ();
@@ -8285,6 +8293,8 @@ namespace Gtk {
[CCode (has_construct_function = false, type = "GtkEventController*")]
public EventControllerScroll (Gtk.EventControllerScrollFlags flags);
public Gtk.EventControllerScrollFlags get_flags ();
+ [Version (since = "4.8")]
+ public Gdk.ScrollUnit get_unit ();
public void set_flags (Gtk.EventControllerScrollFlags flags);
public Gtk.EventControllerScrollFlags flags { get; set; }
public signal void decelerate (double vel_x, double vel_y);
@@ -10553,11 +10563,17 @@ namespace Gtk {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public SearchEntry ();
public unowned Gtk.Widget? get_key_capture_widget ();
+ [Version (since = "4.8")]
+ public uint get_search_delay ();
public void set_key_capture_widget (Gtk.Widget? widget);
+ [Version (since = "4.8")]
+ public void set_search_delay (uint delay);
[NoAccessorMethod]
public bool activates_default { get; set; }
[NoAccessorMethod]
public string placeholder_text { owned get; set; }
+ [Version (since = "4.8")]
+ public uint search_delay { get; set; }
public signal void activate ();
public signal void next_match ();
public signal void previous_match ();
diff --git a/vapi/libpeas-1.0.vapi b/vapi/libpeas-1.0.vapi
index 6d2835695..cbdbefe11 100644
--- a/vapi/libpeas-1.0.vapi
+++ b/vapi/libpeas-1.0.vapi
@@ -61,7 +61,7 @@ namespace Peas {
public virtual bool call (string method_name, GI.Argument args);
[Version (since = "1.2")]
public void @foreach (Peas.ExtensionSetForeachFunc func);
- public unowned Peas.Extension get_extension (Peas.PluginInfo info);
+ public unowned Peas.Extension? get_extension (Peas.PluginInfo info);
[CCode (cname = "peas_extension_set_newv", has_construct_function = false)]
public ExtensionSet.newv (Peas.Engine? engine, GLib.Type exten_type, [CCode
(array_length_cname = "n_parameters", array_length_pos = 2.5, array_length_type = "guint")] GLib.Parameter[]
parameters);
[CCode (has_construct_function = false)]
@@ -104,14 +104,14 @@ namespace Peas {
public unowned string[] get_dependencies ();
public unowned string get_description ();
[Version (since = "1.6")]
- public unowned string get_external_data (string key);
+ public unowned string? get_external_data (string key);
public unowned string get_help_uri ();
public unowned string get_icon_name ();
public unowned string get_module_dir ();
public unowned string get_module_name ();
public unowned string get_name ();
[Version (since = "1.4")]
- public GLib.Settings get_settings (string? schema_id);
+ public GLib.Settings? get_settings (string? schema_id);
public unowned string get_version ();
public unowned string get_website ();
public bool has_dependency (string module_name);
@@ -142,6 +142,4 @@ namespace Peas {
public delegate void ExtensionSetForeachFunc (Peas.ExtensionSet @set, Peas.PluginInfo info,
Peas.Extension exten);
[CCode (cheader_filename = "libpeas/peas.h", instance_pos = 1.9)]
public delegate GLib.Object FactoryFunc ([CCode (array_length_cname = "n_parameters",
array_length_pos = 0.5, array_length_type = "guint")] GLib.Parameter[] parameters);
- [CCode (cheader_filename = "libpeas/peas.h")]
- public static void cclosure_marshal_VOID__BOXED_OBJECT (GLib.Closure closure, GLib.Value
return_value, uint n_param_values, GLib.Value param_values, void* invocation_hint, void* marshal_data);
}
diff --git a/vapi/libpeas-gtk-1.0.vapi b/vapi/libpeas-gtk-1.0.vapi
index 49b9ba007..618b815c1 100644
--- a/vapi/libpeas-gtk-1.0.vapi
+++ b/vapi/libpeas-gtk-1.0.vapi
@@ -15,7 +15,7 @@ namespace PeasGtk {
public class PluginManagerView : Gtk.TreeView, Atk.Implementor, Gtk.Buildable, Gtk.Scrollable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public PluginManagerView (Peas.Engine? engine);
- public unowned Peas.PluginInfo get_selected_plugin ();
+ public unowned Peas.PluginInfo? get_selected_plugin ();
[Version (deprecated = true, deprecated_since = "1.2")]
public bool get_show_builtin ();
public void set_selected_plugin (Peas.PluginInfo info);
diff --git a/vapi/metadata/GnomeDesktop-3.0.metadata b/vapi/metadata/GnomeDesktop-3.0.metadata
index 1a11e5a05..3536d1dd6 100644
--- a/vapi/metadata/GnomeDesktop-3.0.metadata
+++ b/vapi/metadata/GnomeDesktop-3.0.metadata
@@ -13,6 +13,9 @@ BGSlideShow
DesktopThumbnail* cheader_filename="libgnome-desktop/gnome-desktop-thumbnail.h"
desktop_thumbnail_* parent="Gnome.DesktopThumbnail" name="desktop_thumbnail_(.+)"
cheader_filename="libgnome-desktop/gnome-desktop-thumbnail.h"
+DESKTOP_PLATFORM_VERSION cheader_filename="libgnome-desktop/gnome-desktop-version.h"
+get_platform_version cheader_filename="libgnome-desktop/gnome-desktop-version.h"
+
get_language_from_locale parent="Gnome.Languages" cheader_filename="libgnome-desktop/gnome-languages.h"
get_country_from_locale parent="Gnome.Languages" cheader_filename="libgnome-desktop/gnome-languages.h"
get_all_locales parent="Gnome.Languages" cheader_filename="libgnome-desktop/gnome-languages.h"
diff --git a/vapi/metadata/GnomeDesktop-4.0.metadata b/vapi/metadata/GnomeDesktop-4.0.metadata
index 2a710dd5f..76630db66 100644
--- a/vapi/metadata/GnomeDesktop-4.0.metadata
+++ b/vapi/metadata/GnomeDesktop-4.0.metadata
@@ -1,6 +1,9 @@
DesktopThumbnail* cheader_filename="libgnome-desktop/gnome-desktop-thumbnail.h"
desktop_thumbnail_* parent="Gnome.DesktopThumbnail" name="desktop_thumbnail_(.+)"
cheader_filename="libgnome-desktop/gnome-desktop-thumbnail.h"
+DESKTOP_PLATFORM_VERSION cheader_filename="libgnome-desktop/gnome-desktop-version.h"
+get_platform_version cheader_filename="libgnome-desktop/gnome-desktop-version.h"
+
get_language_from_locale parent="Gnome.Languages" cheader_filename="libgnome-desktop/gnome-languages.h"
get_country_from_locale parent="Gnome.Languages" cheader_filename="libgnome-desktop/gnome-languages.h"
get_all_locales parent="Gnome.Languages" cheader_filename="libgnome-desktop/gnome-languages.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]