Refreshing the GUI without gtk_main ()



Hello everyone!

I wrote an interactive scripter with its own loop that runs in the
terminal. This scripter is a back-end of the dedicated GUI. But since it
has its own eternal loop, the GUI doesn't refresh. I can refresh it by
using:

        while (gtk_events_pending()) gtk_main_iteration ();

but this refreshes the GUI only when the scripter performs a particular
action. While it sits and waits for input, the GUI is frozen.

Any idea how to overcome this?

Thanks for your time,

Andrej



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]