]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gdk-2.0: Fix gdk_color_to_string binding
authorMark Lee <marklee@src.gnome.org>
Mon, 25 May 2009 19:20:11 +0000 (12:20 -0700)
committerJürg Billeter <j@bitron.ch>
Mon, 25 May 2009 20:13:56 +0000 (22:13 +0200)
gdk_color_to_string returns a newly allocated string, so it needs to be
annotated as such. Fixes bug 583791.

vapi/gdk-2.0.vapi
vapi/packages/gdk-2.0/gdk-2.0.metadata

index b73a8fe1a9548fdc93c1750f01c33815816fe762..175fcc4def3cd7cd605a39211d78a76eb655fda7 100644 (file)
@@ -610,7 +610,7 @@ namespace Gdk {
                public void free ();
                public uint hash ();
                public static bool parse (string spec, out Gdk.Color color);
-               public unowned string to_string ();
+               public string to_string ();
        }
        [CCode (type_id = "GDK_TYPE_DEVICE_AXIS", cheader_filename = "gdk/gdk.h")]
        public struct DeviceAxis {
index 265861cd1037402b3b355dc7ce5775c77ce48f57..829ac5acab80e7864fa2b82d5fb9784fa4d78469 100644 (file)
@@ -6,6 +6,7 @@ gdk_bitmap_create_from_data transfer_ownership="1"
 gdk_cairo_create transfer_ownership="1"
 GdkColor is_value_type="1"
 gdk_color_parse.color is_out="1"
+gdk_color_to_string transfer_ownership="1"
 gdk_colormap_alloc_colors.colors is_array="1"
 gdk_colormap_free_colors.colors is_array="1"
 gdk_colormap_query_color.result is_out="1"