1 * The event loop functionality GMain has extensively been revised to
2 support multiple separate main loops in separate threads. All sources
3 (timeouts, idle functions, etc.) are associated with a GMainContext.
5 Compatibility functions exist so that most application code dealing with
6 the main loop will continue to work. However, code that creates
7 new custom types of sources will require modification.
9 The main changes here are:
11 - Sources are now exposed as GSource *, rather than simply as numeric
14 - New types of sources are created by structure "derivation" from GSource,
15 so the source_data parameter to the GSource vfuncs has been
16 replaced with a GSource *.
18 - Sources are first created, then later added to a specific GMainContext
20 - Dispatching has been modified so both the callback and data are passed
21 in to the ->dispatch() vfunc.
23 To go along with this change, the vtable for GIOChannel has changed and
24 add_watch() has been replaced by create_watch().
26 * g_list_foreach() and g_slist_foreach() have been changed so they
27 are now safe against removal of the current item, not the next item.
29 It's not recommended to mutate the list in the callback to these
30 functions in any case.