From 8065beecc14a83568738c9de85edcad7a2275b59 Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Tue, 7 Feb 2012 11:07:36 +0100 Subject: [PATCH] gdk-pixbuf-2.0: Fix regression against PixbufSaveFunc The regression was introduced by the switch to gir. Fixes bug 669518. --- vapi/gdk-pixbuf-2.0.vapi | 2 +- vapi/metadata/GdkPixbuf-2.0-custom.vala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vapi/gdk-pixbuf-2.0.vapi b/vapi/gdk-pixbuf-2.0.vapi index 7cfe790c2..0a0eaacca 100644 --- a/vapi/gdk-pixbuf-2.0.vapi +++ b/vapi/gdk-pixbuf-2.0.vapi @@ -221,7 +221,7 @@ namespace Gdk { } [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 = 3.9)] + [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; [CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h", cname = "GDK_PIXBUF_FEATURES_H")] public const int PIXBUF_FEATURES_H; diff --git a/vapi/metadata/GdkPixbuf-2.0-custom.vala b/vapi/metadata/GdkPixbuf-2.0-custom.vala index 6e03f3bfe..b9061e0d8 100644 --- a/vapi/metadata/GdkPixbuf-2.0-custom.vala +++ b/vapi/metadata/GdkPixbuf-2.0-custom.vala @@ -17,6 +17,6 @@ namespace Gdk { [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 = 3.9)] + [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; } \ No newline at end of file -- 2.47.2