Add g_value_take_variant

Turns out we do need g_value_take_variant(), so we can correctly
implement VARIANT:* marshalers.

Bug #621947.
This commit is contained in:
Christian Persch
2010-06-18 01:08:13 +02:00
parent 052ef2614a
commit db68f8203a
8 changed files with 133 additions and 2 deletions

View File

@@ -184,6 +184,13 @@ G_BEGIN_DECLS
*
* The fundamental type corresponding to #GVariant.
*
* All floating #GVariant instances passed through the #GType system are
* consumed.
*
* Note that callbacks in closures, and signal handlers
* for signals of return type %G_TYPE_VARIANT, must never return floating
* variants.
*
* Note: GLib 2.24 did include a boxed type with this name. It was replaced
* with this fundamental type in 2.26.
*