]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-2.0: make Icon.new_for_string return value transfer ownership
authorEvan Nemerson <evan@coeus-group.com>
Tue, 26 Oct 2010 23:56:38 +0000 (16:56 -0700)
committerJürg Billeter <j@bitron.ch>
Fri, 29 Oct 2010 16:50:34 +0000 (18:50 +0200)
vapi/gio-2.0.vapi
vapi/packages/gio-2.0/gio-2.0.metadata

index c161f6ea8130b08d6eebd68167016c4be4321e40..7bba230ad68d7780200f6d42b367896dc45c6dd8 100644 (file)
@@ -1570,7 +1570,7 @@ namespace GLib {
                [NoWrapper]
                public abstract unowned GLib.Icon from_tokens (string tokens, int num_tokens, int version) throws GLib.Error;
                public abstract uint hash (void* icon);
-               public static unowned GLib.Icon new_for_string (string str) throws GLib.Error;
+               public static GLib.Icon? new_for_string (string str) throws GLib.Error;
                public string to_string ();
                [NoWrapper]
                public abstract bool to_tokens (GLib.GenericArray tokens, int out_version);
index 807c4b9bfa675dbd9c58b51ee4062ef73b2475bb..7f814689db813f609ffc2f7d79383bcaa7efbb77 100644 (file)
@@ -115,6 +115,7 @@ g_file_start_mountable async="1"
 g_file_stop_mountable async="1"
 g_file_unmount_mountable async="1"
 g_file_unmount_mountable_with_operation async="1"
+g_icon_new_for_string transfer_ownership="1" nullable="1"
 g_icon_to_string transfer_ownership="1"
 g_inet_address_to_string transfer_ownership="1"
 g_inet_address_to_bytes type_name="uint8" is_array="1" no_array_length="1"