Re: GTK window winthout main iterator

2018-09-04 Thread James Cameron
Add your logic to a function given to glib_idle_add(), and to trigger new drawings call queue_draw and then return from your function. GTK+ will call your draw signal handler. As soon as GTK+ is idle again, your function will be called again. It isn't the usual way of doing things, but it will w

Re: GTK window winthout main iterator

2018-09-04 Thread Reuben Rissler
Forgive me for second guessing you, but are you definite that that your loop is better/easier to maintain than a Gtk main loop? So far, if I was tempted to implement my own main loop, it wasn't because the Gtk main loop was inferior, but because I was looking at it the wrong way. Definitely ch

GTK window winthout main iterator

2018-09-04 Thread Juan Ignacio Donoso via gtk-app-devel-list
I'm trying to create a GUI using gtk I already have a loop that runs my logic. I was using cairo to draw to a png and flush to /dev/fb0 but now I want to instantiate a Gtk::Window to draw on it. I don't want to run Gtk::Main because just want to trigger new drawings when my logic trigger it..