2003-03-19 Anders Carlsson * configure.in: Bump version to 2.3.0 2003-03-14 Sebastian Wilhelmi * glib/gthread.c: Do not define function g_thread_init_glib, if not G_THREADS_ENABLED. It's not called bu g_thread_init() then, but calls other, in that case undefined functions. 2003-03-06 Matthias Clasen * glib/gmain.c (g_main_context_find_source_by_id): (g_main_context_find_source_by_funcs_user_data): Fix FALSE/NULL confusion. (#107646, Morten Welinder) 2003-03-01 James Henstridge * autogen.sh: require automake 1.7. Add calls to libtoolize and gtkdocize. Clean up some of the error messages. * configure.in: move version declaration to the top of the file (before AC_INIT), using M4 macros. GLIB_AC_DIVERT_BEFORE_HELP() calls no longer necessary, due to use of M4 macro expansion in help messages instead. Convert AC_ARG_WITH/AC_ARG_ENABLE calls to use AC_HELP_STRING to format help strings. Use quadrigraphs to get square brackets to show correctly. Replace gtk-doc checks with a call to GTK_DOC_CHECK() macro. Use AC_CONFIG_COMMANDS([glibconfig.h], ...) to output glibconfig.h, so that "./config.status glibconfig.h" works. Add an extra AC_CONFIG_FILES call listing other files we want generated by config.status protected by an "if false" block. This way automake generates the rules needed to rebuild the files for us. Add quotes in various places. * docs/reference/*/Makefile.am: convert to use the common gtk-doc.make file. This localises the complexity to a single makefile fragment maintained with gtk-doc itself. * */Makefile.am: remove unneeded rules to build win32 files with config.status. Automake now does this for us. Replace instances of @FOO@ with $(FOO) where appropriate -- this allows automake to do a better job checking the makefile. Add some files to DISTCLEANFILES where appropriate * Makefile.am: use the DISTCHECK_CONFIGURE_FLAGS variable to ensure that --enable-gtk-doc is passed to configure during a distcheck. Remove the custom distcheck, since the standard one will now do. * gobject/Makefile.am: switch to BUILT_SOURCES, since that now works. 2003-02-26 Matthias Clasen * glib/gstrfuncs.c (g_strdup_vprintf): Use g_strndup, not g_strdup, since we know the length in advance. * glib/gunidecomp.c (g_unicode_canonical_decomposition): Use g_malloc instead of directly using malloc. 2003-02-25 Tor Lillqvist * glib/glib.def: Add a couple of missing entries, thanks to Cedric Gustin. Thread initialization function changes according to Sebastian Wilhelmi's changes below (2003-02-14). 2003-02-24 Matthias Clasen * glib/gdir.c (g_dir_read_name): Clarify documentation. 2003-02-18 Sebastian Wilhelmi * configure.in: Make glib_thread_test not unnecessarily convert between int and void*. (#106278). Let main return int. * configure.in: Add an argument to specify the default thread attribute to glib_thread_test. Disappeared somewhere between 2.0 and 2.2. 2003-02-14 Sebastian Wilhelmi Fixes for #101264 and #99372: * glib/gconvert.h, glib/gmain.c, glib/gmem.c, glib/gmessages.c, glib/grand.c: Include gthreadinit.h and rename the thread initialization functions a bit and let them start with _, so that later we can stop exporting them. * glib/gmem.c, glib/gmessages.c: Move the g_private_new() calls to new functions. They have to be called after setting g_threads_got_initialized to TRUE (see #101264). * glib/gthread.c: Include gthreadinit.h. Renamed g_mutex_init() to g_thread_init_glib(). Call the thread initialization functions (which are not allowed to call g_private_new), then set g_threads_got_initialized to TRUE, then call the other thread initialization functions (which must not call anything but g_private_new()). * glib/gthreadinit.h: New private header to cleanly declare all thread initialization functions. * gthread/gthread-impl.c: Include gthreadinit.h. In g_thread_init() just call g_thread_init_glib(), which in turn calls the other functions (see #99372). * glib/Makefile.am: Added gthreadinit.h. 2003-02-12 Sebastian Wilhelmi * configure.in: Make GLib recognize Tru64Unix thread system. (#103020) 2003-02-11 Tor Lillqvist * Makefile.am (EXTRA_DIST): Include ChangeLog.pre-2-2. * glib-zip.in: Include also the gtk-doc/html documentation in the developer package. * README.win32: Updates. 2003-02-11 Sebastian Wilhelmi * AUTHORS: Changed my e-mail address. * glib/grand.c: Removed my e-mail address. 2003-02-10 Mohammad DAMT * po/id.po: Added Indonesian translation * configure.in: Added "id" to ALL_LINGUAS 2003-02-06 Matthias Clasen * glib/gmessages.h: * glib/gmem.h: * glib/ghash.h: * glib/gasyncqueue.h: * glib/garray.h: * glib/ghook.h: * glib/gtypes.h: Fix a bunch of typos in header comments. (#102422, Morten Welinder) 2003-02-04 Tor Lillqvist * glib/giowin32.c (g_io_channel_unix_new): Fix typo: Should be SOCKET_ERROR, not SO_ERROR. Noticed by Daniel Kaufmann. Merge from stable branch: Fix for bug #104014, reported by Alex Shaduri: * glib/gspawn-win32.c (protect_argv): New function. Add double-quotes around argv elements that need it, and escape embedded double-quotes with backslash. (do_spawn_with_pipes) Call protect_argv(). * glib/gspawn-win32-helper.c (WinMain): Call protect_argv(). * glib/gspawn.c (g_spawn_async_with_pipes): Document argument vector vs. command line details on Win32. (g_spawn_command_line_sync): Improve documentation about backslashes in the command line on Windows. Thu Jan 30 16:45:13 2003 Owen Taylor * Makefile.am: Remove references to glib.spec. (#102231) * configure.in: Don't generate glib.spec. Tue Jan 28 16:08:56 2003 Owen Taylor * m4macros/glib-gettext.m4: If msgfmt isn't found, unset gt_cv_have_gettext. (#102552, Tim Mooney) Tue Jan 28 15:18:24 2003 Owen Taylor * autogen.sh (have_automake): Fix version in complaint message about automake. (#104366, Rich Burridge) 2003-01-22 Pablo Saratxaga * configure.in: Added Bengali (bn) to ALL_LINGUAS 2003-01-21 Christian Rose * configure.in: Added "mn" to ALL_LINGUAS. 2003-01-20 Pablo Saratxaga * configure.in: Added Farsi (fa), Italian (it), Latvian (lv), Macedonian (mk) to ALL_LINGUAS 2003-01-16 Daniel Yacob * configure.in: added am to ALL_LINGUAS 2003-01-12 Tor Lillqvist * glib/glib.def: Add some missing entries. Thanks to Kenichi SUTO. 2003-01-05 Tor Lillqvist * README.win32: Updates. * configure.in: Don't use -lm in TRIO_LIBS on Windows, with no libm. (Mingw has a dummy libm.a, but the .pc file should be useable by MSVC users, too.) 2003-01-25 Ron Steinke (Ancient, binary compatible fixes found sitting in my tree) * Added early checks for count == 0 and buf == NULL in g_io_channel_read() * Better error message for EFAULT in g_io_channel_error_from_errno() 2003-01-04 Tor Lillqvist * Makefile.am (BUILT_EXTRA_DIST): Don't distribute glib-zip. * {glib,gmodule,gobject,gthread}/Makefile.am: [Win32] Install also the .def files, to help users generate import libraries for other compilers. Uninstall, too. * glib-zip.in: Include .def files from above. * glib/giowin32.c (g_io_win32_fd_get_flags_internal): Don't claim broken pipes are unreadable. (Well, they are, but read() handles it, and treats it like EOF.) Thu Jan 2 16:19:15 2003 Manish Singh * configure.in: use AC_COMPILE_IFELSE instead of AC_TRY_COMPILE for tests for inline keywords. Fixes #101976. 2003-01-02 Tor Lillqvist * glib/gwin32.h: Correct the comment telling what headers have the declarations of some POSIXish functions. * glib/giowin32.c (g_io_win32_fd_get_flags_internal): Fix braino: The checks for readability/writeability were backwards. 2003-01-01 Tor Lillqvist * glib/gmessages.c (ensure_stderr_valid): New function, parallel to ensure_stdout_valid(). #defined as empty on Unix. Move the alloc_console_called static flag inside these two functions. (ensure_stdout_valid, ensure_stderr_valid): Check the C stdout and stderr streams for validity, instead of what GetStdHandle() returns. (mklevel_prefix): Do use either stderr or stdout on Windows, too. Otherwise g_warning() messages (that are just warnings, by definition) will get mixed with proper stdout output. Noticed in GIMP's gimpconfig-dump. (strdup_convert, mklevel_prefix, g_printerr): Call ensure_stderr_valid() before trying to use stderr. (g_logv): [Win32] Convert message to current codepage before display with MessageBox(). 2002-12-28 Tõivo Leedjärv * configure.in: Added et to ALL_LINGUAS.