[vala] gdk-pixbuf-2.0: fix several return types
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gdk-pixbuf-2.0: fix several return types
- Date: Sun, 31 Oct 2010 00:27:23 +0000 (UTC)
commit fa2f1aee82cf2f75324be0815e83650b044f389f
Author: Evan Nemerson <evan coeus-group com>
Date: Sat Oct 30 17:17:53 2010 -0700
gdk-pixbuf-2.0: fix several return types
vapi/gdk-pixbuf-2.0.vapi | 8 +++++---
.../gdk-pixbuf-2.0/gdk-pixbuf-2.0.metadata | 3 +++
2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/vapi/gdk-pixbuf-2.0.vapi b/vapi/gdk-pixbuf-2.0.vapi
index 11a32bd..36e0823 100644
--- a/vapi/gdk-pixbuf-2.0.vapi
+++ b/vapi/gdk-pixbuf-2.0.vapi
@@ -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 ();
diff --git a/vapi/packages/gdk-pixbuf-2.0/gdk-pixbuf-2.0.metadata b/vapi/packages/gdk-pixbuf-2.0/gdk-pixbuf-2.0.metadata
index a0089be..fa9190d 100644
--- a/vapi/packages/gdk-pixbuf-2.0/gdk-pixbuf-2.0.metadata
+++ b/vapi/packages/gdk-pixbuf-2.0/gdk-pixbuf-2.0.metadata
@@ -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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]