Reputation: 4448
How would I run a constant process in the background while there is a gtk system tray icon running? Would I just start two threads and launch the process with one and the system tray icon? Or is there a better way? Sorry, but I am somewhat new to gtk.
Upvotes: 0
Views: 1168
Reputation: 1925
If I understand it correctly, then you have an application sitting in the system tray and it needs to periodically check for an external condition.
Your GUI thread can't block for a long time or it would become unresponsive.
I can think of three techniques to solve this:
Upvotes: 4
Reputation: 11454
I don't think you need any threads in your example. What do you exactly call a "constant process"?
Either it is:
Upvotes: 0