I have done a bit of rearrangement of the code generator in order to 
allow adding code snippets after the function call in the wrapper.

For instance, the GtkTreePath handler uses this to free the path after 
we are finished with it (before, it just leaked).

Also, the GError handling code uses this mechanism as well.

Finally, the write_return() methods in argtypes.py now also use this 
"after" code as well (since the write_return() call is made after all 
the write_param() calls, it goes at the end of the wrapper body, where 
we wanted it anyway).

I have also changed GError handling to raise the gobject.GError 
exception rather than RuntimeError (this new exception derives from 
RuntimeError, so old code should still work).  Instances of this 
exception have domain, code and message attributes set, giving you 
access to all the information contained in the GError.

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to