Fix up a doc comment
[platform/upstream/glib.git] / ChangeLog
1 2007-11-26  Matthias Clasen  <mclasen@redhat.com>
2
3         * gio/gfileattribute.c: Fix up a doc comment.
4
5 2007-11-26  Alexander Larsson  <alexl@redhat.com>
6
7         * Makefile.am:
8         * configure.in:
9         * gio-2.0-uninstalled.pc.in:
10         * gio-2.0.pc.in: 
11         * gio-unix-2.0-uninstalled.pc.in:
12         * gio-unix-2.0.pc.in:
13         * gio/
14         * docs/reference/gio
15         Merged gio-standalone into glib.
16         
17         * glib/glibintl.h:
18         * glib/gutils.c:
19         Export glib_gettext so that gio can use it
20         Add P_ (using same domain for now)
21         Add I_ as g_intern_static_string
22
23 2007-11-26  Tor Lillqvist  <tml@novell.com>
24
25         * glib/win_iconv.c: ISO8859-1 is CP28591, not CP1252.
26
27 2007-11-26  Tor Lillqvist  <tml@novell.com>
28
29         Implement #491549: On Windows, always use the native API for
30         character set conversions instead of GNU libiconv. Almost all
31         codesets supported by GNU libiconv exist as Windows codepages.
32         One missing feature is the "C99" and "JAVA" pseudo codesets, but I
33         doubt that is worth worrying about.
34         
35         * glib/win_iconv.c: New file. iconv() implementation for
36         Windows. Placed in the public domain by Yukihiro Nakadaira
37         <yukihiro.nakadaira@gmail.com>. From
38         http://yukihiro.nakadaira.googlepages.com/win_iconv.zip, his
39         2007-11-17 version.
40
41         * glib/gconvert.c: Include win_iconv.c on Windows.
42
43         * glib/Makefile.am: Add win_iconv.c to EXTRA_DIST.
44         
45         * configure.in: Bypass iconv checks on Windows. 
46
47 2007-11-25  Tor Lillqvist  <tml@novell.com>
48
49         * glib/gtestutils.c: Add conditionals for non-Unix. Just g_error()
50         unless G_OS_UNIX for now.
51
52 2007-11-25  Matthias Clasen  <mclasen@redhat.com>
53
54         * configure.in: Require gtk-doc 1.8.
55
56         * glib/gasyncqueue.c:
57         * glib/gdate.c:
58         * glib/gfileutils.c:
59         * glib/gmain.c:
60         * glib/gmarkup.c:
61         * glib/gregex.c:
62         * glib/gtestutils.c:
63         * glib/gutils.c: Use gtk-doc abbreviations for 
64         examples in doc comments.
65
66 2007-11-24  Matthias Clasen  <mclasen@redhat.com>
67
68         * */Makefile.am: Replace INCLUDES by AM_CPPFLAGS, other
69         cleanups.
70
71 2007-11-24  Matthias Clasen  <mclasen@redhat.com>
72
73         * tests/base64-test.c: Fix a memory overrun.
74
75 2007-11-24  Matthias Clasen  <mclasen@redhat.com>
76
77         * glib/gutils.c: Remove leftover ENABLE_NLS #ifdefs.
78
79 2007-11-23  Matthias Clasen  <mclasen@redhat.com>
80
81         * glib/gbase64.c (g_base64_encode): Don't refuse to encode
82         a single byte.  (Milan Crha)
83
84         * tests/base64-test.c: Test encoding short strings.
85
86 2007-11-23  Matthias Clasen  <mclasen@redhat.com>
87
88         * glib/gi18n-lib.h: 
89         * glib/gi18n.h: Define a two-argument macro C_() for marking
90         translatable strings with context and implement C_() and Q_()
91         using g_dpgettext().  (#142676, Morten Welinder)
92
93         * glib/glib.symbols:
94         * glib/gstrfuncs.[hc]: Implement g_dpgettext().
95
96 2007-11-23  Matthias Clasen  <mclasen@redhat.com>
97
98         * glib/goption.c: Use g_print to print out --help text in 
99         locale encoding.  (#469551, Takao Fujiwara)
100
101 2007-11-22  Matthias Clasen  <mclasen@redhat.com>
102
103         * glib/gkeyfile.c: Set length out param in list-returning functions
104         to 0 when returning NULL.  (#498728, Christian Persch)
105
106 2007-11-21 21:06:47  Tim Janik  <timj@imendio.com>
107
108         * Makefile.decl: initialize automake variables EXTRA_DIST and
109         TEST_PROGS for unconditional appending via += in other makefiles.
110         define recursive test targets: test, test-report, perf-report,
111         full-report, as described here:
112       http://mail.gnome.org/archives/gtk-devel-list/2007-November/msg00000.html
113
114         * Makefile.am:
115         * build/win32/vs8/Makefile.am, build/win32/dirent/Makefile.am:
116         * build/win32/Makefile.am, build/Makefile.am:
117         * docs/Makefile.am, docs/reference/Makefile.am:
118         * docs/reference/glib/Makefile.am, docs/reference/gobject/Makefile.am:
119         * gmodule/Makefile.am, tests/Makefile.am:
120         * tests/refcount/Makefile.am, tests/gobject/Makefile.am:
121         * glib/update-pcre/Makefile.am, glib/libcharset/Makefile.am:
122         * glib/tests/Makefile.am, glib/pcre/Makefile.am:
123         * glib/gnulib/Makefile.am, gobject/Makefile.am, m4macros/Makefile.am:
124         * gthread/Makefile.am, glib/Makefile.am:
125         include $(top_srcdir)/Makefile.decl, adapted EXTRA_DIST assignments.
126
127         * glib/tests/Makefile.am: removed example testing rules.
128
129         * glib/tests/testing.c: conditionalized performance and slow tests.
130
131         * glib/gtestutils.h:
132         * glib/gtestutils.c: work around g_test_config_vars not changing its
133         exported value after value assignments, aparently due to symbol aliases.
134
135         * glib/gtester.c: fixed off-by-one error which produced junk in logs.
136
137         * configure.in: check for python >= 2.4 and provide $PYTHON for scripts.
138
139 Tue Nov 20 15:59:55 2007 +0100 Tim Janik
140
141         Renamed gtestframework to gtestutils.
142
143         * glib/glib.h:
144         * glib/Makefile.am: added gtestutils.h to public includes.
145
146         * glib/gtestutils.c: include gtestutils.h.
147
148         * glib/gtestutils.h:
149         * glib/glib.symbols:
150         * glib/tests/testing.c: renamed gtestframework to gtestutils.
151
152         * glib/gtestframework.h: renamed to gtestutils.h.
153
154         * glib/gtestframework.c: renamed to gtestutils.c.
155
156 Tue Nov 20 15:29:34 2007 +0100 Tim Janik
157
158         glib/gtestframework.c: g_test_init(): make warnings and criticals fatal for all test programs.
159
160 Wed Nov 14 20:35:05 2007 +0100 Tim Janik
161
162         gtestframework.c: added test API documentation by Sven Herzberg and Tim Janik.
163
164 Wed Nov 14 19:10:28 2007 +0100 Tim Janik
165
166         gtestframework.[hc]: implemented g_test_queue_destroy() and g_test_queue_unref().
167
168 Fri Nov 9 12:28:52 2007 +0100 Tim Janik
169
170         Added g_test_bug() and related API.
171
172         * gtester.c: handle G_TEST_LOG_MESSAGE and test test message API.
173
174         * gtestframework.h, gtestframework.c: added test message API and convenience
175         API to send test messages about bug URLs.
176
177 Fri Nov 9 11:35:11 2007 +0100 Tim Janik
178
179         Added API to access test framework configuration.
180
181         * gtestframework.h, gtestframework.c: export testing configuration to test
182         programs with g_test_quick(), g_test_perf(), g_test_verbose(), g_test_quiet().
183
184 Thu Nov 8 17:55:09 2007 +0100 Tim Janik
185
186         gtester: implemented logic to handle failing tests, self tests, and validate XML reports.
187
188         * gtester.c: terminate when tests failed. keep XML valid when test cases fail.
189         restart test binaries when tests fail, resuming after the last processed test.
190         support --gtester-selftest to run gtester itself as test program.
191         support --test-arg=<arg> to pass args along to test programs. added
192         main_selftest() which does a simplistic fixture test. fail if exit
193         code of test programs is not 0.
194
195         * gtestframework.h: added G_TEST_LOG_SKIP_CASE test log message type.
196
197         * gtestframework.c: support --GTestSkipCount=<n> to skip a number of tests.
198
199         * tests/Makefile.am: added test-report: for demonstration purposes.
200         added gtester-xmllint-check: and hooked it up into check:, this rule calls
201         gtester as test program, running it's selftest, and then uses xmllint to
202         validate the generate XML test log file.
203
204 Thu Nov 8 14:51:37 2007 +0100 Tim Janik
205
206         gtester: implemented XML logging.
207
208         * glib/gtester.c: log test messages to XML output file. beautified normal test
209         result output.
210
211         * glib/gtestframework.c: fixed GTimer leak.
212
213         * glib/tests/Makefile.am: start gtester with --verbose.
214
215 Thu Nov 8 12:33:31 2007 +0100 Tim Janik
216
217         tests/Makefile.am: execute test programs with gtester, add test: to check:
218
219 Thu Nov 8 12:18:51 2007 +0100 Tim Janik
220
221         Fixed PLT symbol exports for gtestframework.h.
222
223         * glib/glib.symbols: added all exported gtestframework.h symbols.
224
225         * glib/gtestframework.c: include galias.h, galiasdef.c, define __G_TESTFRAMEWORK_C__.
226
227 Thu Nov 8 11:31:12 2007 +0100 Tim Janik
228
229         glib/gtester.c: fixed debugging flag.
230
231 Wed Nov 7 17:56:26 2007 +0100 Tim Janik
232
233         fixed bogus unistd.h include.
234
235 Wed Nov 7 17:53:30 2007 +0100 Tim Janik
236
237         Implemented test log IPC.
238
239         * gtester.c: read and decode log messages from test binary child processes.
240         fixed GIOChannel and child watch handling to process all messages and avoid
241         hangs. pass --verbose and --quiet on to children, default to --quiet.
242
243         * gtestframework.h: export g_test_log_type_name().
244
245         * gtestframework.c: send test log to --GTestLogFD=<fd> if given, removed
246         bogus -o-option.
247
248 Tue Nov 6 20:07:44 2007 +0100 Tim Janik
249
250         gtester.c: support test case listing through gtester.
251
252 Tue Nov 6 20:01:06 2007 +0100 Tim Janik
253
254         gtestframework.c: fixed testpath matches for automatic root suite.
255
256 Tue Nov 6 19:50:33 2007 +0100 Tim Janik
257
258         gtester.c: adapted to become a rudimentary test binary launcher.
259
260         * gtester.c: increased read buffer size to match common unix pipe buffer size.
261         added argument parsing and usage. changed io handling to capture and replicate
262         stdout. fixed io handlers to be cleaned up when the child process exits (catch
263         G_IO_ERR | G_IO_HUP). we now use pending/iteration instead of a main loop
264         structure, to keep running until the child process exits and all io has been
265         processed. launch the test binaries given on the command line. don't quit when
266         a child couldn't be launched but --keep-going was specified.
267
268 Tue Nov 6 17:11:37 2007 +0100 Tim Janik
269
270         Integrated gtester program into build process.
271
272         * Makefile.am: build and install gtester binary.
273
274         * gtester.c: fixed up coding style and removed hard wired test coded.
275
276 Tue Nov 6 16:12:32 2007 +0100 Sven Herzberg
277
278         glib/gtester.c:Small -Wall fix
279
280 Tue Nov 6 16:05:06 2007 +0100 Sven Herzberg
281
282         glib/gtester.c:Implemented nonblocking reading properly now
283
284 Mon Nov 5 13:53:23 2007 +0100 Sven Herzberg
285
286         glib/gtester.c:Quit the application when the output is parsed completely, not just the process finished
287
288 Mon Nov 5 12:00:16 2007 +0100 Sven Herzberg
289
290         glib/gtester.c:Read the output of the child process
291
292 Mon Nov 5 11:50:59 2007 +0100 Sven Herzberg
293
294         glib/gtester.c:Use g_spawn_async_with_pipes()
295
296 Mon Nov 5 11:50:08 2007 +0100 Sven Herzberg
297
298         glib/gtester.c:Spawn a process async and quit gtester after the child process exited
299
300 Mon Nov 5 11:30:45 2007 +0100 Sven Herzberg
301
302         glib/gtester.c:Added a first revision of gtester
303
304 Tue Nov 6 16:47:06 2007 +0100 Tim Janik
305
306         Implemented test log serialization.
307
308         * glib/gtestframework.h: added g_test_log*() API.
309
310         * glib/gtestframework.c: implement test log serialization.
311
312 Tue Nov 6 14:24:54 2007 +0100 Tim Janik
313
314         Implemented test logging basics.
315
316         * glib/gtestframework.c: added --debug-log and --verbose, implemented
317         test information logging.
318
319         * testing.c: test g_test_maximized_result() and g_test_minimized_result().
320
321 Tue Nov 6 11:52:14 2007 +0100 Tim Janik
322
323         Implemented g_test_timer*().
324
325         * gtestframework.c: implemented g_test_timer*().
326
327         * tests/testing.c: added a g_test_timer*() test.
328
329 Mon Nov 5 18:28:24 2007 +0100 Tim Janik
330
331         Implemented support for testpaths.
332
333         * gtestframework.c: implemented g_test_add_vtable() and g_test_add_func().
334
335         * tests/testing.c: use g_test_add() and g_test_add_func() to majorly simplify main().
336
337 Mon Nov 5 15:56:42 2007 +0100 Tim Janik
338
339         testing.c: added tests for the g_test_rand*() API.
340
341 Mon Nov 5 15:55:38 2007 +0100 Tim Janik
342
343         Implemented g_test_rand*().
344
345         * gtestframework.h: fixed g_assert_cmp*() to evaluate arguments only once.
346         added g_assert_cmpuint(). completed g_test_rand*() to cover bits, ints,
347         doubles and ranges.
348
349         * gtestframework.c: fixed "--seed" option and implemented g_test_rand*().
350
351 Mon Nov 5 15:51:43 2007 +0100 Tim Janik
352
353         testing.c: added tests for g_assert_cmphex() and forked test traps.
354
355 Mon Nov 5 15:10:18 2007 +0100 Tim Janik
356
357         Implemented g_test_trap_fork() API.
358
359         * gtestframework.h: added g_assert_cmphex(). reworked g_test_trap*() API.
360
361         * gtestframework.c: implemented g_test_trap_fork() API.
362
363 Thu Nov 1 15:05:07 2007 +0100 Tim Janik
364
365         * glib/gtestframework.c:
366
367         that match a given test path.
368         (g_test_run_suite): run suite only if it matches the existing test paths.
369
370         * glib/tests/testing.c: minor rename.
371
372 Thu Nov 1 13:45:55 2007 +0100 Tim Janik
373
374         GTest framework started.
375
376         * glib/gtestframework.h: testing framework API as proposed on gtk-devel-list.
377         includes elaborate assertions, performance report functions, test traps,
378         test timer, test random numbers, teardoiwn garbage collection functions
379         and general test case / test suite management APIs.
380
381         * glib/gtestframework.c: first test framework implementation. already covers
382         some test suite management APIs and assertion message implementations.
383
384         * glib/tests/testing.c: test program for the testing framework.
385
386         * glib/tests/Makefile.am: complie testing.c as test. run all tests as part of
387         make test:.
388
389 Wed Oct 31 15:42:48 2007 +0100 Tim Janik
390
391         glib/Makefile.am: build tests/ subdir after building libglib.
392
393 Tue Oct 30 16:17:32 2007 +0100 Tim Janik
394
395         Fixed up internal 'g_test*' names.
396
397         * refcount/signals.c:
398         * refcount/objects.c:
399         * refcount/objects2.c:
400         * refcount/closures.c:
401         * refcount/properties.c:
402         * refcount/properties2.c: changed namespace prefix from g_test_* to my_test_*
403         to not clash with newly introduced g_test* API in glib.
404
405 Tue Oct 30 14:41:26 2007 +0100 Tim Janik
406
407         Added gtestframework.[hc] and glib/tests/.
408
409 2007-11-20  Sven Neumann  <sven@gimp.org>
410
411         * glib/gerror.c (g_error_add_prefix): use g_strconcat() instead of
412         g_strjoin() to concatenate two strings.
413
414 2007-11-19  Marco Barisione  <marco@barisione.org>
415
416         * glib/gregex.c: When the compilation of a pattern fails in the error
417         message use the character offset and not the byte offset.
418
419         * glib/gregex.c: Pass an unsigned long instead of an int to
420         pcre_fullinfo() to avoid problems on 64-bit systems (#498113, Kouhei
421         Sutou)
422
423 2007-11-19 10:30:33  Tim Janik  <timj@imendio.com>
424
425         * configure.in: updated version number to 2.15.0 for development.
426
427 2007-11-18  Matthias Clasen  <mclasen@redhat.com>
428
429         * glib/gbase64.c: Documentation improvements.  (#496518,
430         Stefan Schulze Frielinghaus)
431
432 2007-11-18  Matthias Clasen  <mclasen@redhat.com>
433
434         * configure.in: Check whether assembler supports numerical local
435         labels.  
436
437         * glib/gatomic.c: Fix powerpc implementation of atomic ops for 
438         platforms where the assembler doesn't support numerical local
439         labels.  (#445362)
440
441 2007-11-15  Ryan Lortie  <desrt@desrt.ca>
442
443         * docs/reference/glib/tmpl/markup.sgml:
444         * glib/gmarkup.h:
445         * glib/gmarkup.c: new flag G_MARKUP_PREFIX_ERROR_POSITION to cause the
446         parser to prepend location information (ie: "Error on line %d, char
447         %d:") to errors generated by the GMarkupParser callbacks.
448
449         Closes #496046.
450
451 2007-11-15  Ryan Lortie  <desrt@desrt.ca>
452
453         * docs/reference/glib/glib-sections.txt:
454         * glib/glib.symbols:
455         * glib/gerror.h:
456         * glib/gerror.c: new functions g_prefix_error and
457         g_propagate_prefixed_error.
458
459 2007-11-13  Cody Russell  <bratsche@gnome.org>
460
461         * docs/reference/gobject/gobject-docs.sgml:
462         * docs/reference/gobject/tut_gsignal.xml:
463         * docs/reference/gobject/tut_gtype.xml:
464         * docs/reference/gobject/tut_intro.xml:
465         * docs/reference/gobject/tut_tools.xml:
466         * docs/reference/gobject/tut_howto.xml:
467         * docs/reference/gobject/tut_gobject.xml: Documentation fixes.
468         Recommend macro type names such as NAUTILUS_TYPE_WINDOW (not
469         NAUTILUS_WINDOW_TYPE).  Fixed text which erroneously stated that 
470         superclass initializers don't run when an object is 
471         instantiated.  Fixed numerous spelling mistakes.  Minor grammar 
472         edits. (#490637, Adam Dingle)
473
474 2007-11-09  Matthias Clasen <mclasen@redhat.com>
475
476         * glib/gkeyfile.c: Coding style cleanups and doc 
477         improvements.  (#491979, #491982, Areg Beketovski)
478
479 2007-11-09  Matthias Clasen <mclasen@redhat.com>
480
481         * glib/giochannel.c: Coding style cleanups and doc 
482         improvements.  (#491975, Areg Beketovski)
483
484 2007-11-09  Matthias Clasen <mclasen@redhat.com>
485
486         * glib/gmain.c (g_main_context_iteration): Improve the
487         docs.  (#491974, Areg Beketovski)
488
489 2007-11-09  Matthias Clasen <mclasen@redhat.com>
490
491         * glib/gdate.c: Coding style fixes.
492
493 2007-11-09  Matthias Clasen <mclasen@redhat.com>
494
495         * configure.in: Add AM_PROG_CC_C_O.
496
497         * Makefile.am: Remove the install-exec-local hook and use
498         configexecincludedir_DATA instead, in an attempt to avoid
499         automake 1.9 <> 1.10 incompatibilities.
500
501         * glib/Makefile.am: Rename MIRRORING_TAB_SOURCES, since
502         automake 1.10 complains.
503
504 2007-11-09  Matthias Clasen <mclasen@redhat.com>
505
506         * glib/gspawn.c (g_spawn_sync): Improve the docs.  (#491968,
507         Areg Beketovski)
508
509 2007-11-08  Matthias Clasen <mclasen@redhat.com>
510
511         * glib/gmain.c (g_main_context_release): 
512         (g_main_context_acquire):
513         (g_main_context_new): Fix the doc wording.  (#491957, 
514         #491965, #491966, Areg Beketovski)
515
516 2007-11-08  Matthias Clasen <mclasen@redhat.com>
517
518         * glib/gutils.c (g_set_application_name): Add a missing
519         since tag.  (#464259, Mark Doliner)
520
521 2007-11-08  Matthias Clasen <mclasen@redhat.com>
522
523         * glib/goption.c (g_option_context_new): Improve the docs.
524         (#436293, Vincent Untz)
525
526 2007-11-08  Matthias Clasen <mclasen@redhat.com>
527
528         * glib/gmain.c (g_main_loop_quit): Expand the docs 
529         a bit.  (#317775, Søren Sandmann)
530
531 2007-11-08  Matthias Clasen <mclasen@redhat.com>
532         
533         * autogen.sh: Accept automake 1.10, too
534
535         * mkinstalldirs: Temporarily add this script, to fix building
536         from svn.
537
538         * Makefile.am: Use MKDIRS_P instead of mkinstalldirs, add
539         ChangeLog.pre-2-14 and mkinstalldirs to EXTRA_DIST.
540
541 2007-11-08  Matthias Clasen <mclasen@redhat.com>
542
543         * glib/gmarkup.h: Include gslist.h. Pointed out by Michael Natterer.
544
545 2007-11-08  Matthias Clasen <mclasen@redhat.com>
546
547         * glib/gconvert.c (g_convert_with_iconv): Try harder to reset
548         shift state with AIX iconv().  (#467537)
549
550 2007-11-08  Matthias Clasen <mclasen@redhat.com>
551
552         * configure.in:
553         * m4macros/glib-2.0.m4: Require pkg-config 0.16 in configure
554         and in AM_PATH_GLIB_2_0 to be consistent with the use of
555         PKG_PROG_PKG_CONFIG which was introduced in 0.16.  (#418778,
556         Loïc Minier)
557
558 2007-11-08  Matthias Clasen <mclasen@redhat.com>
559
560         * glib/gstrfuncs.c (g_parse_long_long): Don't leave
561         out parameters uninitialized.  (#490061, Benjamin Otte)
562
563 2007-11-07  Matthias Clasen <mclasen@redhat.com>
564
565         * glib/gmain.c (g_main_context_unref): Don't leak the
566         condvar.  (#479724, Areg Beketovski)
567
568 2007-11-07  Matthias Clasen <mclasen@redhat.com>
569
570         * glib/glib.symbols:
571         * glib/gmarkup.[hc] (g_markup_parse_context_get_element_stack): 
572         New function, to get the stack of open elements.  (#452887,
573         Ryan Lortie)
574
575 2007-11-07  Matthias Clasen <mclasen@redhat.com>
576
577         * glib/gkeyfile.[hc]: Make some functions that take
578         a GError return boolean instead of void.  (#375651, Matt Barnes)
579
580 2007-11-07  Matthias Clasen <mclasen@redhat.com>
581         
582         * autogen.sh: Use automake 1.9
583
584         * acinclude.m4:
585         * configure.in: Move some inter-*.m4 includes from
586         configure.in to acinclude.m4 to avoid warnings when
587         using automake 1.9.  (#449937)
588
589 2007-11-07  Matthias Clasen <mclasen@redhat.com>
590
591         === Branch for 2.14 ===