Closed Wh1teDuke closed 3 years ago
For me (Manjaro with Xfce) it works, can you provide more details please?
For me (Manjaro with Xfce) it works, can you provide more details please?
lxde libgtk-3-0:i386 3.24.24-1
import nigui
app.init()
var window = newWindow("NiGui Example")
var container = newLayoutContainer(Layout_Vertical)
window.add(container)
var textArea = newTextArea()
container.add(textArea)
discard startRepeatingTimer(300, proc(event: TimerEvent) =
textArea.addLine($len(textArea.text))
scrollToBottom(textArea)
)
window.show()
app.run()
This snippet doesn't work as expected for me.
I guess it is fixed by https://github.com/trustable-code/NiGui/commit/5db6f02cadaa522caf2814c360669ba94fb9c57a . The wrong data type affected only 32-bit systems and not 64-bit systems.
gtk debug output prints
_gtk_text_view_scroll_to_iter: assertion 'xalign >= 0.0 && xalign <= 1.0' failed