serialize

open fun serialize(): <Error class: unknown class>?

Serializes a #GIcon into a #GVariant. An equivalent #GIcon can be retrieved back by calling g_icon_deserialize() on the returned value. As serialization will avoid using raw icon data when possible, it only makes sense to transfer the #GVariant between processes on the same machine, (as opposed to over the network), and within the same file system namespace.

Return

a #GVariant, or null when serialization fails. The #GVariant will not be floating.

Since

2.38