简体   繁体   中英

“constant” gtk+ signal for a GtkLabel

Is there such a thing as a "constant" gtk+ signal, that is activated permanently? I'm in first steps into gtk, and would like to constantly update a GtkLabel during the execution of the program.

The functions g_timeout_add , g_idle_add and related are probably what you are looking for, see [1].

[1] https://developer.gnome.org/glib/stable/glib-The-Main-Event-Loop.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM