From 31191b683b4ff425a2b028c96dae4f51c8bf35a1 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Sun, 13 Nov 2022 16:42:43 +0100 Subject: vapi: Update GIR-based bindings --- vapi/gnome-desktop-4.vapi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'vapi/gnome-desktop-4.vapi') diff --git a/vapi/gnome-desktop-4.vapi b/vapi/gnome-desktop-4.vapi index 04ef5b299..6378f4920 100644 --- a/vapi/gnome-desktop-4.vapi +++ b/vapi/gnome-desktop-4.vapi @@ -50,18 +50,18 @@ namespace Gnome { [Version (since = "2.2")] public bool can_thumbnail (string uri, string mime_type, long mtime); [Version (since = "2.2")] - public void create_failed_thumbnail (string uri, long mtime); - public async void create_failed_thumbnail_async (string uri, long original_mtime, GLib.Cancellable? cancellable) throws GLib.Error; - [Version (since = "2.2")] - public Gdk.Pixbuf generate_thumbnail (string uri, string mime_type); + public bool create_failed_thumbnail (string uri, long mtime, GLib.Cancellable? cancellable = null) throws GLib.Error; + public async bool create_failed_thumbnail_async (string uri, long original_mtime, GLib.Cancellable? cancellable) throws GLib.Error; + [Version (since = "42.0")] + public Gdk.Pixbuf generate_thumbnail (string uri, string mime_type, GLib.Cancellable? cancellable = null) throws GLib.Error; public async Gdk.Pixbuf generate_thumbnail_async (string uri, string mime_type, GLib.Cancellable? cancellable) throws GLib.Error; [Version (since = "2.2")] public bool has_valid_failed_thumbnail (string uri, long mtime); [Version (since = "2.2")] public string lookup (string uri, long mtime); [Version (since = "2.2")] - public void save_thumbnail (Gdk.Pixbuf thumbnail, string uri, long original_mtime); - public async void save_thumbnail_async (Gdk.Pixbuf thumbnail, string uri, long original_mtime, GLib.Cancellable? cancellable) throws GLib.Error; + public bool save_thumbnail (Gdk.Pixbuf thumbnail, string uri, long original_mtime, GLib.Cancellable? cancellable = null) throws GLib.Error; + public async bool save_thumbnail_async (Gdk.Pixbuf thumbnail, string uri, long original_mtime, GLib.Cancellable? cancellable) throws GLib.Error; } [CCode (cheader_filename = "libgnome-desktop/gnome-idle-monitor.h", type_id = "gnome_idle_monitor_get_type ()")] public class IdleMonitor : GLib.Object, GLib.Initable { -- cgit v1.2.1