I intend to write a networking application with a GUI frontend, presumably using GTK.
I'm completely new to GTK (and GUI programming in general). My current guess would be to use two threads, one that handles networking and the other one running the GTK frontend.
Is this the common design pattern for this kind of problem or are there better alternatives, e.g. handling networking from within the GTK main loop?
If I have to resort to using two threads, what's the best way to tell the GTK thread that there's data available from the networking thread?