1 2009-01-05 Matthias Clasen <mclasen@redhat.com>
3 * configure.in: Bump version
5 2009-01-05 Matthias Clasen <mclasen@redhat.com>
7 * === Released 2.19.4 ===
11 2009-01-05 Dan Winship <danw@gnome.org>
13 * glib/tests/.gitignore: update
15 * tests/.gitignore: update, sort
17 * tests/gobject/.gitignore: add
19 2009-01-05 Tor Lillqvist <tml@iki.fi>
21 Bug 566348 - g_file_open_tmp uses the wrong g_mkstemp on win32
23 * glib/gfileutils.c: Move the binary compatibility versions of
24 g_file_test(), g_file_get_contents(), g_mkstemp() and
25 g_file_open_tmp() last in the file. Remove the restriction that
26 the XXXXXX is last in the template in the binary compatibility
27 version of g_mkstemp(). Thanks to Morten Welinder and Jody
30 2009-01-03 Matthias Clasen <mclasen@redhat.com>
34 2009-01-02 Matthias Clasen <mclasen@redhat.com>
36 * glib/gregex.c: Add an example to the g_regex_replace_eval() docs.
38 2009-01-02 Matthias Clasen <mclasen@redhat.com>
40 * glib/gstrfuncs.c: Move docs inline, adding references to g_free()
43 2009-01-02 Matthias Clasen <mclasen@redhat.com>
45 Bug 564210 – SUN Studio 12 has supported visibility attribute
47 * configure.in: Use visibility attribute for new enough sun cc.
50 2008-12-30 Matthias Clasen <mclasen@redhat.com>
52 Bug 565905 – There is no named g_context_group_set_translation_domain()
53 in GOption command line parser
55 * glib/goption.c: Fix a wrong reference in the docs, reported by
58 2008-12-30 Matthias Clasen <mclasen@redhat.com>
68 * glib/gbookmarkfile.c:
69 * glib/gbacktrace.c: Fix some compiler warnings.
71 2008-12-19 Tor Lillqvist <tml@novell.com>
73 * glib/glib.symbols: Add g_thread_get_initialized here,
74 too. Surround g_test_config_vars with ifdef INCLUDE_VARIABLES.
76 2008-12-18 Mike Kestner <mkestner@novell.com>
78 Bug 560676 - function access for g_threads_supported
80 * glib/gthreads.c (g_thread_get_initialized): new accessor for
81 g_threads_supported macro.
82 * glib/gthreads.h: add g_thread_get_initialized
84 2008-12-15 Matthias Clasen <mclasen@redhat.com>
86 * configure.in: Bump version
88 * === Released 2.19.3 ===
90 2008-12-13 Matthias Clasen <mclasen@redhat.com>
94 2008-12-12 Dan Winship <danw@gnome.org>
96 * glib/pltcheck.sh: make this work on x86_64
98 2008-12-12 Behdad Esfahbod <behdad@gnome.org>
100 * glib/guniprop.c: Improve g_unichar_iswide_cjk() docs.
102 2008-12-07 Matthias Clasen <mclasen@redhat.com>
104 Bug 508021 – Add support for the CRIS and CRISv32 architectures
107 * glib/gatomic.c: Add an implementation for the CRIS and CRISv32
108 architectures, by Peter Kjellerstedt
110 2008-12-02 Matthias Clasen <mclasen@redhat.com>
112 * glib/gkeyfile.c: Some more documentation additions.
114 2008-12-01 Matthias Clasen <mclasen@redhat.com>
116 * configure.in: Bump version
118 2008-12-01 Matthias Clasen <mclasen@redhat.com>
120 * === Released 2.19.2 ===
122 2008-12-01 Matthias Clasen <mclasen@redhat.com>
124 * configure.in: Bump version
126 2008-12-01 Matthias Clasen <mclasen@redhat.com>
128 * === Released 2.19.1 ===
132 2008-11-28 Behdad Esfahbod <behdad@gnome.org>
134 Bug 562639 – g_parse_debug_flags() parsing "help"
136 * glib/gutils.c (g_parse_debug_string): Print available keys if
139 2008-11-28 Behdad Esfahbod <behdad@gnome.org>
141 Bug 562638 – GDebugKey key member should be const
143 * glib/gutils.h: Change GDebugKey key member from gchar * to
146 2008-11-28 Matthias Clasen <mclasen@redhat.com>
148 Bug 547264 – Missing "no flags" flag
150 * glib/gregex.c: Mention 0 as value for 'no flags' in some places..
151 Pointed out by Bastien Nocera
153 2008-11-28 Matthias Clasen <mclasen@redhat.com>
155 Bug 562544 – g_key_file_get_string and g_key_file_get_value
156 documentation does not explain the difference
158 * glib/gkeyfile.c (g_key_file_get_string): Explain the difference
159 to g_key_file_get_value(). Pointed out by Mart Raudsepp.
161 2008-11-28 Matthias Clasen <mclasen@redhat.com>
163 * glib/gkeyfile.c: Refer to @locale parameters as locale identifier
166 2008-11-28 Matthias Clasen <mclasen@redhat.com>
168 Bug 557603 – carbon check output misplaced
170 * configure.in: Call AC_PROG_CPP early to avoid it messing up
171 carbon check output. Fix proposed by Christian Persch
173 2008-11-28 Matthias Clasen <mclasen@redhat.com>
175 Bug 559110 – Do not include libintl.h after glibintl.h
177 * glib/glibintl.h: Define bind_textdomain_codeset in the DISABLE_NLS
178 branch. Patch by Peter Kjellerstedt.
180 * glib/gutil.c: Don't include libintl.h directly.
182 2008-11-28 Matthias Clasen <mclasen@redhat.com>
184 Bug 562378 – callback return value not respected for callback option
187 * glib/goption.c (parse_long_option): Return the parse_arg return
188 value even for no-arg callbacks. Patch by Christian Persch
190 * glib/tests/option-context.c: Add a test for a callback which
193 2008-11-23 Christian Persch <chpe@gnome.org>
195 Bug 559413 – g_option_group_set_error_hook docs buglet
197 * glib/goption.c: Doc fix.
199 2008-11-23 Christian Persch <chpe@gnome.org>
201 Bug 560568 – gkeyfile docs buglet
203 * glib/gkeyfile.c: Clarify the docs.
205 2008-11-23 Christian Persch <chpe@gnome.org>
207 Bug 560569 – gkeyfile doesn't use the set list_separator in some cases
209 * glib/gkeyfile.c: (g_key_file_get_locale_string_list),
210 (g_key_file_set_locale_string_list), (g_key_file_set_integer_list),
211 (g_key_file_set_double_list): Use the key file's list separator character,
214 * glib/tests/keyfile.c: (test_lists), (test_reload_idempotency): Test
217 2008-11-21 Christophe Fergeau <teuf@gnome.org>
219 Bug 561212 – GFileReadMoreCallback API doc refers to non-existant function
221 * gio/giotypes.h: fix name of function referred to in
222 GFileReadMoreCallback API documentation
224 2008-11-21 Matthias Clasen <mclasen@redhat.com>
226 * configure.in: Bump gtk-doc dependency to 1.11 for
227 nicer index-generation.
229 2008-11-14 Matthias Clasen <mclasen@redhat.com>
233 2008-11-04 Christian Dywan <christian@imendio.com>
235 Bug 558672 – NULL key lookup using g_hash_table_lookup_extended()
238 Clarify g_hash_table_lookup_extended
240 2008-11-02 Tor Lillqvist <tml@novell.com>
242 * configure.in: Expand also build/win32/vs9/Makefile.
244 2008-10-31 Christian Dywan <christian@imendio.com>
246 Bug 558513 – g_warn_if_fail FIXME in gtestutils
248 * glib/gtestutils.c (g_test_log_send):
249 Turn g_assert into g_warn_if_fail as advised
251 2008-10-31 Grahame Bowland <grahame@angrygoats.net>
253 Bug 558185 – 'parent' variable in g_local_file_get_child_for_display_name()
254 hits g_object_unref(NULL) assertion
257 - remove unused variable. Patch by Matt Johnston <matt@ucc.asn.au>
259 2008-10-29 16:11:14 Tim Janik <timj@gtk.org>
261 * glib/gmacros.h: added G_PASTE() and G_STATIC_ASSERT(), based on
262 patches by Christian Persch and Christian Dywan. Fixes:
263 Bug 558381 - Add support for compile time assertions
265 2008-10-27 Joseph Pingenot <gnomesvn@digitasaru.net>
267 * glib/ghash.c: changed "#GHashTableIterator" to "#GHashTableIter"
268 in the documentation-comments above g_hash_table_foreach_remove()
269 and g_hash_table_foreach_steal() to correctly name and link to
270 GHashTableIter. This affects the GNOME documentation website
271 as well, so further steps are likely necessary beyond this subproject..
273 2008-10-23 Matthias Clasen <mclasen@redhat.com>
275 Bug 557210 – g_compute_checksum_for_* asserts with less than 2 bytes
277 * glib/gchecksum.c (g_compute_checksum_for_data): Accept
278 lengths < 2. Patch by Tommi Komulainen
280 * tests/checksum-test.c: Add a test for this
282 2008-10-23 Matthias Clasen <mclasen@redhat.com>
284 Bug 556921 – gpoll.h breaks hal compilation
286 * glib/gpoll.h: Include gtypes.h. Pointed out by Anis Elleuch
288 2008-10-20 Christian Persch <chpe@gnome.org>
290 Bug 557087 – mem leak in g_content_types_get_registered
292 * gio/gcontenttype.c: Plug a mem leak.
294 2008-10-19 Michael Natterer <mitch@imendio.com>
296 Bug 556186 – gpoll.h breaks gmain.h inclusion
298 * glib/gpoll.h: different fix: disallow direct inclusion
299 unconditionally again but make an exception if included from
300 gmain.h to maintain compatibility.
302 2008-10-16 Matthias Clasen <mclasen@redhat.com>
304 * configure.in: Bump version to 2.19.1
306 * === Released 2.19.0 ===
310 2008-10-14 Christian Persch <chpe@gnome.org>
312 Bug 556186 – gpoll.h breaks gmain.h inclusion
314 * glib/gpoll.h: Only disallow direct inclusion when
315 G_DISABLE_SINGLE_INCLUDES is defined.
317 2008-10-13 Sven Herzberg <sven@imendio.com>
319 Bug 556101 – static mutex yields warnings with g++
320 Reviewed by Tim Janik
322 * configure.in: added an intermediate cast to gpointer
324 2008-10-13 Christian Persch <chpe@gnome.org>
326 Bug 555311 – format not a string literal and no format arguments
329 * glib/gshell.c: Use literal errors where appropriate.
331 2008-10-10 Behdad Esfahbod <behdad@gnome.org>
333 Bug 551355 – [PATCH] Make glib build with libtool 2.2
335 * autogen.sh: Accept libtool 2.2. We are moving towards having
338 2008-10-10 Behdad Esfahbod <behdad@gnome.org>
340 * configure.in: With libtool 2.x, regenerate libtool early.
341 Based on bug 552107, patch by Patryk Zawadzki
343 2008-10-10 Matthias Clasen <mclasen@redhat.com>
345 Bug 554557 – Patch to fix gcc warnings about missing format
350 * glib/grel.c: Fix gcc warnings. Patch by Kjartan Maraas
352 2008-10-10 Matthias Clasen <mclasen@redhat.com>
354 Bug 552861 – glib-2.0.m4 calls system(3) without storing its result
356 * m4macros/glib-2.0.m4: Cosmetic change to make -Werror happy.
357 Patch by Andreas Köhler
359 2008-10-08 Christian Persch <chpe@gnome.org>
361 Bug 555313 – GFileAttribute boxed type get_type function should
362 use usual get_type pattern
364 * gio/gfileattribute.c (g_file_attribute_info_list_get_type): Use
365 g_once_init_enter/leave.
367 2008-10-08 Christian Persch <chpe@gnome.org>
369 Bug 555314 – mem leak in gmarkup
371 * glib/gmarkup.c: (g_markup_parse_context_parse): Plug a mem leak.
373 2008-10-08 Tor Lillqvist <tml@novell.com>
375 Bug 554790 - g_convert() misbehaves with winiconv versions
377 * glib/win_iconv.c (kernel_mbtowc): If converting from ASCII,
378 explicitly check for and reject 8bit chars. MultiByteToWideChar()
379 doesn't, at least not on XP.
381 2008-10-06 Matthias Clasen <mclasen@redhat.com>
383 * glib/gtypes.h: Properly include gmacros.h
385 2008-10-06 Behdad Esfahbod <behdad@gnome.org>
387 Bug 555309 – giochannel breaks on error
388 Patch from Christian Persch
390 * glib/giounix.c (g_io_unix_read), (g_io_unix_write),
391 (g_io_unix_seek), (g_io_unix_close), (g_io_unix_set_flags):
392 Don't shadow err. Oops!
394 2008-10-06 Christophe Fergeau <teuf@gnome.org>
396 Bug 555224 – Improve g_format_size_for_display doc
398 * glib/gfileutils.c: change g_format_size_for_display API doc to
399 explicitly say that the returned string has to be freed. Change
400 spelling of "newly allocated" to "newly-allocated" in g_file_read_link
401 API doc to be more consistent with what is done in that file.
403 2008-10-01 David Zeuthen <davidz@redhat.com>
405 * README.in: Add "Notes about glib 2.20" section detailing the
406 ramifications of the patch from bug #528670.
408 2008-09-30 Behdad Esfahbod <behdad@gnome.org>
410 Bug 554092 – glib doesn't return G_FILE_ERROR_NOENT et al on OS X
412 * glib/giounix.c (g_io_unix_read), (g_io_unix_write),
413 (g_io_unix_seek), (g_io_unix_close), (g_io_unix_set_flags),
414 (g_io_unix_get_flags), (g_io_channel_new_file):
415 Like mclasen says: "well, thats the way errno works...,
416 save it or loose it". Save errno.
418 2008-09-30 Tor Lillqvist <tml@novell.com>
421 * glib/tests/Makefile.am: Bypass gtester related stuff on Windows.
423 2008-09-30 Tor Lillqvist <tml@novell.com>
426 * glib/gnulib/vasnprintf.c: Don't define _GNU_SOURCE on Windows,
427 as _GNU_SOURCE has unintended side effects when compiling against
428 newest mingw headers.
430 2008-09-26 Dan Winship <danw@gnome.org>
432 Bug 553447 – g_assert_no_error()
434 * glib/gtestutils.h (g_assert_no_error, g_assert_error): Macros to
435 assert that a GError is not set, or else is set to a particular
438 * glib/gtestutils.c (g_assertion_message_error): utility for
441 * glib/tests/keyfile.c:
442 * tests/asyncqueue-test.c:
443 * tests/bookmarkfile-test.c:
444 * tests/convert-test.c:
445 * tests/file-test.c: Use g_assert_error/g_assert_no_error
447 2008-09-26 Dan Winship <danw@gnome.org>
449 * glib/gthreadpool.c (wakeup_thread_marker): make this a "const
450 gpointer" rather than a gconstpointer to avoid warnings later
452 * glib/pcre/pcre_ucp_searchfuncs.c:
453 * glib/pcre/pcre_valid_utf8.c: #include "config.h"
455 * glib/tests/printf.c (test_d): fool gcc into not warning about
456 some printf format strings that we know are dubious
458 2008-09-26 Matthias Clasen <mclasen@redhat.com>
460 Bug 553857 – gbacktrace.h requires signal.h
462 * glib/gbacktrace.h: Include signal.h for raise().
463 Pointed out by Sebastien Bacher
465 2008-09-26 Matthias Clasen <mclasen@redhat.com>
467 Bug 553724 – python interpretter path not patched in correctly
469 * glib/Makefile.am: Fix the sed magic to replace python.
471 2008-09-26 Matthias Clasen <mclasen@redhat.com>
473 * glib/gmain.c: Add some more docs.
475 * glib/giochannel.c: Move more docs inline, and improve them
478 2008-09-25 Tor Lillqvist <tml@novell.com>
480 Bug 553820 - gpoll.c: undeclared identifier
483 * glib/gpoll.c: Make the g_poll() function non-static also on
484 Windows. Prefix an underscore to the g_main_poll_debug variable
485 and make it non-static in gmain.c so that it can be used in
486 gpoll.c. Add back missing variable declaration.
488 2008-09-25 Tor Lillqvist <tml@novell.com>
490 * glib/gspawn-win32.c (do_spawn_with_pipes) (do_spawn_directly):
491 Just ignore the child_setup function, never call it. The is no
492 situation in which it could be useful on Windows. Do print a
493 warning, like before.
495 * glib/gspawn.c (g_spawn_async_with_pipes): Corresponding change
498 2008-09-24 Sven Herzberg <sven@imendio.com>
500 Be a little more explcit in the docs. Includes Owen's requested
503 * glib/gmain.c: improved documentation for g_source_attach() and
506 2008-09-23 Michael Natterer <mitch@imendio.com>
508 * glib/glib.h: #include <glib/gpoll.h>
510 * glib/gpoll.h: #error out if gpoll.h is included directly.
512 * glib/gpoll.c: remove trailing whitespace.
514 2008-09-23 Dan Winship <danw@gnome.org>
516 * glib/gpoll.[ch] (g_poll): Move this out of gmain.c and make it part
517 of the public API. (Part of Bug 505361 - gunixinputstream.c assumes
520 2008-09-23 Tor Lillqvist <tml@novell.com>
522 * glib/gmain.c (poll_rest) [Win32]: Fix embarrassing bug: I was
523 passing an incorrect third parameter to memmove(), had forgotten
524 to multiply by the size of the table entry. Just use a for loop
525 instead, clearer. Odd I didn't notice when testing this code.
527 2008-09-19 Hans Petter Jansson <hpj@novell.com>
529 Rewrite most of GHashTable to use open addressing with quadratic
530 probing instead of chaining. This has the potential to reduce memory
531 fragmentation significantly, while being slightly faster due to
532 better locality and no need to call alloc/free functions for nodes.
533 Benchmarks suggest it also uses less memory overall.
535 * glib/ghash.c (prime_mod): Table of suitable primes for
536 initial-probe distribution.
537 (g_hash_table_set_shift): New function.
538 (g_hash_table_find_closest_shift): New function.
539 (g_hash_table_set_shift_from_size): New function.
540 (g_hash_table_lookup_node_for_insertion): New function.
541 (g_hash_table_lookup_node): Rewritten to return node index instead of
542 pointer, use quadratic probe on flat table, and not return insertion
543 data. The latter saves some computation for read-only lookups.
544 (g_hash_table_remove_node): Rewrite to take a pointer directly to the
545 node structure to remove, and clear that. Remove unlinking code.
546 (g_hash_table_remove_all_nodes): Rewrite to not clear nodes
547 individually, but en masse using memset () after potentially calling
549 (iter_remove_or_steal): Use new data structure and algorithm. Vastly
550 simplified - now just a call to g_hash_table_remove_node ().
551 (g_hash_table_resize): New resize code, re-indexing with new prime
552 and cleaning up tombstones.
553 (g_hash_table_maybe_resize): Table may hold 8 buckets minimum, no less
554 than 1/4 load excluding tombstones, and no more than 15/16 load
555 including tombstones. These numbers are the results of a lot of
556 benchmarking with multiple complex applications, and should not be
558 (g_hash_table_iter_next)
559 (g_hash_table_lookup)
560 (g_hash_table_lookup_extended)
561 (g_hash_table_insert_internal)
562 (g_hash_table_remove_internal)
563 (g_hash_table_foreach_remove_or_steal)
564 (g_hash_table_foreach)
566 (g_hash_table_get_keys)
567 (g_hash_table_get_values): Use new data structure and algorithm,
568 fairly trivial changes.
570 2008-09-19 Tor Lillqvist <tml@novell.com>
572 * glib-zip.in: Look for man pages in share/man.
574 * glib/gutils.c (_glib_get_dll_directory)
575 * glib/gspawn-win32.c (do_spawn_with_pipes): Be a bit less
576 restrictive, look for the helper programs in the same folder where
577 the GLib DLL is, not necessarily in a "bin" subfolder of the top
578 GLib installation folder.
580 2008-09-18 Matthias Clasen <mclasen@redhat.com>
582 * configure.in: Bump version to 2.19.0
584 * ChangeLog.pre-2-18: rotate ChangeLog
586 * === branch for 2.18 ===