C GTK + periodic event to update user interface

How to update GTK + interface on a periodic event. For example, let's say I wanted to update a text box containing a time every 200 milliseconds. How is this usually done?


Update:

Another question ( How is the periodic task performed in the gtk application? ) Is mentioned by g_timeout_add. Is this the best way to do this? Does this thread say it could be inefficient?

+3
source share
1 answer

There is an example in this tutorial . (Find the section called "Example Timer".)

Short answer: "use ". g_timeout_add

+5
source

All Articles