On Sun, Oct 26, 2003 at 01:37:00AM +0000, Duncan Coutts wrote:
> Added classes GtkSourceTag, GtkSourceTagTable, interface
> SourceStyleScheme and structure SourceTagStyle.
Thanks. I added these and the patch to gtk2hs/sourceview directory.
> Added more functions in GtkSourceBuffer (not all there yet).
> Some functions are not bound yet because of my confusion over GSLists.
Could you point out which function in the API you would like to bind?
(Especially which function needs to read GSLists?)
> I've bound SourceTagStyle in a non-opaque Storable class style (hence my
> questions about c2hs and peek/poke). I think this is the appropriate
> thing. The memory management rules for this weren't immediatly obvious,
> I had to inspect the C code. The rule seems to be that you get ownership
> when you receive a reference but you retain ownership when pass a
Yes, I think that holds true in general.
> I've used hsc2hs, but I could convert it back to use c2hs if
> the concerns over c2hs have evaporated.
No that's fine.
> My current implementation of one of the functions in
> SourceStyleScheme.chs leaks a reference per call, I believe (see earlier
> Stuff that remains to be done:
> * Sort out issue with ref counting
You should report this as a bug, me thinks.
> * Bind the various functions that take GSList params
> * Bind the rest of the functions in GtkSourceBuffer
> * Bind the functions in gtksourceiter.h
> * Bind GtkSourcePrintJob
> * Bind the various signal/event functions
That should be as easy as normal functions. You might miss a signature, if
so, you can add them to tools/signals/gtkmarshal.list.
> * Get greater api coverage in the demo
> * Add documentation
> * Get the build working cleanly, generating a package (like mogul)
That is mostly done. The build system might be buggy, though.
Could you check out the current CVS? I hope I haven't forgotten anything
of the new stuff.
Thanks a lot,