]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gdk-pixbuf-2.0: remove some obsolete metadata
authorEvan Nemerson <evan@coeus-group.com>
Mon, 25 Jun 2012 22:33:58 +0000 (15:33 -0700)
committerEvan Nemerson <evan@coeus-group.com>
Mon, 25 Jun 2012 22:33:58 +0000 (15:33 -0700)
vapi/gdk-pixbuf-2.0.vapi
vapi/metadata/GdkPixbuf-2.0-custom.vala
vapi/metadata/GdkPixbuf-2.0.metadata

index 2954169de0cd755f6085f009792ac5bfac189bd1..f11a034593d618505c2bb621a9acd15e3503fe06 100644 (file)
@@ -33,8 +33,14 @@ namespace Gdk {
                public Pixbuf.from_resource_at_scale (string resource_path, int width, int height, bool preserve_aspect_ratio) throws GLib.Error;
                [CCode (has_construct_function = false)]
                public Pixbuf.from_stream (GLib.InputStream stream, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               [CCode (cname = "gdk_pixbuf_new_from_stream_async")]
+               public async Pixbuf.from_stream_async (GLib.InputStream stream, GLib.Cancellable? cancellable);
                [CCode (has_construct_function = false)]
                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 (cname = "gdk_pixbuf_new_from_stream_at_scale_async", finish_name = "gdk_pixbuf_new_from_stream_finish")]
+               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)]
+               public Pixbuf.from_stream_finish (GLib.AsyncResult async_result) throws GLib.Error;
                [CCode (has_construct_function = false)]
                public Pixbuf.from_xpm_data ([CCode (array_length = false, type = "char**")] string[] data);
                public int get_bits_per_sample ();
@@ -53,8 +59,10 @@ namespace Gdk {
                public int get_rowstride ();
                public int get_width ();
                [CCode (cname = "gdk_pixbuf_new_from_stream_async", finish_name = "gdk_pixbuf_new_from_stream_finish")]
+               [Deprecated (replacement = "Pixbuf.from_stream_async", since = "vala-0.18")]
                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")]
+               [Deprecated (replacement = "Pixbuf.from_stream_at_scale_async", since = "vala-0.18")]
                public static async Gdk.Pixbuf new_from_stream_at_scale_async (GLib.InputStream stream, int width, int height, bool preserve_aspect_ratio, GLib.Cancellable? cancellable = null) throws GLib.Error;
                public Gdk.Pixbuf rotate_simple (Gdk.PixbufRotation angle);
                public void saturate_and_pixelate (Gdk.Pixbuf dest, float saturation, bool pixelate);
@@ -225,7 +233,7 @@ namespace Gdk {
                FAILED;
                public static GLib.Quark quark ();
        }
-       [CCode (cheader_filename = "gdk-pixbuf/gdk-pixdata.h")]
+       [CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h", instance_pos = 1.9)]
        public delegate void PixbufDestroyNotify ([CCode (array_length = false)] uint8[] pixels);
        [CCode (cheader_filename = "gdk-pixbuf/gdk-pixdata.h", instance_pos = -0.9)]
        public delegate bool PixbufSaveFunc ([CCode (array_length_type = "gsize")] uint8[] buf) throws GLib.Error;
index 061b70ab62abb912986848e7cf4f3e989aa4726c..e77155098de66d7d5bb29ecf66c92a788dfa1ff3 100644 (file)
@@ -4,10 +4,14 @@ namespace Gdk {
                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.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);
+               [Deprecated (since = "vala-0.18", replacement = "Pixbuf.from_stream_async")]
                [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;
+               [Deprecated (since = "vala-0.18", replacement = "Pixbuf.from_stream_at_scale_async")]
                [CCode (cname = "gdk_pixbuf_new_from_stream_at_scale_async", finish_name = "gdk_pixbuf_new_from_stream_finish")]
-          public static async Gdk.Pixbuf new_from_stream_at_scale_async (GLib.InputStream stream, int width, int height, bool preserve_aspect_ratio, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               public static async Gdk.Pixbuf new_from_stream_at_scale_async (GLib.InputStream stream, int width, int height, bool preserve_aspect_ratio, 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")]
+               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)]
                public Pixbuf.subpixbuf (Gdk.Pixbuf src_pixbuf, int src_x, int src_y, int width, int height);
                public bool save (string filename, string type, ...) throws GLib.Error;
@@ -16,11 +20,8 @@ namespace Gdk {
                public bool save_to_stream (GLib.OutputStream stream, string type, GLib.Cancellable? cancellable = null) throws GLib.Error;
                [CCode (finish_name = "gdk_pixbuf_save_to_stream_finish")]
                public async bool save_to_stream_async (GLib.OutputStream stream, string type, GLib.Cancellable? cancellable = null) throws GLib.Error;
-               public bool save_to_callbackv ([CCode (delegate_target_pos = 1.5)] Gdk.PixbufSaveFunc save_func, string type, [CCode (array_length = false, array_null_terminated = true)] string[] option_keys, [CCode (array_length = false, array_null_terminated = true)] string[] option_values) throws GLib.Error;
        }
 
-       [CCode (cheader_filename = "gdk-pixbuf/gdk-pixdata.h")]
-       public delegate void PixbufDestroyNotify ([CCode (array_length = false)] uint8[] pixels);
        [CCode (cheader_filename = "gdk-pixbuf/gdk-pixdata.h", instance_pos = -0.9)]
        public delegate bool PixbufSaveFunc ([CCode (array_length_type = "gsize")] uint8[] buf) throws GLib.Error;
 }
index 3d4e7238315a2b7723e34026db3a449c657edb4f..a81e591b423bcc8b1c19accccaa3a31f85ea1752 100644 (file)
@@ -1,37 +1,28 @@
-*.*.cancellable default=null
-
 Pixbuf
-        .composite_color_simple nullable
-        .flip nullable
-        .from_pixdata cheader_filename="gdk-pixbuf/gdk-pixdata.h"
-        .from_pixdata.copy_pixels default=true
-        .new_from_data skip
-        .new_from_inline.copy_pixels default=true
-        .new_from_stream_async skip
-        .new_from_stream_finish skip
-        .new_from_stream_at_scale_async skip
         .new_from_xpm_data.data type="string[]"
+        .new_from_stream_at_scale_async skip
         .new_subpixbuf skip
         .save_to_stream_finish skip
         .gettext skip
-Pixdata
-        .to_csource skip=false
+
+// gdk-pixdata.h isn't included by gdk-pixbuf.h
 Pixdata* cheader_filename="gdk-pixbuf/gdk-pixdata.h"
-PixbufSaveFunc skip
+Pixbuf
+        .from_pixdata cheader_filename="gdk-pixbuf/gdk-pixdata.h"
+
+// default values other than null
+Pixbuf
+        .new_from_data skip
+
+// Bug #558620: default values
+Pixbuf
+        .from_pixdata.copy_pixels default=true
+        .new_from_inline.copy_pixels default=true
 
-// Upstream
+// Bug #660879: nullability of return values
 Pixbuf
-        .new_from_inline.data type="uint8[]" array_length_idx=0
-        .get_file_info unowned
-        .get_file_info.width out
-        .get_file_info.height out
-        .get_pixels type="unowned uint8[]"
-        .save_to_bufferv.buffer type="uint8[]" out array_length_idx=1
-        .save_to_callbackv skip
-        .from_pixdata skip=false unowned=false
-Pixdata
-        .pixel_data type="unowned uint8[]"
-        .serialize type="uint8[]" array_length_idx=0
-PixbufLoader
-        .get_format unowned
-PixbufDestroyNotify skip
+        .composite_color_simple nullable
+        .flip nullable
+
+// Bug #666798: delegates which throw exceptions
+PixbufSaveFunc skip