]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gdk-pixbuf-2.0: fix several return types
authorEvan Nemerson <evan@coeus-group.com>
Sun, 31 Oct 2010 00:17:53 +0000 (17:17 -0700)
committerEvan Nemerson <evan@coeus-group.com>
Sun, 31 Oct 2010 00:17:53 +0000 (17:17 -0700)
vapi/gdk-pixbuf-2.0.vapi
vapi/packages/gdk-pixbuf-2.0/gdk-pixbuf-2.0.metadata

index 11a32bda3277bf87dcf48c62c286e824c195f180..36e082381e9fff14db0b5a4c738fa9618e518319 100644 (file)
@@ -36,7 +36,7 @@ namespace Gdk {
                public int get_bits_per_sample ();
                public Gdk.Colorspace get_colorspace ();
                public static unowned Gdk.PixbufFormat get_file_info (string filename, out int width, out int height);
-               public static unowned GLib.SList get_formats ();
+               public static GLib.SList<weak Gdk.PixbufFormat> get_formats ();
                public bool get_has_alpha ();
                public int get_height ();
                public int get_n_channels ();
@@ -92,9 +92,11 @@ namespace Gdk {
        [CCode (cheader_filename = "gdk-pixbuf/gdk-pixdata.h")]
        public class PixbufFormat {
                public unowned string get_description ();
-               public unowned string get_extensions ();
+               [CCode (array_length = false, array_null_terminated = true)]
+               public string[] get_extensions ();
                public unowned string get_license ();
-               public unowned string get_mime_types ();
+               [CCode (array_length = false, array_null_terminated = true)]
+               public string[] get_mime_types ();
                public unowned string get_name ();
                public bool is_disabled ();
                public bool is_scalable ();
index a0089befb7376213ad87eec1aa31364eaf72ee14..fa9190d7cc37bf23e6fb260a558c958ed9f660d7 100644 (file)
@@ -2,6 +2,7 @@ Gdk cheader_filename="gdk-pixbuf/gdk-pixdata.h" gir_namespace="GdkPixbuf" gir_ve
 gdk_pixbuf_copy transfer_ownership="1"
 gdk_pixbuf_get_file_info.width is_out="1"
 gdk_pixbuf_get_file_info.height is_out="1"
+gdk_pixbuf_get_formats transfer_ownership="1" type_arguments="unowned PixbufFormat"
 gdk_pixbuf_get_pixels type_name="uint8" is_array="1" no_array_length="1"
 gdk_pixbuf_new_from_data.destroy_fn nullable="1"
 gdk_pixbuf_new_from_data.destroy_fn_data hidden="1"
@@ -27,6 +28,8 @@ gdk_pixbuf_loader_write.buf type_name="uint8" is_array="1" array_length_type="gs
 gdk_pixbuf_loader_write.count hidden="1"
 GdkPixbufDestroyNotify.pixels type_name="uint8" is_array="1" no_array_length="1"
 GdkPixbufError errordomain="1"
+gdk_pixbuf_format_get_mime_types is_array="1" transfer_ownership="1" no_array_length="1" array_null_terminated="1"
+gdk_pixbuf_format_get_extensions is_array="1" transfer_ownership="1" no_array_length="1" array_null_terminated="1"
 GdkPixdata is_value_type="1"
 GdkPixdata.pixel_data type_name="uint8" is_array="1"
 gdk_pixdata_deserialize.stream type_name="uint8" is_array="1" array_length_pos="0.9"