[Documentation] Setting a callback for a socket source in a main loop can be misleading
Hi GNOME folks !
I have recently discovered GLib, and I must say that it is an incredible library. Congratulations !
As a new user, I use the documentation a lot, and I have stumbled upon something that drove me crazy for some time before I finally found out through trial & error. Please read this StackOverflow question, and my own answer for details :
I suggest adding a note in the description of g_source_set_callback()
, stating that other function types than GSourceFunc
can be passed to it.
Thanks for the awesome work.