]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gdk-pixbuf-2.0: Allow Gdk.PixbufLoader.write to specify array length.
authorEvan Nemerson <evan@coeus-group.com>
Mon, 16 Nov 2009 22:36:16 +0000 (14:36 -0800)
committerEvan Nemerson <evan@coeus-group.com>
Mon, 16 Nov 2009 22:38:00 +0000 (14:38 -0800)
Fixes bug 597870.

vapi/gdk-pixbuf-2.0.vapi
vapi/packages/gdk-pixbuf-2.0/gdk-pixbuf-2.0.metadata

index 510abd7baa4b15b997479550a72ea9284c8ff0ff..cf3572a703e63e2a8a86e822f02b1f79be244dd2 100644 (file)
@@ -110,7 +110,7 @@ namespace Gdk {
                public PixbufLoader.with_mime_type (string mime_type) throws GLib.Error;
                [CCode (has_construct_function = false)]
                public PixbufLoader.with_type (string image_type) throws GLib.Error;
-               public bool write (uchar[] buf) throws GLib.Error;
+               public bool write ([CCode (array_length = false)] uchar[] buf, size_t count) throws GLib.Error;
                public virtual signal void area_prepared ();
                public virtual signal void area_updated (int x, int y, int width, int height);
                public virtual signal void closed ();
index e9bf22213b8bfe6733ddbb733a63ef63ce1d72eb..36440a4c510188fea945c379ae38f779e6db388a 100644 (file)
@@ -19,7 +19,7 @@ gdk_pixbuf_save_to_callbackv.option_values is_array="1"
 gdk_pixbuf_scale_simple transfer_ownership="1"
 gdk_pixbuf_rotate_simple transfer_ownership="1"
 gdk_pixbuf_flip transfer_ownership="1"
-gdk_pixbuf_loader_write.count hidden="1"
+gdk_pixbuf_loader_write.buf no_array_length="1"
 GdkPixdata is_value_type="1"
 GdkPixdata.pixel_data is_array="1"
 gdk_pixdata_deserialize.stream is_array="1" array_length_pos="0.9"