From: Rico Tzschichholz Date: Tue, 28 Feb 2017 15:19:29 +0000 (+0100) Subject: gdk-pixbuf-2.0: Use correct finish-func for Pixbuf.from_stream_at_scale_async() X-Git-Tag: 0.35.7~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f5213a655583ef8397cbbf38f2b8027fefaccfb;p=thirdparty%2Fvala.git gdk-pixbuf-2.0: Use correct finish-func for Pixbuf.from_stream_at_scale_async() https://bugzilla.gnome.org/show_bug.cgi?id=779366 --- diff --git a/vapi/gdk-pixbuf-2.0.vapi b/vapi/gdk-pixbuf-2.0.vapi index fe4104850..4f47f534c 100644 --- a/vapi/gdk-pixbuf-2.0.vapi +++ b/vapi/gdk-pixbuf-2.0.vapi @@ -47,13 +47,13 @@ namespace Gdk { [CCode (has_construct_function = false)] [Version (since = "2.14")] public Pixbuf.from_stream (GLib.InputStream stream, GLib.Cancellable? cancellable = null) throws GLib.Error; - [CCode (cname = "gdk_pixbuf_new_from_stream_async", has_construct_function = false)] + [CCode (finish_name = "gdk_pixbuf_new_from_stream_finish", has_construct_function = false, type = "void")] [Version (since = "2.24")] public async Pixbuf.from_stream_async (GLib.InputStream stream, GLib.Cancellable? cancellable = null) throws GLib.Error; [CCode (has_construct_function = false)] [Version (since = "2.14")] public Pixbuf.from_stream_at_scale (GLib.InputStream stream, int width, int height, bool preserve_aspect_ratio, GLib.Cancellable? cancellable = null) throws GLib.Error; - [CCode (finish_name = "gdk_pixbuf_save_to_stream_finish", has_construct_function = false, type = "void")] + [CCode (finish_name = "gdk_pixbuf_new_from_stream_finish", has_construct_function = false, type = "void")] [Version (since = "2.24")] public async Pixbuf.from_stream_at_scale_async (GLib.InputStream stream, int width, int height, bool preserve_aspect_ratio, GLib.Cancellable? cancellable = null) throws GLib.Error; [CCode (has_construct_function = false)] diff --git a/vapi/metadata/GdkPixbuf-2.0.metadata b/vapi/metadata/GdkPixbuf-2.0.metadata index acc4124f3..003ddaebb 100644 --- a/vapi/metadata/GdkPixbuf-2.0.metadata +++ b/vapi/metadata/GdkPixbuf-2.0.metadata @@ -2,7 +2,9 @@ Pixbuf .new_from_xpm_data.data type="string[]" - .new_from_stream_at_scale_async symbol_type="constructor" throws="GLib.Error" finish_name="gdk_pixbuf_save_to_stream_finish" + .new_from_stream_async symbol_type="constructor" finish_name="gdk_pixbuf_new_from_stream_finish" throws="GLib.Error" + .new_from_stream_at_scale_async symbol_type="constructor" finish_name="gdk_pixbuf_new_from_stream_finish" throws="GLib.Error" + .new_from_stream_finish skip .new_from_data.data owned .new_subpixbuf symbol_type="constructor" .get_file_info_async.cancellable default=()