de4b958c99467525561a6c9632919e96a06c52c6
[platform/upstream/glib.git] / ChangeLog
1 2009-01-05  Matthias Clasen  <mclasen@redhat.com>
2
3         * configure.in: Bump version
4
5 2009-01-05  Matthias Clasen  <mclasen@redhat.com>
6
7         * === Released 2.19.4 ===
8
9         * NEWS: Updates
10
11 2009-01-05  Dan Winship  <danw@gnome.org>
12
13         * glib/tests/.gitignore: update
14
15         * tests/.gitignore: update, sort
16
17         * tests/gobject/.gitignore: add
18
19 2009-01-05  Tor Lillqvist  <tml@iki.fi>
20
21         Bug 566348 - g_file_open_tmp uses the wrong g_mkstemp on win32
22
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
28         Goldberg.
29
30 2009-01-03  Matthias Clasen  <mclasen@redhat.com>
31
32         * NEWS: Updates
33
34 2009-01-02  Matthias Clasen  <mclasen@redhat.com>
35
36         * glib/gregex.c: Add an example to the g_regex_replace_eval() docs.
37
38 2009-01-02  Matthias Clasen  <mclasen@redhat.com>
39
40         * glib/gstrfuncs.c: Move docs inline, adding references to g_free()
41         where appropriate.
42
43 2009-01-02  Matthias Clasen  <mclasen@redhat.com>
44
45         Bug 564210 – SUN Studio 12 has supported visibility attribute
46
47         * configure.in: Use visibility attribute for new enough sun cc.
48         Patch by Chris Wang
49
50 2008-12-30  Matthias Clasen  <mclasen@redhat.com>
51
52         Bug 565905 – There is no named g_context_group_set_translation_domain()
53         in GOption command line parser
54
55         * glib/goption.c: Fix a wrong reference in the docs, reported by
56         Takeshi Aihana.
57
58 2008-12-30  Matthias Clasen  <mclasen@redhat.com>
59
60         * glib/gspawn.c:
61         * glib/gthread.c:
62         * glib/goption.c:
63         * glib/gmain.c:
64         * glib/gkeyfile.c:
65         * glib/gfileutils.c:
66         * glib/gdate.c:
67         * glib/garray.c:
68         * glib/gbookmarkfile.c:
69         * glib/gbacktrace.c: Fix some compiler warnings.
70
71 2008-12-19  Tor Lillqvist  <tml@novell.com>
72
73         * glib/glib.symbols: Add g_thread_get_initialized here,
74         too. Surround g_test_config_vars with ifdef INCLUDE_VARIABLES.
75
76 2008-12-18  Mike Kestner <mkestner@novell.com>
77
78         Bug 560676 - function access for g_threads_supported
79
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
83
84 2008-12-15  Matthias Clasen <mclasen@redhat.com>
85
86         * configure.in: Bump version
87
88         * === Released 2.19.3 ===
89
90 2008-12-13  Matthias Clasen <mclasen@redhat.com>
91
92         * NEWS: Updates
93
94 2008-12-12  Dan Winship  <danw@gnome.org>
95
96         * glib/pltcheck.sh: make this work on x86_64
97
98 2008-12-12  Behdad Esfahbod  <behdad@gnome.org>
99
100         * glib/guniprop.c: Improve g_unichar_iswide_cjk() docs.
101
102 2008-12-07  Matthias Clasen  <mclasen@redhat.com>
103
104         Bug 508021 – Add support for the CRIS and CRISv32 architectures
105
106         * configure.in: 
107         * glib/gatomic.c: Add an implementation for the CRIS and CRISv32 
108         architectures, by Peter Kjellerstedt
109
110 2008-12-02  Matthias Clasen  <mclasen@redhat.com>
111
112         * glib/gkeyfile.c: Some more documentation additions.
113
114 2008-12-01  Matthias Clasen  <mclasen@redhat.com>
115
116         * configure.in: Bump version
117
118 2008-12-01  Matthias Clasen  <mclasen@redhat.com>
119
120         * === Released 2.19.2 ===
121
122 2008-12-01  Matthias Clasen  <mclasen@redhat.com>
123
124         * configure.in: Bump version
125
126 2008-12-01  Matthias Clasen  <mclasen@redhat.com>
127
128         * === Released 2.19.1 ===
129
130         * NEWS: Updates
131
132 2008-11-28  Behdad Esfahbod  <behdad@gnome.org>
133
134         Bug 562639 – g_parse_debug_flags() parsing "help"
135
136         * glib/gutils.c (g_parse_debug_string): Print available keys if
137         string is "help".
138
139 2008-11-28  Behdad Esfahbod  <behdad@gnome.org>
140
141         Bug 562638 – GDebugKey key member should be const
142
143         * glib/gutils.h: Change GDebugKey key member from gchar * to
144         const gchar *.
145
146 2008-11-28  Matthias Clasen  <mclasen@redhat.com>
147
148         Bug 547264 – Missing "no flags" flag
149
150         * glib/gregex.c: Mention 0 as value for 'no flags' in some places..
151         Pointed out by Bastien Nocera
152
153 2008-11-28  Matthias Clasen  <mclasen@redhat.com>
154
155         Bug 562544 – g_key_file_get_string and g_key_file_get_value
156         documentation does not explain the difference
157
158         * glib/gkeyfile.c (g_key_file_get_string): Explain the difference
159         to g_key_file_get_value(). Pointed out by Mart Raudsepp.
160
161 2008-11-28  Matthias Clasen  <mclasen@redhat.com>
162
163         * glib/gkeyfile.c: Refer to @locale parameters as locale identifier
164         in docs.
165
166 2008-11-28  Matthias Clasen  <mclasen@redhat.com>
167
168         Bug 557603 – carbon check output misplaced
169
170         * configure.in: Call AC_PROG_CPP early to avoid it messing up
171         carbon check output. Fix proposed by Christian Persch
172
173 2008-11-28  Matthias Clasen  <mclasen@redhat.com>
174
175         Bug 559110 – Do not include libintl.h after glibintl.h
176
177         * glib/glibintl.h: Define bind_textdomain_codeset in the DISABLE_NLS
178         branch. Patch by Peter Kjellerstedt.
179
180         * glib/gutil.c: Don't include libintl.h directly.
181
182 2008-11-28  Matthias Clasen  <mclasen@redhat.com>
183
184         Bug 562378 – callback return value not respected for callback option
185         with no arg
186
187         * glib/goption.c (parse_long_option): Return the parse_arg return
188         value even for no-arg callbacks. Patch by Christian Persch
189
190         * glib/tests/option-context.c: Add a test for a callback which
191         returns FALSE.
192
193 2008-11-23  Christian Persch  <chpe@gnome.org>
194
195         Bug 559413 – g_option_group_set_error_hook docs buglet
196
197         * glib/goption.c: Doc fix.
198
199 2008-11-23  Christian Persch  <chpe@gnome.org>
200
201         Bug 560568 – gkeyfile docs buglet
202
203         * glib/gkeyfile.c: Clarify the docs.
204
205 2008-11-23  Christian Persch  <chpe@gnome.org>
206
207         Bug 560569 – gkeyfile doesn't use the set list_separator in some cases
208
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,
212         not the default one.
213
214         * glib/tests/keyfile.c: (test_lists), (test_reload_idempotency): Test
215         this.
216
217 2008-11-21  Christophe Fergeau <teuf@gnome.org>
218
219         Bug 561212 – GFileReadMoreCallback API doc refers to non-existant function
220
221         * gio/giotypes.h: fix name of function referred to in
222         GFileReadMoreCallback API documentation
223
224 2008-11-21  Matthias Clasen <mclasen@redhat.com>
225
226         * configure.in: Bump gtk-doc dependency to 1.11 for
227         nicer index-generation.
228
229 2008-11-14  Matthias Clasen <mclasen@redhat.com>
230
231         * NEWS: Updates
232
233 2008-11-04  Christian Dywan  <christian@imendio.com>
234
235         Bug 558672 – NULL key lookup using g_hash_table_lookup_extended()
236
237         * glib/ghash.c:
238         Clarify g_hash_table_lookup_extended
239
240 2008-11-02  Tor Lillqvist  <tml@novell.com>
241
242         * configure.in: Expand also build/win32/vs9/Makefile.
243
244 2008-10-31  Christian Dywan  <christian@imendio.com>
245
246         Bug 558513 – g_warn_if_fail FIXME in gtestutils
247
248         * glib/gtestutils.c (g_test_log_send):
249         Turn g_assert into g_warn_if_fail as advised
250
251 2008-10-31  Grahame Bowland  <grahame@angrygoats.net>
252
253         Bug 558185 – 'parent' variable in g_local_file_get_child_for_display_name() 
254         hits g_object_unref(NULL) assertion
255
256         * gio/glocalfile.c: 
257         - remove unused variable. Patch by Matt Johnston <matt@ucc.asn.au>
258
259 2008-10-29 16:11:14  Tim Janik  <timj@gtk.org>
260
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
264
265 2008-10-27  Joseph Pingenot  <gnomesvn@digitasaru.net>
266
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..
272
273 2008-10-23 Matthias Clasen <mclasen@redhat.com>
274
275         Bug 557210 – g_compute_checksum_for_* asserts with less than 2 bytes
276
277         * glib/gchecksum.c (g_compute_checksum_for_data): Accept 
278         lengths < 2. Patch by Tommi Komulainen
279
280         * tests/checksum-test.c: Add a test for this
281
282 2008-10-23 Matthias Clasen <mclasen@redhat.com>
283
284         Bug 556921 – gpoll.h breaks hal compilation
285
286         * glib/gpoll.h: Include gtypes.h. Pointed out by Anis Elleuch
287
288 2008-10-20 Christian Persch <chpe@gnome.org>
289
290         Bug 557087 – mem leak in g_content_types_get_registered
291                 
292         * gio/gcontenttype.c: Plug a mem leak.
293
294 2008-10-19  Michael Natterer  <mitch@imendio.com>
295
296         Bug 556186 – gpoll.h breaks gmain.h inclusion
297
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.
301
302 2008-10-16  Matthias Clasen <mclasen@redhat.com>
303
304         * configure.in: Bump version to 2.19.1
305
306         * === Released 2.19.0 ===
307
308         * NEWS: Updates
309
310 2008-10-14  Christian Persch <chpe@gnome.org>
311
312         Bug 556186 – gpoll.h breaks gmain.h inclusion
313
314         * glib/gpoll.h: Only disallow direct inclusion when
315         G_DISABLE_SINGLE_INCLUDES is defined.
316
317 2008-10-13  Sven Herzberg  <sven@imendio.com>
318
319         Bug 556101 – static mutex yields warnings with g++
320         Reviewed by Tim Janik
321
322         * configure.in: added an intermediate cast to gpointer
323
324 2008-10-13  Christian Persch <chpe@gnome.org>
325
326         Bug 555311 – format not a string literal and no format arguments
327
328         * glib/gmarkup.c:
329         * glib/gshell.c: Use literal errors where appropriate.
330
331 2008-10-10  Behdad Esfahbod  <behdad@gnome.org>
332
333         Bug 551355 – [PATCH] Make glib build with libtool 2.2
334
335         * autogen.sh: Accept libtool 2.2.   We are moving towards having
336         it working.
337
338 2008-10-10  Behdad Esfahbod  <behdad@gnome.org>
339
340         * configure.in: With libtool 2.x, regenerate libtool early.
341         Based on bug 552107, patch by Patryk Zawadzki
342
343 2008-10-10  Matthias Clasen  <mclasen@redhat.com>
344
345         Bug 554557 – Patch to fix gcc warnings about missing format 
346         specifiers
347
348         * glib/gmarkup.c:
349         * glib/gshell.c:
350         * glib/grel.c: Fix gcc warnings. Patch by Kjartan Maraas
351
352 2008-10-10  Matthias Clasen  <mclasen@redhat.com>
353
354         Bug 552861 – glib-2.0.m4 calls system(3) without storing its result
355
356         * m4macros/glib-2.0.m4: Cosmetic change to make -Werror happy.
357         Patch by Andreas Köhler
358
359 2008-10-08  Christian Persch  <chpe@gnome.org>
360
361         Bug 555313 – GFileAttribute boxed type get_type function should
362         use usual get_type pattern
363
364         * gio/gfileattribute.c (g_file_attribute_info_list_get_type): Use
365         g_once_init_enter/leave.
366
367 2008-10-08  Christian Persch  <chpe@gnome.org>
368
369         Bug 555314 – mem leak in gmarkup
370
371         * glib/gmarkup.c: (g_markup_parse_context_parse): Plug a mem leak.
372
373 2008-10-08  Tor Lillqvist  <tml@novell.com>
374
375         Bug 554790 - g_convert() misbehaves with winiconv versions
376
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.
380
381 2008-10-06  Matthias Clasen  <mclasen@redhat.com>
382
383         * glib/gtypes.h: Properly include gmacros.h
384
385 2008-10-06  Behdad Esfahbod  <behdad@gnome.org>
386
387         Bug 555309 – giochannel breaks on error
388         Patch from Christian Persch
389
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!
393
394 2008-10-06  Christophe Fergeau  <teuf@gnome.org>
395
396         Bug 555224 – Improve g_format_size_for_display doc
397         
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.
402
403 2008-10-01  David Zeuthen  <davidz@redhat.com>
404
405         * README.in: Add "Notes about glib 2.20" section detailing the
406         ramifications of the patch from bug #528670.
407
408 2008-09-30  Behdad Esfahbod  <behdad@gnome.org>
409
410         Bug 554092 – glib doesn't return G_FILE_ERROR_NOENT et al on OS X
411
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.
417
418 2008-09-30  Tor Lillqvist  <tml@novell.com>
419
420         * Makefile.decl
421         * glib/tests/Makefile.am: Bypass gtester related stuff on Windows.
422
423 2008-09-30  Tor Lillqvist  <tml@novell.com>
424
425         * glib/gprintf.c
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.
429
430 2008-09-26  Dan Winship  <danw@gnome.org>
431
432         Bug 553447 – g_assert_no_error()
433
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
436         error.
437
438         * glib/gtestutils.c (g_assertion_message_error): utility for
439         those macros
440
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
446
447 2008-09-26  Dan Winship  <danw@gnome.org>
448
449         * glib/gthreadpool.c (wakeup_thread_marker): make this a "const
450         gpointer" rather than a gconstpointer to avoid warnings later
451
452         * glib/pcre/pcre_ucp_searchfuncs.c:
453         * glib/pcre/pcre_valid_utf8.c: #include "config.h"
454
455         * glib/tests/printf.c (test_d): fool gcc into not warning about
456         some printf format strings that we know are dubious
457
458 2008-09-26  Matthias Clasen  <mclasen@redhat.com>
459
460         Bug 553857 – gbacktrace.h requires signal.h
461
462         * glib/gbacktrace.h: Include signal.h for raise(). 
463         Pointed out by Sebastien Bacher
464
465 2008-09-26  Matthias Clasen  <mclasen@redhat.com>
466
467         Bug 553724 – python interpretter path not patched in correctly
468
469         * glib/Makefile.am: Fix the sed magic to replace python.
470
471 2008-09-26  Matthias Clasen  <mclasen@redhat.com>
472
473         * glib/gmain.c: Add some more docs.
474
475         * glib/giochannel.c: Move more docs inline, and improve them
476         on the way.
477
478 2008-09-25  Tor Lillqvist  <tml@novell.com>
479
480         Bug 553820 - gpoll.c: undeclared identifier
481
482         * glib/gmain.c
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.
487
488 2008-09-25  Tor Lillqvist  <tml@novell.com>
489
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.
494
495         * glib/gspawn.c (g_spawn_async_with_pipes): Corresponding change
496         in documentation.
497
498 2008-09-24  Sven Herzberg  <sven@imendio.com>
499
500         Be a little more explcit in the docs. Includes Owen's requested
501         changes.
502
503         * glib/gmain.c: improved documentation for g_source_attach() and
504         g_source_destroy()
505
506 2008-09-23  Michael Natterer  <mitch@imendio.com>
507
508         * glib/glib.h: #include <glib/gpoll.h>
509
510         * glib/gpoll.h: #error out if gpoll.h is included directly.
511
512         * glib/gpoll.c: remove trailing whitespace.
513
514 2008-09-23  Dan Winship  <danw@gnome.org>
515
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
518         poll() available.)
519
520 2008-09-23  Tor Lillqvist  <tml@novell.com>
521
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.
526
527 2008-09-19  Hans Petter Jansson  <hpj@novell.com>
528
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.
534
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
548         notify functions.
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
557         changed lightly.
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)
565         (g_hash_table_find)
566         (g_hash_table_get_keys)
567         (g_hash_table_get_values): Use new data structure and algorithm,
568         fairly trivial changes.
569
570 2008-09-19  Tor Lillqvist  <tml@novell.com>
571
572         * glib-zip.in: Look for man pages in share/man.
573
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.
579
580 2008-09-18  Matthias Clasen <mclasen@redhat.com>
581
582         * configure.in: Bump version to 2.19.0
583
584         * ChangeLog.pre-2-18: rotate ChangeLog
585         
586         * === branch for 2.18 ===