[json-glib] gvariant: Fix introspection annotation



commit e20a8b0faeb45d1ae2f1bd12d49d31d12e357b24
Author: Alexandre Mazari <scaroo gmail com>
Date:   Tue Mar 22 17:28:55 2011 +0100

    gvariant: Fix introspection annotation
    
    The 'signature' arguments of the json_gvariant_deserialize functions are
    optional.
    
    Signed-off-by: Emmanuele Bassi <ebassi gnome org>

 json-glib/json-gvariant.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/json-glib/json-gvariant.c b/json-glib/json-gvariant.c
index efb86c1..276b871 100644
--- a/json-glib/json-gvariant.c
+++ b/json-glib/json-gvariant.c
@@ -1211,7 +1211,7 @@ out:
 /**
  * json_gvariant_deserialize:
  * @json_node: A #JsonNode to convert
- * @signature: A valid #GVariant type string, or %NULL
+ * @signature: (allow-none): A valid #GVariant type string, or %NULL
  * @error: A pointer to a #GError
  *
  * Converts a JSON data structure to a GVariant value using @signature to
@@ -1253,7 +1253,7 @@ json_gvariant_deserialize (JsonNode     *json_node,
  * json_gvariant_deserialize_data:
  * @json: A JSON data string
  * @length: The length of @json, or -1 if %NULL-terminated
- * @signature: A valid #GVariant type string, or %NULL
+ * @signature: (allow-none): A valid #GVariant type string, or %NULL
  * @error: A pointer to a #GError
  *
  * Converts a JSON string to a #GVariant value. This method works exactly



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]