Closed madprops closed 4 years ago
Btw, would be great to have methods to get the current line number, and modify a specific line.
Removing this logic from the textarea change callback fixes the gtk error.
@madprops Can you please post minimal example program to reproduce the error message?
Hmm I replaced the code and made a cli version instead. But basically what I was doing was changing the textarea's content inside the text change event. If I did it from other place the error didn't appear. Probably just some GTK limitation.
Closing as not reproducible.
Hello, I've been having fun with this library. I'm currently trying to modify specific lines in textarea.text. Basically what I'm doing is prepending some lines wtih tabs to simulate that persistent tab effect on Enter. So far so good, I can get the line by counting characters against cursor position, but when I try to
textarea.text = "something"
I get the following error:So I'm wondering what would be the correct way to do this. I can't find any method in the NiGui source that might handle this, so not sure if it's already implemented. I tried running the text assignment on a thread, but it complained about GC limiations.