From 613210b2410577844bafdf8aff3cc8d50399a1a5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Corentin=20No=C3=ABl?= Date: Tue, 13 Nov 2018 06:57:36 +0100 Subject: [PATCH] gio-2.0: Add missing File.new_build_filename() --- vapi/gio-2.0.vapi | 2 ++ vapi/metadata/Gio-2.0-custom.vala | 2 ++ 2 files changed, 4 insertions(+) diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi index c4ebabab9..adefb2723 100644 --- a/vapi/gio-2.0.vapi +++ b/vapi/gio-2.0.vapi @@ -3542,6 +3542,8 @@ namespace GLib { public abstract async bool mount_enclosing_volume (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error; public abstract async GLib.File mount_mountable (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error; public abstract bool move (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable = null, GLib.FileProgressCallback? progress_callback = null) throws GLib.Error; + [Version (since = "2.56")] + public static GLib.File new_build_filename (string first_element, ...); public static GLib.File new_for_commandline_arg (string arg); [Version (since = "2.36")] public static GLib.File new_for_commandline_arg_and_cwd (string arg, string cwd); diff --git a/vapi/metadata/Gio-2.0-custom.vala b/vapi/metadata/Gio-2.0-custom.vala index c5a0838d9..1909e6b82 100644 --- a/vapi/metadata/Gio-2.0-custom.vala +++ b/vapi/metadata/Gio-2.0-custom.vala @@ -167,6 +167,8 @@ namespace GLib { public interface File : GLib.Object { public virtual async bool copy_async (GLib.File destination, GLib.FileCopyFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null, GLib.FileProgressCallback? progress_callback = null) throws GLib.Error; public async bool load_partial_contents_async (GLib.Cancellable? cancellable = null, [CCode (delegate_target_pos = -0.9)] GLib.FileReadMoreCallback read_more_callback, [CCode (array_length_cname = "length", array_length_pos = 2.5, array_length_type = "gsize")] out uint8[] contents, out string etag_out) throws GLib.Error; + [Version (since = "2.56")] + public static GLib.File new_build_filename (string first_element, ...); } public interface Icon : GLib.Object { -- 2.47.2