From deb8a9325b2f3c82f92746583baa7bd2a6552bd1 Mon Sep 17 00:00:00 2001 From: "A. Walton" Date: Thu, 29 Aug 2013 23:33:58 -0700 Subject: [PATCH] Clarify type transformability and comparability If two GValues are transformable, it implies they are compatible, so you do not need to check for compatibility yourself. Bump the documentation to reflect this fact. https://bugzilla.gnome.org/show_bug.cgi?id=707111 --- gobject/gvalue.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gobject/gvalue.c b/gobject/gvalue.c index 280969e..ee40842 100644 --- a/gobject/gvalue.c +++ b/gobject/gvalue.c @@ -466,7 +466,9 @@ g_value_register_transform_func (GType src_type, * @dest_type: Target type. * * Check whether g_value_transform() is able to transform values - * of type @src_type into values of type @dest_type. + * of type @src_type into values of type @dest_type. Note that for + * the types to be transformable, they must be compatible and a + * transform function must be registered. * * Returns: %TRUE if the transformation is possible, %FALSE otherwise. */ -- 2.7.4