]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gdk-pixbuf-2.0: Rename take_data to with_unowned_data
authorMichal Hruby <michal.mhr@gmail.com>
Mon, 28 May 2012 19:35:06 +0000 (21:35 +0200)
committerMichal Hruby <michal.mhr@gmail.com>
Mon, 28 May 2012 19:35:06 +0000 (21:35 +0200)
vapi/gdk-pixbuf-2.0.vapi
vapi/metadata/GdkPixbuf-2.0-custom.vala

index ee919cdf0e41727bcf0c3bcb0b2d2cdc0881e00e..d33d9f4ac9b4a8a13c856574797affcbdd74ebe1 100644 (file)
@@ -68,7 +68,7 @@ namespace Gdk {
                [CCode (has_construct_function = false)]
                public Pixbuf.subpixbuf (Gdk.Pixbuf src_pixbuf, int src_x, int src_y, int width, int height);
                [CCode (cname = "gdk_pixbuf_new_from_data", has_construct_function = false)]
-               public Pixbuf.take_data ([CCode (array_length = false)] uint8[] data, Gdk.Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height, int rowstride, [CCode (type = "GdkPixbufDestroyNotify")] Gdk.PixbufDestroyNotify? destroy_fn = null);
+               public Pixbuf.with_unowned_data ([CCode (array_length = false)] uint8[] data, Gdk.Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height, int rowstride, [CCode (type = "GdkPixbufDestroyNotify")] Gdk.PixbufDestroyNotify? destroy_fn = null);
                public int bits_per_sample { get; construct; }
                public Gdk.Colorspace colorspace { get; construct; }
                public bool has_alpha { get; construct; }
index 30c84a319cc72a39addc441148506f6574164ced..061b70ab62abb912986848e7cf4f3e989aa4726c 100644 (file)
@@ -3,7 +3,7 @@ namespace Gdk {
                [CCode (has_construct_function = false)]
                public Pixbuf.from_data ([CCode (array_length = false)] owned uint8[] data, Gdk.Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height, int rowstride, [CCode (type = "GdkPixbufDestroyNotify")] Gdk.PixbufDestroyNotify? destroy_fn = GLib.free);
                [CCode (has_construct_function = false, cname = "gdk_pixbuf_new_from_data")]
-               public Pixbuf.take_data ([CCode (array_length = false)] uint8[] data, Gdk.Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height, int rowstride, [CCode (type = "GdkPixbufDestroyNotify")] Gdk.PixbufDestroyNotify? destroy_fn = null);
+               public Pixbuf.with_unowned_data ([CCode (array_length = false)] uint8[] data, Gdk.Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height, int rowstride, [CCode (type = "GdkPixbufDestroyNotify")] Gdk.PixbufDestroyNotify? destroy_fn = null);
                [CCode (cname = "gdk_pixbuf_new_from_stream_async", finish_name = "gdk_pixbuf_new_from_stream_finish")]
                public static async Gdk.Pixbuf new_from_stream_async (GLib.InputStream stream, GLib.Cancellable? cancellable = null) throws GLib.Error;
                [CCode (cname = "gdk_pixbuf_new_from_stream_at_scale_async", finish_name = "gdk_pixbuf_new_from_stream_finish")]