diff --git a/vapi/packages/gdk-pixbuf-2.0/gdk-pixbuf-2.0-custom.vala b/vapi/packages/gdk-pixbuf-2.0/gdk-pixbuf-2.0-custom.vala
new file mode 100644
index 0000000..048b41b
--- /dev/null
+++ b/vapi/packages/gdk-pixbuf-2.0/gdk-pixbuf-2.0-custom.vala
@@ -0,0 +1,9 @@
+namespace Gdk {
+	public class Pixbuf {
+		public unowned uint8[] get_pixels () {
+			unowned uint8[] res = this._get_pixels ();
+			res.length = this.get_rowstride () * this.get_height ();
+			return res;
+		}
+	}
+}
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 05b2d09..47594e1 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
@@ -4,7 +4,7 @@ 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_get_pixels type_name="uint8" is_array="1" no_array_length="1" name="_get_pixels"
 gdk_pixbuf_new_from_data.destroy_fn nullable="1"
 gdk_pixbuf_new_from_data.destroy_fn_data hidden="1"
 gdk_pixbuf_new_from_data.data type_name="uint8" is_array="1" no_array_length="1"
