]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gdk-3.0 Make pixbuf_get_from_surface return an owned instance
authorLuca Bruno <lucabru@src.gnome.org>
Sun, 21 Aug 2011 08:04:54 +0000 (10:04 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Sun, 21 Aug 2011 08:04:54 +0000 (10:04 +0200)
Fixes bug 656990.

vapi/gdk-3.0.vapi
vapi/packages/gdk-3.0/gdk-3.0.metadata

index 2b50dfdb6c596b187fc1dbe3a4235541833cf2ae..bb71989b70bb6c2c0cbf5b96a215c61e0486ca93 100644 (file)
@@ -1310,7 +1310,7 @@ namespace Gdk {
        [CCode (cheader_filename = "gdk/gdk.h")]
        public static void parse_args (int argc, string argv);
        [CCode (cheader_filename = "gdk/gdk.h")]
-       public static unowned Gdk.Pixbuf pixbuf_get_from_surface (Cairo.Surface surface, int src_x, int src_y, int width, int height);
+       public static Gdk.Pixbuf pixbuf_get_from_surface (Cairo.Surface surface, int src_x, int src_y, int width, int height);
        [CCode (cheader_filename = "gdk/gdk.h")]
        public static unowned Gdk.Pixbuf pixbuf_get_from_window (Gdk.Window window, int src_x, int src_y, int width, int height);
        [CCode (cheader_filename = "gdk/gdk.h")]
index 77770dd3addbebb41ca1c3230aaa17fa43db750b..f6ac96f2cc041acaddbec3476b330b980be59bc6 100644 (file)
@@ -94,6 +94,7 @@ gdk_pixbuf_get_from_drawable.dest nullable="1"
 gdk_pixbuf_get_from_drawable.cmap nullable="1"
 gdk_pixbuf_get_from_image.dest nullable="1"
 gdk_pixbuf_get_from_image.cmap nullable="1"
+gdk_pixbuf_get_from_surface transfer_ownership="1"
 GdkPixmapObject hidden="1"
 GdkPixmapObjectClass hidden="1"
 gdk_pixmap_create_from_xpm.mask is_out="1"