mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
dc0b74d416
Mon Sep 10 17:13:36 2001 Tim Janik <timj@gtk.org> * glib/gmessages.h: got rid of g_set_error_handler(), g_set_warning_handler(), g_set_message_handler(). Wed Sep 5 05:24:07 2001 Tim Janik <timj@gtk.org> * gobject/tmpl/gboxed.sgml: documented some functions. * gobject/tmpl/objects.sgml: some fixups. Mon Sep 10 19:27:47 2001 Tim Janik <timj@gtk.org> * gtype.[hc]: g_type_add_interface*(): implement the ability to add an interface to a type whose parents already conform to this interface. such "overriding" interfaces, when initialized, are not just initialized with 0, but with a copy of the interface they override. g_type_interface_peek_parent(): new function, return the interface that this interface "overrides", if any. * testgruntime.c: test new interface stuff.
48 lines
1.8 KiB
Plaintext
48 lines
1.8 KiB
Plaintext
* The event loop functionality GMain has extensively been revised to
|
|
support multiple separate main loops in separate threads. All sources
|
|
(timeouts, idle functions, etc.) are associated with a GMainContext.
|
|
|
|
Compatibility functions exist so that most application code dealing with
|
|
the main loop will continue to work. However, code that creates
|
|
new custom types of sources will require modification.
|
|
|
|
The main changes here are:
|
|
|
|
- Sources are now exposed as GSource *, rather than simply as numeric
|
|
IDS.
|
|
|
|
- New types of sources are created by structure "derivation" from GSource,
|
|
so the source_data parameter to the GSource vfuncs has been
|
|
replaced with a GSource *.
|
|
|
|
- Sources are first created, then later added to a specific GMainContext
|
|
|
|
- Dispatching has been modified so both the callback and data are passed
|
|
in to the ->dispatch() vfunc.
|
|
|
|
To go along with this change, the vtable for GIOChannel has changed and
|
|
add_watch() has been replaced by create_watch().
|
|
|
|
* g_list_foreach() and g_slist_foreach() have been changed so they
|
|
are now safe against removal of the current item, not the next item.
|
|
|
|
It's not recommended to mutate the list in the callback to these
|
|
functions in any case.
|
|
|
|
* GDate now works in UTF-8, not in the current locale. If you
|
|
want to use it with the encoding of the locale, you need
|
|
to convert strings using g_locale_to_utf8 first.
|
|
|
|
* g_strsplit() has been fixed to:
|
|
|
|
- include trailing empty tokens, rather than stripping them
|
|
- split into a maximum of @max_tokens tokens, rather than
|
|
@max_tokens + 1
|
|
|
|
Code depending on either of these bugs will need to be fixed.
|
|
|
|
* deprecated functions that got removed:
|
|
g_set_error_handler(), g_set_warning_handler(),
|
|
g_set_message_handler(), use g_log_set_handler() instead.
|
|
|