Well, read the documentation, don't just call functions at random. ;-)
https://developer.gnome.org/glib/stable/glib-The-Main-Event-Loop.html
Or look at what other programs do.
Well, read the documentation, don't just call functions at random. ;-)
https:/ /developer. gnome.org/ glib/stable/ glib-The- Main-Event- Loop.html
Or look at what other programs do.