1 2007-11-28 Alexander Larsson <alexl@redhat.com>
7 Use the aliases framework
11 Make the alias stuff work now that glib_gettext
12 is exported to libgio.
14 2007-11-27 Ryan Lortie <desrt@desrt.ca>
16 * glib/ghash.c (g_hash_table_insert, g_hash_table_replace,
17 g_hash_table_insert_internal): insert/replace were identical except
18 for a single line. Replace both with a common function.
20 2007-11-27 Alexander Larsson <alexl@redhat.com>
26 * glib/gurifuncs.[ch]:
27 Moved gurifuncs from gio to glib
29 2007-11-27 Alexander Larsson <alexl@redhat.com>
32 * glib/gfileutils.[ch]:
33 Move g_format_file_size_for_display from gio to glib
35 2007-11-27 Alexander Larsson <alexl@redhat.com>
38 Allow configuration of gio-module-dir
41 Export giomodules location as giomodule variable
43 2007-11-26 Matthias Clasen <mclasen@redhat.com>
45 * tests/markup-collect.c: Add some tests for invalid booleans
47 2007-11-26 Ryan Lortie <desrt@desrt.ca>
49 Add new function g_markup_collect_attributes (bug #496847).
51 * glib/glib.symbols: add g_markup_collect_attributes
53 * docs/reference/glib/glib-sections.txt:
55 * glib/gmarkup.c: add g_markup_collect_attributes and new enumerated
56 type GMarkupCollectType. Add new error code
57 G_MARKUP_ERROR_MISSING_ATTRIBUTE that is thrown by the attribute
60 2007-11-27 Tor Lillqvist <tml@novell.com>
62 * glib/win_iconv.c: Some improvements, being upstreamed.
63 (must_use_null_useddefaultchar): New function, checks for those
64 codepages for which one must pass a NULL lpUsedDefaultChar pointer
65 to WideCharToMultiByte().
66 (kernel_wctomb): Use it.
67 (kernel_wctomb): Return with E2BIG immediately if bufsize is zero.
69 2007-11-27 Tor Lillqvist <tml@novell.com>
71 * glib/gutils.c (_glib_get_locale_dir) [Win32]: Use either
72 lib/locale or share/locale depending on which one is in
73 GLIB_LOCALE_DIR. When the configury recognizes GNU gettext (based
74 on the _nl_msg_cat_cntr variable, eek), share/locale gets used.
76 * glib-zip.in: Likewise, look for message catalogs either in
77 lib/locale or share/locale.
79 2007-11-26 Matthias Clasen <mclasen@redhat.com>
81 * gio/gfileattribute.c: Fix up a doc comment.
83 2007-11-26 Alexander Larsson <alexl@redhat.com>
87 * gio-2.0-uninstalled.pc.in:
89 * gio-unix-2.0-uninstalled.pc.in:
93 Merged gio-standalone into glib.
97 Export glib_gettext so that gio can use it
98 Add P_ (using same domain for now)
99 Add I_ as g_intern_static_string
101 2007-11-26 Tor Lillqvist <tml@novell.com>
103 * glib/win_iconv.c: ISO8859-1 is CP28591, not CP1252.
105 2007-11-26 Tor Lillqvist <tml@novell.com>
107 Implement #491549: On Windows, always use the native API for
108 character set conversions instead of GNU libiconv. Almost all
109 codesets supported by GNU libiconv exist as Windows codepages.
110 One missing feature is the "C99" and "JAVA" pseudo codesets, but I
111 doubt that is worth worrying about.
113 * glib/win_iconv.c: New file. iconv() implementation for
114 Windows. Placed in the public domain by Yukihiro Nakadaira
115 <yukihiro.nakadaira@gmail.com>. From
116 http://yukihiro.nakadaira.googlepages.com/win_iconv.zip, his
119 * glib/gconvert.c: Include win_iconv.c on Windows.
121 * glib/Makefile.am: Add win_iconv.c to EXTRA_DIST.
123 * configure.in: Bypass iconv checks on Windows.
125 2007-11-25 Tor Lillqvist <tml@novell.com>
127 * glib/gtestutils.c: Add conditionals for non-Unix. Just g_error()
128 unless G_OS_UNIX for now.
130 2007-11-25 Matthias Clasen <mclasen@redhat.com>
132 * configure.in: Require gtk-doc 1.8.
134 * glib/gasyncqueue.c:
141 * glib/gutils.c: Use gtk-doc abbreviations for
142 examples in doc comments.
144 2007-11-24 Matthias Clasen <mclasen@redhat.com>
146 * */Makefile.am: Replace INCLUDES by AM_CPPFLAGS, other
149 2007-11-24 Matthias Clasen <mclasen@redhat.com>
151 * tests/base64-test.c: Fix a memory overrun.
153 2007-11-24 Matthias Clasen <mclasen@redhat.com>
155 * glib/gutils.c: Remove leftover ENABLE_NLS #ifdefs.
157 2007-11-23 Matthias Clasen <mclasen@redhat.com>
159 * glib/gbase64.c (g_base64_encode): Don't refuse to encode
160 a single byte. (Milan Crha)
162 * tests/base64-test.c: Test encoding short strings.
164 2007-11-23 Matthias Clasen <mclasen@redhat.com>
167 * glib/gi18n.h: Define a two-argument macro C_() for marking
168 translatable strings with context and implement C_() and Q_()
169 using g_dpgettext(). (#142676, Morten Welinder)
172 * glib/gstrfuncs.[hc]: Implement g_dpgettext().
174 2007-11-23 Matthias Clasen <mclasen@redhat.com>
176 * glib/goption.c: Use g_print to print out --help text in
177 locale encoding. (#469551, Takao Fujiwara)
179 2007-11-22 Matthias Clasen <mclasen@redhat.com>
181 * glib/gkeyfile.c: Set length out param in list-returning functions
182 to 0 when returning NULL. (#498728, Christian Persch)
184 2007-11-21 21:06:47 Tim Janik <timj@imendio.com>
186 * Makefile.decl: initialize automake variables EXTRA_DIST and
187 TEST_PROGS for unconditional appending via += in other makefiles.
188 define recursive test targets: test, test-report, perf-report,
189 full-report, as described here:
190 http://mail.gnome.org/archives/gtk-devel-list/2007-November/msg00000.html
193 * build/win32/vs8/Makefile.am, build/win32/dirent/Makefile.am:
194 * build/win32/Makefile.am, build/Makefile.am:
195 * docs/Makefile.am, docs/reference/Makefile.am:
196 * docs/reference/glib/Makefile.am, docs/reference/gobject/Makefile.am:
197 * gmodule/Makefile.am, tests/Makefile.am:
198 * tests/refcount/Makefile.am, tests/gobject/Makefile.am:
199 * glib/update-pcre/Makefile.am, glib/libcharset/Makefile.am:
200 * glib/tests/Makefile.am, glib/pcre/Makefile.am:
201 * glib/gnulib/Makefile.am, gobject/Makefile.am, m4macros/Makefile.am:
202 * gthread/Makefile.am, glib/Makefile.am:
203 include $(top_srcdir)/Makefile.decl, adapted EXTRA_DIST assignments.
205 * glib/tests/Makefile.am: removed example testing rules.
207 * glib/tests/testing.c: conditionalized performance and slow tests.
210 * glib/gtestutils.c: work around g_test_config_vars not changing its
211 exported value after value assignments, aparently due to symbol aliases.
213 * glib/gtester.c: fixed off-by-one error which produced junk in logs.
215 * configure.in: check for python >= 2.4 and provide $PYTHON for scripts.
217 Tue Nov 20 15:59:55 2007 +0100 Tim Janik
219 Renamed gtestframework to gtestutils.
222 * glib/Makefile.am: added gtestutils.h to public includes.
224 * glib/gtestutils.c: include gtestutils.h.
228 * glib/tests/testing.c: renamed gtestframework to gtestutils.
230 * glib/gtestframework.h: renamed to gtestutils.h.
232 * glib/gtestframework.c: renamed to gtestutils.c.
234 Tue Nov 20 15:29:34 2007 +0100 Tim Janik
236 glib/gtestframework.c: g_test_init(): make warnings and criticals fatal for all test programs.
238 Wed Nov 14 20:35:05 2007 +0100 Tim Janik
240 gtestframework.c: added test API documentation by Sven Herzberg and Tim Janik.
242 Wed Nov 14 19:10:28 2007 +0100 Tim Janik
244 gtestframework.[hc]: implemented g_test_queue_destroy() and g_test_queue_unref().
246 Fri Nov 9 12:28:52 2007 +0100 Tim Janik
248 Added g_test_bug() and related API.
250 * gtester.c: handle G_TEST_LOG_MESSAGE and test test message API.
252 * gtestframework.h, gtestframework.c: added test message API and convenience
253 API to send test messages about bug URLs.
255 Fri Nov 9 11:35:11 2007 +0100 Tim Janik
257 Added API to access test framework configuration.
259 * gtestframework.h, gtestframework.c: export testing configuration to test
260 programs with g_test_quick(), g_test_perf(), g_test_verbose(), g_test_quiet().
262 Thu Nov 8 17:55:09 2007 +0100 Tim Janik
264 gtester: implemented logic to handle failing tests, self tests, and validate XML reports.
266 * gtester.c: terminate when tests failed. keep XML valid when test cases fail.
267 restart test binaries when tests fail, resuming after the last processed test.
268 support --gtester-selftest to run gtester itself as test program.
269 support --test-arg=<arg> to pass args along to test programs. added
270 main_selftest() which does a simplistic fixture test. fail if exit
271 code of test programs is not 0.
273 * gtestframework.h: added G_TEST_LOG_SKIP_CASE test log message type.
275 * gtestframework.c: support --GTestSkipCount=<n> to skip a number of tests.
277 * tests/Makefile.am: added test-report: for demonstration purposes.
278 added gtester-xmllint-check: and hooked it up into check:, this rule calls
279 gtester as test program, running it's selftest, and then uses xmllint to
280 validate the generate XML test log file.
282 Thu Nov 8 14:51:37 2007 +0100 Tim Janik
284 gtester: implemented XML logging.
286 * glib/gtester.c: log test messages to XML output file. beautified normal test
289 * glib/gtestframework.c: fixed GTimer leak.
291 * glib/tests/Makefile.am: start gtester with --verbose.
293 Thu Nov 8 12:33:31 2007 +0100 Tim Janik
295 tests/Makefile.am: execute test programs with gtester, add test: to check:
297 Thu Nov 8 12:18:51 2007 +0100 Tim Janik
299 Fixed PLT symbol exports for gtestframework.h.
301 * glib/glib.symbols: added all exported gtestframework.h symbols.
303 * glib/gtestframework.c: include galias.h, galiasdef.c, define __G_TESTFRAMEWORK_C__.
305 Thu Nov 8 11:31:12 2007 +0100 Tim Janik
307 glib/gtester.c: fixed debugging flag.
309 Wed Nov 7 17:56:26 2007 +0100 Tim Janik
311 fixed bogus unistd.h include.
313 Wed Nov 7 17:53:30 2007 +0100 Tim Janik
315 Implemented test log IPC.
317 * gtester.c: read and decode log messages from test binary child processes.
318 fixed GIOChannel and child watch handling to process all messages and avoid
319 hangs. pass --verbose and --quiet on to children, default to --quiet.
321 * gtestframework.h: export g_test_log_type_name().
323 * gtestframework.c: send test log to --GTestLogFD=<fd> if given, removed
326 Tue Nov 6 20:07:44 2007 +0100 Tim Janik
328 gtester.c: support test case listing through gtester.
330 Tue Nov 6 20:01:06 2007 +0100 Tim Janik
332 gtestframework.c: fixed testpath matches for automatic root suite.
334 Tue Nov 6 19:50:33 2007 +0100 Tim Janik
336 gtester.c: adapted to become a rudimentary test binary launcher.
338 * gtester.c: increased read buffer size to match common unix pipe buffer size.
339 added argument parsing and usage. changed io handling to capture and replicate
340 stdout. fixed io handlers to be cleaned up when the child process exits (catch
341 G_IO_ERR | G_IO_HUP). we now use pending/iteration instead of a main loop
342 structure, to keep running until the child process exits and all io has been
343 processed. launch the test binaries given on the command line. don't quit when
344 a child couldn't be launched but --keep-going was specified.
346 Tue Nov 6 17:11:37 2007 +0100 Tim Janik
348 Integrated gtester program into build process.
350 * Makefile.am: build and install gtester binary.
352 * gtester.c: fixed up coding style and removed hard wired test coded.
354 Tue Nov 6 16:12:32 2007 +0100 Sven Herzberg
356 glib/gtester.c:Small -Wall fix
358 Tue Nov 6 16:05:06 2007 +0100 Sven Herzberg
360 glib/gtester.c:Implemented nonblocking reading properly now
362 Mon Nov 5 13:53:23 2007 +0100 Sven Herzberg
364 glib/gtester.c:Quit the application when the output is parsed completely, not just the process finished
366 Mon Nov 5 12:00:16 2007 +0100 Sven Herzberg
368 glib/gtester.c:Read the output of the child process
370 Mon Nov 5 11:50:59 2007 +0100 Sven Herzberg
372 glib/gtester.c:Use g_spawn_async_with_pipes()
374 Mon Nov 5 11:50:08 2007 +0100 Sven Herzberg
376 glib/gtester.c:Spawn a process async and quit gtester after the child process exited
378 Mon Nov 5 11:30:45 2007 +0100 Sven Herzberg
380 glib/gtester.c:Added a first revision of gtester
382 Tue Nov 6 16:47:06 2007 +0100 Tim Janik
384 Implemented test log serialization.
386 * glib/gtestframework.h: added g_test_log*() API.
388 * glib/gtestframework.c: implement test log serialization.
390 Tue Nov 6 14:24:54 2007 +0100 Tim Janik
392 Implemented test logging basics.
394 * glib/gtestframework.c: added --debug-log and --verbose, implemented
395 test information logging.
397 * testing.c: test g_test_maximized_result() and g_test_minimized_result().
399 Tue Nov 6 11:52:14 2007 +0100 Tim Janik
401 Implemented g_test_timer*().
403 * gtestframework.c: implemented g_test_timer*().
405 * tests/testing.c: added a g_test_timer*() test.
407 Mon Nov 5 18:28:24 2007 +0100 Tim Janik
409 Implemented support for testpaths.
411 * gtestframework.c: implemented g_test_add_vtable() and g_test_add_func().
413 * tests/testing.c: use g_test_add() and g_test_add_func() to majorly simplify main().
415 Mon Nov 5 15:56:42 2007 +0100 Tim Janik
417 testing.c: added tests for the g_test_rand*() API.
419 Mon Nov 5 15:55:38 2007 +0100 Tim Janik
421 Implemented g_test_rand*().
423 * gtestframework.h: fixed g_assert_cmp*() to evaluate arguments only once.
424 added g_assert_cmpuint(). completed g_test_rand*() to cover bits, ints,
427 * gtestframework.c: fixed "--seed" option and implemented g_test_rand*().
429 Mon Nov 5 15:51:43 2007 +0100 Tim Janik
431 testing.c: added tests for g_assert_cmphex() and forked test traps.
433 Mon Nov 5 15:10:18 2007 +0100 Tim Janik
435 Implemented g_test_trap_fork() API.
437 * gtestframework.h: added g_assert_cmphex(). reworked g_test_trap*() API.
439 * gtestframework.c: implemented g_test_trap_fork() API.
441 Thu Nov 1 15:05:07 2007 +0100 Tim Janik
443 * glib/gtestframework.c:
445 that match a given test path.
446 (g_test_run_suite): run suite only if it matches the existing test paths.
448 * glib/tests/testing.c: minor rename.
450 Thu Nov 1 13:45:55 2007 +0100 Tim Janik
452 GTest framework started.
454 * glib/gtestframework.h: testing framework API as proposed on gtk-devel-list.
455 includes elaborate assertions, performance report functions, test traps,
456 test timer, test random numbers, teardoiwn garbage collection functions
457 and general test case / test suite management APIs.
459 * glib/gtestframework.c: first test framework implementation. already covers
460 some test suite management APIs and assertion message implementations.
462 * glib/tests/testing.c: test program for the testing framework.
464 * glib/tests/Makefile.am: complie testing.c as test. run all tests as part of
467 Wed Oct 31 15:42:48 2007 +0100 Tim Janik
469 glib/Makefile.am: build tests/ subdir after building libglib.
471 Tue Oct 30 16:17:32 2007 +0100 Tim Janik
473 Fixed up internal 'g_test*' names.
475 * refcount/signals.c:
476 * refcount/objects.c:
477 * refcount/objects2.c:
478 * refcount/closures.c:
479 * refcount/properties.c:
480 * refcount/properties2.c: changed namespace prefix from g_test_* to my_test_*
481 to not clash with newly introduced g_test* API in glib.
483 Tue Oct 30 14:41:26 2007 +0100 Tim Janik
485 Added gtestframework.[hc] and glib/tests/.
487 2007-11-20 Sven Neumann <sven@gimp.org>
489 * glib/gerror.c (g_error_add_prefix): use g_strconcat() instead of
490 g_strjoin() to concatenate two strings.
492 2007-11-19 Marco Barisione <marco@barisione.org>
494 * glib/gregex.c: When the compilation of a pattern fails in the error
495 message use the character offset and not the byte offset.
497 * glib/gregex.c: Pass an unsigned long instead of an int to
498 pcre_fullinfo() to avoid problems on 64-bit systems (#498113, Kouhei
501 2007-11-19 10:30:33 Tim Janik <timj@imendio.com>
503 * configure.in: updated version number to 2.15.0 for development.
505 2007-11-18 Matthias Clasen <mclasen@redhat.com>
507 * glib/gbase64.c: Documentation improvements. (#496518,
508 Stefan Schulze Frielinghaus)
510 2007-11-18 Matthias Clasen <mclasen@redhat.com>
512 * configure.in: Check whether assembler supports numerical local
515 * glib/gatomic.c: Fix powerpc implementation of atomic ops for
516 platforms where the assembler doesn't support numerical local
519 2007-11-15 Ryan Lortie <desrt@desrt.ca>
521 * docs/reference/glib/tmpl/markup.sgml:
523 * glib/gmarkup.c: new flag G_MARKUP_PREFIX_ERROR_POSITION to cause the
524 parser to prepend location information (ie: "Error on line %d, char
525 %d:") to errors generated by the GMarkupParser callbacks.
529 2007-11-15 Ryan Lortie <desrt@desrt.ca>
531 * docs/reference/glib/glib-sections.txt:
534 * glib/gerror.c: new functions g_prefix_error and
535 g_propagate_prefixed_error.
537 2007-11-13 Cody Russell <bratsche@gnome.org>
539 * docs/reference/gobject/gobject-docs.sgml:
540 * docs/reference/gobject/tut_gsignal.xml:
541 * docs/reference/gobject/tut_gtype.xml:
542 * docs/reference/gobject/tut_intro.xml:
543 * docs/reference/gobject/tut_tools.xml:
544 * docs/reference/gobject/tut_howto.xml:
545 * docs/reference/gobject/tut_gobject.xml: Documentation fixes.
546 Recommend macro type names such as NAUTILUS_TYPE_WINDOW (not
547 NAUTILUS_WINDOW_TYPE). Fixed text which erroneously stated that
548 superclass initializers don't run when an object is
549 instantiated. Fixed numerous spelling mistakes. Minor grammar
550 edits. (#490637, Adam Dingle)
552 2007-11-09 Matthias Clasen <mclasen@redhat.com>
554 * glib/gkeyfile.c: Coding style cleanups and doc
555 improvements. (#491979, #491982, Areg Beketovski)
557 2007-11-09 Matthias Clasen <mclasen@redhat.com>
559 * glib/giochannel.c: Coding style cleanups and doc
560 improvements. (#491975, Areg Beketovski)
562 2007-11-09 Matthias Clasen <mclasen@redhat.com>
564 * glib/gmain.c (g_main_context_iteration): Improve the
565 docs. (#491974, Areg Beketovski)
567 2007-11-09 Matthias Clasen <mclasen@redhat.com>
569 * glib/gdate.c: Coding style fixes.
571 2007-11-09 Matthias Clasen <mclasen@redhat.com>
573 * configure.in: Add AM_PROG_CC_C_O.
575 * Makefile.am: Remove the install-exec-local hook and use
576 configexecincludedir_DATA instead, in an attempt to avoid
577 automake 1.9 <> 1.10 incompatibilities.
579 * glib/Makefile.am: Rename MIRRORING_TAB_SOURCES, since
580 automake 1.10 complains.
582 2007-11-09 Matthias Clasen <mclasen@redhat.com>
584 * glib/gspawn.c (g_spawn_sync): Improve the docs. (#491968,
587 2007-11-08 Matthias Clasen <mclasen@redhat.com>
589 * glib/gmain.c (g_main_context_release):
590 (g_main_context_acquire):
591 (g_main_context_new): Fix the doc wording. (#491957,
592 #491965, #491966, Areg Beketovski)
594 2007-11-08 Matthias Clasen <mclasen@redhat.com>
596 * glib/gutils.c (g_set_application_name): Add a missing
597 since tag. (#464259, Mark Doliner)
599 2007-11-08 Matthias Clasen <mclasen@redhat.com>
601 * glib/goption.c (g_option_context_new): Improve the docs.
602 (#436293, Vincent Untz)
604 2007-11-08 Matthias Clasen <mclasen@redhat.com>
606 * glib/gmain.c (g_main_loop_quit): Expand the docs
607 a bit. (#317775, Søren Sandmann)
609 2007-11-08 Matthias Clasen <mclasen@redhat.com>
611 * autogen.sh: Accept automake 1.10, too
613 * mkinstalldirs: Temporarily add this script, to fix building
616 * Makefile.am: Use MKDIRS_P instead of mkinstalldirs, add
617 ChangeLog.pre-2-14 and mkinstalldirs to EXTRA_DIST.
619 2007-11-08 Matthias Clasen <mclasen@redhat.com>
621 * glib/gmarkup.h: Include gslist.h. Pointed out by Michael Natterer.
623 2007-11-08 Matthias Clasen <mclasen@redhat.com>
625 * glib/gconvert.c (g_convert_with_iconv): Try harder to reset
626 shift state with AIX iconv(). (#467537)
628 2007-11-08 Matthias Clasen <mclasen@redhat.com>
631 * m4macros/glib-2.0.m4: Require pkg-config 0.16 in configure
632 and in AM_PATH_GLIB_2_0 to be consistent with the use of
633 PKG_PROG_PKG_CONFIG which was introduced in 0.16. (#418778,
636 2007-11-08 Matthias Clasen <mclasen@redhat.com>
638 * glib/gstrfuncs.c (g_parse_long_long): Don't leave
639 out parameters uninitialized. (#490061, Benjamin Otte)
641 2007-11-07 Matthias Clasen <mclasen@redhat.com>
643 * glib/gmain.c (g_main_context_unref): Don't leak the
644 condvar. (#479724, Areg Beketovski)
646 2007-11-07 Matthias Clasen <mclasen@redhat.com>
649 * glib/gmarkup.[hc] (g_markup_parse_context_get_element_stack):
650 New function, to get the stack of open elements. (#452887,
653 2007-11-07 Matthias Clasen <mclasen@redhat.com>
655 * glib/gkeyfile.[hc]: Make some functions that take
656 a GError return boolean instead of void. (#375651, Matt Barnes)
658 2007-11-07 Matthias Clasen <mclasen@redhat.com>
660 * autogen.sh: Use automake 1.9
663 * configure.in: Move some inter-*.m4 includes from
664 configure.in to acinclude.m4 to avoid warnings when
665 using automake 1.9. (#449937)
667 2007-11-07 Matthias Clasen <mclasen@redhat.com>
669 === Branch for 2.14 ===