crategus / cl-cffi-gtk

cl-cffi-gtk is a Lisp binding to the GTK+ 3 library.
http://www.crategus.com/books/cl-cffi-gtk
146 stars 33 forks source link

gtk_text_iter_get_attributes not implemented #51

Open stacksmith opened 7 years ago

stacksmith commented 7 years ago

Would it be possible to add that? I think the underlying structures are actually implemented already...

Ferada commented 7 years ago

Sorry but isn't that defined in gtk.text-iter.lisp? Or did you mean a different function?

stacksmith commented 7 years ago

@Ferada, you are right - I meant gtk_text_iter_get_default_attributes! Without it, gtk-text-iter-get-attributes is not useful, as I understand the situation.

Ferada commented 7 years ago

Should be as simple as this example patch - if that works for you, great, however I'm still looking if there's already a better way to handle these plain structures, so not ready to commit it just yet. I also haven't checked yet if the bitfields at the end of the structure are actually working correctly, so beware.

stacksmith commented 7 years ago

Thanks! I tried it myself, but got lost in cffi crap. Your patch should help.