Changed to use proper Glib mainloop from GObjecet (instead of the GTK mainloop) -- reduced memory footprint!
Fully working after rewrite with stack-like backend.