andy128k / cl-gobject-introspection

BSD 2-Clause "Simplified" License
49 stars 15 forks source link

Fix inout out arg #7

Closed hying-caritas closed 10 years ago

hying-caritas commented 10 years ago

After checking python gobject binding, found that in-out and out parameters should pass by pointer even via g_function_info_invoke(). So fix in-out and out argument processing accordingly.

Kalimehtar commented 10 years ago

Are you sure, that this works? I mean at least an example from documentation:

(defvar *entry* (call *gtk* "TargetEntry" 'new "ok" 0 0))

> (call *entry* :field 'flags)                           
0                                                        
> (call *entry* :set-field! 'flags 1)                    
> (call *entry* :field 'flags)                           
1 
hying-caritas commented 10 years ago

Just tested this case. And it works properly for me.

hying-caritas commented 10 years ago

And I want to write some unit-test code for cl-gobject-introspection. Do you have some recommendation for unit-test framework?

Kalimehtar commented 10 years ago

I recommend fiveam. It is in quicklisp, and enough lite.