Skip to main content


PSA: if you are spawning callbacks with something other than g_idle_add you should think hard about what priority you want and hopefully you can use G_PRIORITY_DEFAULT_IDLE or lower.

(Instead of G_PRIORITY_DEFAULT)

https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/304

#gnome #gtk #glib

This entry was edited (6 months ago)
in reply to Jordan Petridis

This also applies to g_timeout_add btw. It's default priority is G_PRIORITY_DEFAULT
in reply to Jordan Petridis

If redrawing is more important, then why is this not a Gtk bug instead? When I am picking a priority, the one designated as "DEFAULT" by the maintainers sounds pretty good to me... Why question it?
in reply to George Kiagiadakis

@gkiagia because GTK does not control the defaults: those are in GLib, and GLib has no idea about GTK priorities