gmain: Add names to various GSources constructed in GLib208a6e815affead7ef8ed86439fcc2bb6a86d56a138/head
commit208a6e815affead7ef8ed86439fcc2bb6a86d56a
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Thu, 16 Jun 2016 22:31:42 +0000 (16 18:31 -0400)
committerPhilip Withnall <withnall@endlessm.com>
Tue, 26 Jun 2018 08:25:39 +0000 (26 09:25 +0100)
treef4956d206ffb777820de45fde4898fb6a1c99ef8
parentcbfa776fc149fcc3e351fbdf68c1a299519f4905
gmain: Add names to various GSources constructed in GLib

For the purposes of debugging, it is quite useful for every GSource to
have a name set. Ensure that any GSource we construct inside GLib has a
name set. For GSources which are then returned to the caller, this name
can then be overridden with something even more useful by the caller.

Since this data is only used for debugging, avoid doing any allocations
for it; just use static strings.

https://gitlab.gnome.org/GNOME/glib/issues/1175
gio/glocalfilemonitor.c
gio/gtask.c
glib/gmain.c