[libical-glib] Attempt to fix the issues with array.py by changing the type second argument of i_cal_array_append f



commit b7065b05e16b538ad9de38e56c03c7e20824e51a
Author: William Yu <williamyu gnome org>
Date:   Tue Mar 17 09:23:57 2015 -0400

    Attempt to fix the issues with array.py by changing the type second argument of i_cal_array_append from 
gcontpointer to gpointer

 src/api/i-cal-array.xml |    4 ++--
 tests/array.py          |   10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/api/i-cal-array.xml b/src/api/i-cal-array.xml
index 6006dc3..6265390 100644
--- a/src/api/i-cal-array.xml
+++ b/src/api/i-cal-array.xml
@@ -28,7 +28,7 @@
     </method>
     <method name="i_cal_array_append" corresponds="icalarray_append" kind="others" since="1.0">
         <parameter type="ICalArray *" name="array" comment="The #ICalArray to be appended."/>
-        <parameter type="gconstpointer" name="element" comment="The element to be appended to the 
#ICalArray"/>
+        <parameter type="gpointer" name="element" comment="The element to be appended to the #ICalArray"/>
         <comment xml:space="preserve">Append @element to the end of the array</comment>
     </method>
     <method name="i_cal_array_remove_element_at" corresponds="icalarray_remove_element_at" kind="others" 
since="1.0">
@@ -52,4 +52,4 @@
 
        icalarray_sort ((icalarray *)i_cal_object_get_native ((ICalObject *)array), compare);</custom>
     </method> 
-</structure>
\ No newline at end of file
+</structure>
diff --git a/tests/array.py b/tests/array.py
index eb56920..8611c5b 100755
--- a/tests/array.py
+++ b/tests/array.py
@@ -7,11 +7,11 @@ from sys import getsizeof
 
 array = ICalGLib.Array.new(100, 100);
 
-element1 = 1;
-element2 = 2 ;
-element3 = 3;
-element4 = 4;
-element5 = 5;
+element1 = "hello";
+element2 = "world";
+element3 = "how";
+element4 = "are";
+element5 = "you";
 
 #TEST APPEND
 array.append (element1);


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