mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-14 22:26:46 +02:00
docs: fix docs for g_icon_[de]serialize()
This commit is contained in:
@ -448,6 +448,8 @@ g_icon_hash
|
|||||||
g_icon_equal
|
g_icon_equal
|
||||||
g_icon_to_string
|
g_icon_to_string
|
||||||
g_icon_new_for_string
|
g_icon_new_for_string
|
||||||
|
g_icon_serialize
|
||||||
|
g_icon_deserialize
|
||||||
<SUBSECTION Standard>
|
<SUBSECTION Standard>
|
||||||
G_ICON
|
G_ICON
|
||||||
G_IS_ICON
|
G_IS_ICON
|
||||||
|
24
gio/gicon.c
24
gio/gicon.c
@ -553,6 +553,16 @@ g_icon_deserialize_emblemed (GVariant *value)
|
|||||||
return icon;
|
return icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* g_icon_deserialize:
|
||||||
|
* @value: a #GVariant created with g_icon_serialize()
|
||||||
|
*
|
||||||
|
* Deserializes a #GIcon previously serialized using g_icon_serialize().
|
||||||
|
*
|
||||||
|
* Returns: (transfer full): a #GIcon, or %NULL when deserialization fails.
|
||||||
|
*
|
||||||
|
* Since: 2.38
|
||||||
|
*/
|
||||||
GIcon *
|
GIcon *
|
||||||
g_icon_deserialize (GVariant *value)
|
g_icon_deserialize (GVariant *value)
|
||||||
{
|
{
|
||||||
@ -630,6 +640,20 @@ g_icon_deserialize (GVariant *value)
|
|||||||
return icon;
|
return icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* g_icon_serialize:
|
||||||
|
* @icon: a #GIcon
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*
|
||||||
|
* Returns: (transfer full): a #GVariant, or %NULL when serialization fails.
|
||||||
|
*
|
||||||
|
* Since: 2.38
|
||||||
|
*/
|
||||||
GVariant *
|
GVariant *
|
||||||
g_icon_serialize (GIcon *icon)
|
g_icon_serialize (GIcon *icon)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user