Test for interface properties and GParamSpecOverride.
[platform/upstream/glib.git] / ChangeLog.pre-2-12
index c6b8a6d..71cf103 100644 (file)
@@ -1,3 +1,326 @@
+Tue Oct 14 17:44:38 2003  Owen Taylor  <otaylor@redhat.com>
+
+       * tests/gobject/ifaceproperties.c: Test for interface
+       properties and GParamSpecOverride.
+
+Wed Oct  8 23:40:26 2003  Matthias Clasen  <maclas@gmx.de>
+
+       * glib/gmarkup.c (g_markup_printf_escaped): 
+       (g_markup_vprintf_escaped): Document as 2.4 additions.
+       (unescape_text): Implement newline and whitespace normalization
+       according to the XML specification.  (#123919)
+       (g_markup_escape_text): Document whitespace (non)handling.
+
+2003-10-05  Matthias Clasen  <maclas@gmx.de>
+
+       * configure.in: Make the various printf feature test macros
+       reflect the system printf, even when using the included printf.
+       In particular, don't force HAVE_C99_SNPRINTF, since g-gnulib.h 
+       needs that test result.  (#122973)
+
+       * glib/gprintf.c (g_vasprintf): Don't rely on HAVE_VASPRINTF,
+       directly check for _g_vasprintf.
+
+       * glib/gprintfint.h (_g_vasprintf): Only define _g_vasprintf()
+       if vasprintf() is available.
+
+       * glib/gnulib/printf.c (_g_gnulib_vfprintf): Don't write
+       trailing nul to the file. (#122973)
+
+       * acinclude.m4 (AC_FUNC_VSNPRINTF_C99): Make the test 
+       detect non-C99-compliance of AIX 5.1 and Solaris 
+       vsnprintf().  (#122496)
+
+Thu Oct  2 01:15:46 2003  Owen Taylor  <otaylor@redhat.com>
+
+       * tests/gobject/ifacecheck.c: Test case for
+       g_type_add_interface_check().
+
+       * tests/gobject/ifaceinit.c: Add #undef G_DISABLE_ASSERT.
+
+Thu Oct  2 01:11:39 2003  Owen Taylor  <otaylor@redhat.com>
+
+       * tests/gobject/ifaceinherit.c: Remove some tests that
+       were testing things that weren't supposed to work; add
+       a test for adding an interface first to the child class,
+       then to the parent class.
+
+Thu Oct  2 00:02:55 2003  Owen Taylor  <otaylor@redhat.com>
+
+       * tests/gobject/Makefile.am test/gobject/ifaceinherit.c:
+       Tests of interface inheritance and overriding.
+
+2003-09-30  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/gspawn-win32.c (do_spawn): Call protect_argv() in
+       do_spawn() instead of in do_spawn_with_pipes() so that we can use
+       the original argv[0] as the program file name parameter to
+       spawnv() in the shortcut (doing without helper process)
+       code. Fixes problem if GIMP 1.3 was installed in a path with
+       spaces in the name.
+
+Tue Sep 30 15:31:16 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
+
+       * glib/guniprop.c (has_more_above): make the argument const to
+       get rid of warning
+
+       * glib/garray.c (g_byte_array_remove_range): insert cast to get
+       rid of warning
+
+2003-09-29  Tor Lillqvist  <tml@iki.fi>
+
+       * tests/testglib.c (main): Use hardcoded name for DLL, as there is
+       no reliable way to determine it at compile or run time anyway. 
+
+2003-09-29  Matthias Clasen  <maclas@gmx.de>
+
+       * glib/guniprop.c (g_unichar_get_mirror_char): Add "Since: 2.4" 
+       to docs.
+
+Thu Sep 25 15:43:08 2003  Owen Taylor  <otaylor@redhat.com>
+
+       * tests/gobject/testmodule.[ch] test/gobject/Makefile.am:
+       Dummy dynamic type module for testing type plugin code
+       and dynamic types.
+
+       * test/gobject/defaultiface.c: Test of 
+       g_type_default_interface_ref() and friends.
+
+2003-09-28  Gediminas Paulauskas  <menesis@delfi.lt>
+
+    * configure.in: Added lt to ALL_LINGUAS.
+
+2003-09-25  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/glib.def: Remove g_bsearch_array_* entries that don't exist
+       any longer. (ABI change?)
+
+Thu Sep 25 15:01:37 2003  Owen Taylor  <otaylor@redhat.com>
+
+       * tests/Makefile.am (SUBDIRS): Add gobject/.
+
+Fri Sep 12 16:26:21 2003  Owen Taylor  <otaylor@redhat.com>
+
+       * tests/gobject/ configure.in: New directory, framework 
+       for automated GObject tests.
+
+       * tests/gobject/override.c: Move testoverride.c
+       here, automate.
+
+       * tests/gobject/ifaceinit.c: Move testifaceinit.c here.
+
+       * tests/gobject/accumulator.c: Test signal accumulators,
+       including g_signal_accumulator_true_handled.
+
+2003-09-12  Noah Levitt  <nlevitt@columbia.edu>
+
+       * glib/gen-unicode-tables.pl: Take a directory where to look for the
+       unicode files on the command line instead of 7 individual files.
+
+2003-09-12  Noah Levitt  <nlevitt@columbia.edu>
+
+       * glib/gen-unicode-tables.pl:
+       * glib/gunichartables.h:
+       * glib/gunicode.h:
+       * glib/guniprop.c: Add g_unichar_get_mirror_char. (#114749)
+
+Thu Sep 11 20:11:05 2003  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gmarkup.c: Add g_markup_printf_escaped(), 
+       g_markup_vprintf_escaped().
+
+       * tests/markup-escape-test.c (main): Test for
+       g_markup_escape_text(), g_markup_printf_escaped().
+
+2003-09-10  Noah Levitt  <nlevitt@columbia.edu>
+
+       * glib/gunicodeprivate.h:
+       * glib/gunicollate.c:
+       * glib/gunidecomp.c:
+       * glib/guniprop.c:
+       * tests/casemap.txt:
+       * tests/gen-casemap-txt.pl: Unicode 4.0 special casing. (#114681)
+
+       * glib/gunicodeprivate.h: Use a private header instead of extern
+       function declarations (_g_utf8_normalize_wc,
+       _g_unichar_combining_class).
+
+Mon Sep  8 00:31:10 2003  Stefan Westerfeld  <stefan@space.twc.de>
+
+        * glib/gbsearcharray.h: inserted casts for C++.
+
+2003-08-28  Matthias Clasen  <maclas@gmx.de>
+
+       * tests/patterntest.c (verbose): Fix a C99ism.  (#120821, Thomas 
+       Klausner)
+
+2003-08-25  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/giowin32.c (read_thread): Avoid UNLOCKing the critical
+       section twice, which might cause a hang. (#120653)
+
+       * glib/giowin32.c (g_io_channel_unix_new): Warn if fd is both a
+       valid file descriptor and socket.
+
+Mon Aug 25 12:34:36 2003  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gmessages.c: Escape control characters in g_logv() output.
+       (#108287, Christian Biere)
+
+Mon Aug 25 12:17:20 2003  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gmain.c (g_main_context_unref_and_unlock): 
+       When DISABLE_MEM_POOLS is set, loop through and free
+       the poll records explicitely, since g_mem_chunk_destroy()
+       won't do it. (#118121, Morten Welinder)
+2003-08-22  Samúel Jón Gunnarsson  <sammi@techattack.nu>
+
+       * is.po: Added "is" to ALL_LINGUAS.
+       
+2003-08-19  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/gmessages.c (g_logv): [Win32] Make the fatal error message
+       box easier to notice with MB_SETFOREGROUND. Also use MB_ICONERROR
+       to get a nice stop-sign icon.
+
+Tue Aug 19 09:42:06 2003  Owen Taylor  <otaylor@redhat.com>
+       * m4macros/glib-gettext.m4: Add $INTLLIBS to $LIBS
+       temporarily, not -lintl. (Problem with fix for 
+       #119171, pointed out by James Henstridge)
+Tue Aug 19 03:55:29 2003  Tim Janik  <timj@gtk.org>
+
+       * glib/gbsearcharray.h: license change, no restrictions are made
+       in the new license at all, the implmentation is simply provided
+       "as is" to allow copy-pasting the code into any third-party app.
+       naturally, the implementation is self-contained within the header
+       file to allow this.
+       default to non-shrinking behaviour, allow users to request shrinking
+       via G_BSEARCH_ARRAY_AUTO_SHRINK.
+       creation, deletion functions are now named g_bsearch_array_create()
+       and g_bsearch_array_free(). 
+       fixed const in prototypes, removed cruft.
+       (g_bsearch_array_insert): take only three arguments, do nothing if the
+       node to insert is already there.
+       (g_bsearch_array_replace): insert or replace if the node is already
+       there.
+       (g_bsearch_array_remove): remove nodes by index, the index of a node
+       can be found via g_bsearch_array_get_index().
+       removed other g_bsearch_array_remove*() variants.
+       (g_bsearch_array_lookup): minor optimizations.
+       (g_bsearch_array_lookup_sibling): return nodes on mismatches.
+
+       * glib/gbsearcharray.c: removed.
+
+2003-08-16  Tor Lillqvist  <tml@iki.fi>
+
+       Fix #117925 (Dov Grobgeld):
+
+       * glib/gutils.c (g_find_program_in_path, g_basename,
+       g_path_get_basename, g_path_is_absolute, g_path_skip_root,
+       g_path_get_dirname, g_get_any_init): On Win32, look also for
+       slashes ('/') as pathname separators.
+
+       * glib/gfileutils.c (g_file_open_tmp): Ditto. If the template
+       contains a pathname separator, include the actual one in the error
+       message, instead of always the canonical one.
+
+       (g_build_filename): Separate implementation on Win32 that looks
+       for either slash or backslash. Document Unix/Windows differences.
+
+       * tests/testglib.c
+       * tests/strfunc-test.c: Test above functionality on Win32.
+
+2003-08-15  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/gmain.c (g_poll): [Win32] Don't exceed handle array
+       bounds. Warn if there would be too many handles to wait
+       for. (WaitForMultipleObjects() has a relatively low limit of 64
+       handles. The Win32 IO channel code should be fixed not to need to
+       wait for one handle per file or socket being watched. Later.)
+
+2003-08-13  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/Makefile.am
+       * gmodule/Makefile.am
+       * gobject/Makefile.am
+       * gthread/Makefile.am: Use srcdir also in references to the .def
+       files. (#118885, Jeff Bonggren)
+
+2003-08-12  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/gconvert.c (g_locale_from_utf8): Drop the Win32-specific
+       implementation. It used WideCharToMultiByte(), which is broken as
+       it stores unconvertable characters as fallback characters
+       (question marks) in the destination string without being able to
+       tell how much of the conversion succeeded. Using g_convert() like
+       on Unix is better and simpler. (#117872)
+
+       (g_locale_to_utf8): No need for the Win32-specific implementation
+       here, either.
+
+       (have_broken_filenames): Define as TRUE on Win32.
+
+       (g_filename_to_utf8, g_filename_from_utf8): Drop Win32 ifdefs. As
+       have_broken_filenames() now is defined TRUE on Win32, works as
+       before.
+       
+2003-08-11  Matthias Clasen  <maclas@gmx.de>
+
+       * acinclude.m4: Copy newer versions of JH_CHECK_XML_CATALOG and
+       JH_PATH_XML_CATALOG from gtk-doc to enable configuring without
+       xmlcatalog in PATH.  (#119115) 
+
+2003-08-10  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/gutils.c (g_getenv): Don't use a cache of variable name to
+       value mappings on Win32, as that breaks g_setenv() and
+       g_unsetenv(). Only call ExpandEnvironmentStrings() if necessary,
+       and in that case return a quarkified string. It is still
+       questionable how necessary expanding embedded environment variable
+       references is. Possibly the whole Win32-specific g_getenv()
+       implementation could be removed. (#119520)
+
+2003-08-08  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/glib.def: Add g_once_impl.
+
+       * glib/gutils.c (g_setenv): Fix syntax error in the !HAVE_SETENV
+       case.
+
+2003-08-08  Matthias Clasen  <maclas@gmx.de>
+
+       * tests/env-test.c (main): Remove a test for getenv() behaviour
+       which isn't specified by SUS and doesn't work on Solaris.
+
+2003-08-07  Matthias Clasen  <maclas@gmx.de>
+
+       * tests/env-test.c: Add tests for '=' in names and values.
+
+       * glib/gutils.c (g_setenv, g_unsetenv): Check that the variable
+       name doesn't contain '='. Add a declaration for environ.  (#119338)
+
+       * acinclude.m4: Tighten the snprintf() test to check behaviour on
+       zero-size buffers.  (#106091) 
+
+       * tests/patterntest.c: Specify test strings in UTF-8, remove all
+       charset conversion. Replace the NOISY define by a cmdline arg
+       --noisy.   (#115757) 
+
+Thu Aug  7 15:01:09 2003  Owen Taylor  <otaylor@redhat.com>
+
+       * m4macros/glib-gettext.m4: Set $LIBS to include
+       -lintl when checking for dcgettext and 
+       _nl_msg_cat_cntr. (Tim Mooney, #119171)
+
+Thu Aug  7 14:15:44 2003  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gmain.c (g_idle_source_new): Make the default priority
+       for idle sources G_PRIORITY_DEFAULT_IDLE as anybody would
+       expect and document that. (#114461, reported by Andy Wingo)
+
 2003-08-06  Noah Levitt  <nlevitt@columbia.edu>
 
        * tests/casemap.txt:
 
 2003-07-31  Noah Levitt  <nlevitt@columbia.edu>
 
-       * tests/unicode-encoding.c: Return nonzero exit status if the test fails. (#118729)
+       * tests/unicode-encoding.c: Return nonzero exit status if the test
+       fails. (#118729) 
 
 2003-07-31  Noah Levitt  <nlevitt@columbia.edu>
 
 
 2003-07-30  Matthias Clasen  <maclas@gmx.de>
 
-       * glib/gutils.c (g_unsetenv): Use same argument name as in header, to pacify gtk-doc.
-       (g_getenv): Move docs inline, add comment about lifespan of return value.
+       * glib/gutils.c (g_unsetenv): Use same argument name as in header,
+       to pacify gtk-doc. 
+       (g_getenv): Move docs inline, add comment about lifespan of return
+       value. 
 
-       * glib-2.0.pc.in (Libs): Remove forgotten @TRIO_LIBS@.  (#118616, Noah Levitt)
+       * glib-2.0.pc.in (Libs): Remove forgotten @TRIO_LIBS@.  (#118616,
+       Noah Levitt) 
 
-       * glib/gfileutils.[hc]: Rename g_read_link() to g_file_read_link() to better match the remaining file
-       utilities in the g_file_ namespace and to better separate it from readlink(). This is hopefully no problem 
-       as the function is just 2 days old.
+       * glib/gfileutils.[hc]: Rename g_read_link() to g_file_read_link()
+       to better match the remaining file utilities in the g_file_
+       namespace and to better separate it from readlink(). This is
+       hopefully no problem as the function is just 2 days old.
 
 2003-07-29  Matthias Clasen  <maclas@gmx.de>
 
        * glib/gqsort.[hc] (g_qsort_with_data): 
        * glib/gconvert.[hc] (g_filename_to_uri, g_filename_from_uri): 
-       * glib/gfileutils.[hc] (g_mkstemp, g_file_open_tmp): Use gchar, gint, gsize instead of char, int, size_t 
-       in the interface for consistency.  (#118567)
+       * glib/gfileutils.[hc] (g_mkstemp, g_file_open_tmp): Use gchar,
+       gint, gsize instead of char, int, size_t in the interface for
+       consistency.  (#118567) 
 
        Replace trio printf() by gnulib vasnprintf():  (#101874)
        
-       * configure.in: Define HAVE_LONG_LONG_FORMAT if system printf understands %llu; rename enable_trio to 
-       enable_included_printf; add misc. tests needed for gnulib vasnprintf(); define G_GINT{16,32,64}_MODIFIER
-       in glibconfig.h.
-
-       * acinclude.m4: Misc tests needed for gnulib vasnprintf(): AC_FUNC_SNPRINTF_C99, bh_C_SIGNED, jm_AC_TYPE_LONG_LONG,
-       gt_TYPE_LONGDOUBLE, gt_TYPE_WCHAR_T, gt_TYPE_WINT_T, gt_AC_TYPE_INTMAX_T, jm_AC_HEADER_STDINT_H, 
+       * configure.in: Define HAVE_LONG_LONG_FORMAT if system printf
+       understands %llu; rename enable_trio to enable_included_printf;
+       add misc. tests needed for gnulib vasnprintf(); define
+       G_GINT{16,32,64}_MODIFIER in glibconfig.h.
+
+       * acinclude.m4: Misc tests needed for gnulib vasnprintf():
+       AC_FUNC_SNPRINTF_C99, bh_C_SIGNED, jm_AC_TYPE_LONG_LONG, 
+       gt_TYPE_LONGDOUBLE, gt_TYPE_WCHAR_T, gt_TYPE_WINT_T,
+       gt_AC_TYPE_INTMAX_T, jm_AC_HEADER_STDINT_H,  
        jm_AC_HEADER_INTTYPES_H. 
 
-       * glib/Makefile.am: Replace TRIO_SUBDIR by PRINTF_SUBDIR and trio_libtrio_la by printf_la. 
+       * glib/Makefile.am: Replace TRIO_SUBDIR by PRINTF_SUBDIR and
+       trio_libtrio_la by printf_la.  
 
-       * glib/gprintfint.h: Include gnulib/printf.h and use _g_gnulib_ functions instead of _g_trio_ functions.
+       * glib/gprintfint.h: Include gnulib/printf.h and use _g_gnulib_
+       functions instead of _g_trio_ functions. 
 
        * glib/trio/*: Removed
 
-       * glib/gnulib/*: vasnprintf() implementation from gnulib, patched to live in the _g_gnulib namespace, use
-       g_malloc instead of malloc, and support long long printing even if system printf doesn't. For more details,
-       see glib/gnulib/README.
+       * glib/gnulib/*: vasnprintf() implementation from gnulib, patched
+       to live in the _g_gnulib namespace, use g_malloc instead of
+       malloc, and support long long printing even if system printf
+       doesn't. For more details, see glib/gnulib/README.
        
        * tests/printf-test.c: Add tests for 64 bit printing.
 
 
        * configure.in: Check for setenv, unsetenv, readlink and symlink.
 
-       * tests/file-test.c (test_readlink): Test for g_read_link() (only on systems supporting
-       symbolic links).
+       * tests/file-test.c (test_readlink): Test for g_read_link() (only
+       on systems supporting symbolic links).
 
        * tests/env-test.c: New test for g_{get,set,unset}env().
 
 
 2003-07-26  Matthias Clasen  <maclas@gmx.de>
 
-       * tests/printf-test.c: New test, tests printf behaviour. This was already mentioned in Makefile.am
-       by accident.
+       * tests/printf-test.c: New test, tests printf behaviour. This was
+       already mentioned in Makefile.am by accident.
 
-       * tests/file-test.c: New test, currently contains mkstemp tests copied from testglib.c.
+       * tests/file-test.c: New test, currently contains mkstemp tests
+       copied from testglib.c. 
 
        * tests/Makefile.am (test_programs): Add file-test.
 
-       * glib/gprintf.c: Fix all g_return_val_if_fail () checks to return -1 on error to match the
-       behaviour of the stdio printf() family.
+       * glib/gprintf.c: Fix all g_return_val_if_fail () checks to return
+       -1 on error to match the behaviour of the stdio printf() family.
 
        * glib/garray.h: 
-       * glib/garray.c (g_{,byte,pointer}_remove_range): New functions to remove a range of elements
-       from an array.  (#94879, Nalin Dahyabhai)
+       * glib/garray.c (g_{,byte,pointer}_remove_range): New functions to
+       remove a range of elements from an array.  (#94879, Nalin Dahyabhai)
 
-       * glib/gmessages.c (g_logv): Remove the 1024 char limit in the common (non-recursive)
-       case.
+       * glib/gmessages.c (g_logv): Remove the 1024 char limit in the
+       common (non-recursive) case.
 
 2003-07-25  Matthias Clasen  <maclas@gmx.de>
 
        * glib/gerror.c: 
        * glib/gconvert.c: 
        * glib/gasyncqueue.c: 
-       * glib/gmem.c: Remove some explicit Docbook markup which is no longer necessary
-       since gtk-doc does the right thing.
+       * glib/gmem.c: Remove some explicit Docbook markup which is no
+       longer necessary since gtk-doc does the right thing.
 
        * glib/gutf8.c (g_utf8_get_char_validated): Work around gtk-doc stupidity.
 
@@ -201,13 +537,14 @@ Wed Jul  9 16:27:26 2003  Manish Singh  <yosh@gimp.org>
 
 2003-07-09  Matthias Clasen  <maclas@gmx.de>
 
-       Support for one-time initialization functions.  (#69668, Sebastian Wilhelmi)
+       Support for one-time initialization functions.  (#69668, Sebastian
+       Wilhelmi) 
 
-       * configure.in: Check whether double checked locking is safe, define g_once() in
-       glibconfig.h accordingly.
+       * configure.in: Check whether double checked locking is safe,
+       define g_once() in glibconfig.h accordingly.
        * glib/gthread.h: Add GOnce, GOnceStatus, G_ONCE_INIT and g_once_impl.
-       * glib/gthread.c (g_once_impl): Fallback implementation using a mutex if double checked
-       locking is unsafe.
+       * glib/gthread.c (g_once_impl): Fallback implementation using a
+       mutex if double checked locking is unsafe.
        * tests/thread-test.c: Add tests for g_once().
 
 2003-07-02  Matthias Clasen  <maclas@gmx.de>