mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-11 03:46:17 +01:00
4f96a13cba
Sun Jul 1 20:16:25 2001 Owen Taylor <otaylor@redhat.com> * glib/guniprop.c (g_unichar_totitle): Use G_N_ELEMENTS rather than a custom macro. * glib/gen-unicode-tables.pl: Adapt to changes in table formats for Unicode 3.1 * glib/gunicode.h glib/guniprop.c glib/gunichartables.h glib/gen-unicode-tables.pl: Add case conversion functions g_utf8_casefold, g_utf8_strup, g_utf8_strdown. * tests/unicode-caseconv.c tests/gen-casefold-txt.pl tests/gen-casemap-txt.pl tests/casefold.txt tests/casemap.txt: Test cases for case conversion. * glib/gunicode.h glib/gunidecomp.[ch] glib/gunicomp.h glib/gen-unicode-tables.pl: Add function to do Unicode normalization g_utf8_normalize(). * tests/unicode-normalize.c: Test program for case conversion. * glib/gunicode.h glib/gunicollate.c: Add collation functions g_utf8_collate, g_utf8_collate_key. * test/unicode-collate.c: Test program for collation. * glib/gdate.c (g_date_fill_parse_tokens): Fix uninitialized variable. * glib/gdate.c (g_date_strftime) docs/Changes-2.0.txt: Make work with UTF-8 even if the locale isn't UTF-8 based. Still somewhat of broken, if the format string contains characters not representable in the current locale, will warn and not work. * glib/gdate.c: Use UTF-8 normalization and casefolding.
35 lines
1.4 KiB
Plaintext
35 lines
1.4 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.
|