Closed bradrn closed 1 year ago
Fixed in https://github.com/bohonghuang/cl-gobject-introspection-wrapper/commit/2d197cba7e7d734ac8a2e181e5e709e5b218bada and 2a8a09145fb0ebddc2cae88ee309d9813e4275af. You may need to install the cl-gtk4
and cl-gobject-introspection-wrapper
manually into local-projects
before they get updated in Ultralisp. Here is an example of TextView
for your reference:
Thanks!
I’ve been trying to play around with adding markup tags to a GTK
TextView
using cl-gtk4, but have encountered a few issues with getting the appropriateTextIter
s for a user selection in CL. The obvious route would be to useget_selection_bounds
, but as a relative newcomer to Common Lisp I’m unsure exactly how the twoTextIter*
arguments are represented in cl-gtk4; I thus decided to instead useget_insert
andget_selection_bound
, and then get the correspondingTextIter
usingget_iter_at_mark
. Alas, trying to callgtk4:text-buffer-get-insert
produces the following error: