[libgda] Fixed documentation for GdaNumeric. Fixes GIR generation messages Bug 652805.



commit d34b9146197dd303fbe995d6135f5ae03cbb152e
Author: Daniel Espinosa <despinosa src gnome org>
Date:   Tue Jan 10 18:53:27 2012 -0600

    Fixed documentation for GdaNumeric. Fixes GIR generation messages Bug 652805.

 libgda/Gda-5.0.gir |    3 +++
 libgda/gda-value.c |   10 +++++-----
 2 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/libgda/Gda-5.0.gir b/libgda/Gda-5.0.gir
index ea6e22e..9279c6b 100644
--- a/libgda/Gda-5.0.gir
+++ b/libgda/Gda-5.0.gir
@@ -11787,6 +11787,7 @@ Free-function: gda_numeric_free</doc>
         </return-value>
         <parameters>
           <parameter name="str" transfer-ownership="none">
+            <doc xml:whitespace="preserve">a string representing a number</doc>
             <type name="utf8" c:type="gchar*"/>
           </parameter>
         </parameters>
@@ -11800,6 +11801,7 @@ Free-function: gda_numeric_free</doc>
         </return-value>
         <parameters>
           <parameter name="precision" transfer-ownership="none">
+            <doc xml:whitespace="preserve">a #glong</doc>
             <type name="glong" c:type="glong"/>
           </parameter>
         </parameters>
@@ -11813,6 +11815,7 @@ Free-function: gda_numeric_free</doc>
         </return-value>
         <parameters>
           <parameter name="width" transfer-ownership="none">
+            <doc xml:whitespace="preserve">a #glong</doc>
             <type name="glong" c:type="glong"/>
           </parameter>
         </parameters>
diff --git a/libgda/gda-value.c b/libgda/gda-value.c
index a82b5a0..8706d79 100644
--- a/libgda/gda-value.c
+++ b/libgda/gda-value.c
@@ -855,7 +855,7 @@ gda_numeric_get_type (void)
 
 /**
  * gda_numeric_copy:
- * @boxed: source to get a copy from.
+ * @src: source to get a copy from.
  *
  * Creates a new #GdaNumeric structure from an existing one.
 
@@ -880,7 +880,7 @@ gda_numeric_copy (GdaNumeric *src)
 
 /**
  * gda_numeric_free:
- * @boxed: (transfer full): a #GdaNumeric pointer
+ * @numeric: (transfer full): a #GdaNumeric pointer
  *
  * Deallocates all memory associated to the given @boxed
  */
@@ -912,7 +912,7 @@ gda_numeric_new (void)
 /**
  * gda_numeric_set_from_string:
  * @numeric: a #GdaNumeric
- * @number: a string representing a number
+ * @str: a string representing a number
  *
  * Sets @numeric with a number represented by @str.
  *
@@ -967,7 +967,7 @@ gda_numeric_get_double (GdaNumeric *numeric)
 /**
  * gda_numeric_set_width:
  * @numeric: a #GdaNumeric
- * @number: a #glong
+ * @width: a #glong
  *
  * Sets the width of a #GdaNumeric. (Not yet implemented).
  *
@@ -999,7 +999,7 @@ gda_numeric_get_width (GdaNumeric *numeric)
 /**
  * gda_numeric_set_precision:
  * @numeric: a #GdaNumeric
- * @number: a #glong
+ * @precision: a #glong
  *
  * Sets the precision of a #GdaNumeric.
  *



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