2008-02-25 Matthias Clasen * === Released 2.15.6 === * NEWS: Updates 2008-02-25 Matthias Clasen * glib/gtestfuncs.c: Add Since: markers to docs. (#518556, Jerry Yu) 2008-02-25 Alexander Larsson * glib/glib.symbols: * glib/gurifuncs.[ch]: Rename g_uri_get_scheme to g_uri_parse_scheme. Keep g_uri_get_scheme() symbol for this unstable release to avoid breaking to many apps. 2008-02-24 Tor Lillqvist * glib/gutils.c (_glib_get_installation_directory): New internal function. * glib/gspawn-win32.c: When spawning the helper process, use an explicit full path. (#518292) * glib/gspawn-win32.c * glib/gspawn-win32-helper.c: Fix race condition when using the helper process. This seems to fix #510664. When the helper process writes the handle of the actual started user process to the parent process, it must be duplicated in the parent process with DuplicateHandle() so that it is a valid handle in that process. However, if the helper process has happened to exit before the DuplicateHandle() call, the duplication will fail. Thus we must synchronise the helper process's exit. Use another pipe for this. Take care not to inherit the writing end of this pipe to the helper process. Also, in the helper process, take care not to inherit either of the pipes used for communication with the parent process to the started user process. 2008-02-24 Tor Lillqvist * glib/gmain.c (g_poll) [Win32]: Use alertable wait functions so that I/O completion routines or user-mode Asynchronous Procedure Calls can be run. (#517484, Vlad Grecescu) 2008-02-24 Tor Lillqvist * glib/gwin32.c (g_win32_get_package_installation_directory_of_module): New function. Supersedes g_win32_get_package_installation_directory() and g_win32_get_package_installation_directory(). It makes more sense to have the function for this functionality take a HMODULE as parameter instead of DLL name. The typical use scenario has been to have a DllMain() function that retrieves the full pathname for the DLL in question, and saves just the basename of that. Then later code passes that saved dll basename to g_win32_get_package_installation_directory(), which retrieves the corresponding DLL handle, and then retrieves its full pathname. (Which DLlMain() already had.) It is less convoluted to have a DllMain() that just saves the DLL handle, and then when needed call this function to get the corresponding installation folder. (get_package_directory_from_module): Use g_win32_get_package_installation_directory_of_module(). (g_win32_get_package_installation_directory) (g_win32_get_package_installation_subdirectory): Mention these functions will be deprecated and recommend using g_win32_get_package_installation_directory_of_module() instead. * glib/gwin32.h: Declare g_win32_get_package_installation_directory_of_module(). * glib/glib.symbols: Add it. * glib/gutils.h: Mention G_WIN32_DLLMAIN_FOR_DLL_NAME() will be deprecated in the future. * glib/gutils.c: Drop use of G_WIN32_DLLMAIN_FOR_DLL_NAME(). Use a minimal DllMain() instead that just saves the DLL handle. (g_win32_get_system_data_dirs_for_module, _glib_get_locale_dir) (get_module_share_dir): Use g_win32_get_package_installation_directory_of_module(). 2008-02-23 Matthias Clasen * NEWS: Updates 2008-02-23 Matthias Clasen * glib/gkeyfile.c (g_key_file_get_string_list): Return NULL when the key is not found. (#513171, Дилян Палаузов) 2008-02-23 Matthias Clasen * tests/testglib.c: Don't test user directories for being non-null. (#517084, Yevgen Muntyan) 2008-02-22 Matthias Clasen * glib/gasyncqueue.c: * glib/gtestutils.c: Documentation fixes 2008-02-21 Tor Lillqvist * glib/gutf8.c (g_get_charset) * glib/gconvert.c (g_locale_from_utf8): Clarify character set issues on Windows. 2008-02-20 Tor Lillqvist * glib/gtestutils.c (g_test_trap_fork) [Win32]: Change the g_error() to g_message() to avoid stopping on warnings. At least now testglib runs to completion and the old tests in it get exercised even if the newfangled ones don't. (g_test_trap_assertions) [Win32]: Bypass on Windows. 2008-02-17 Marco Barisione * glib/gregex.c: (translate_compile_error), (g_regex_new): Avoid some useless casts from const gchar * to gchar *. (#516597, patch by Yevgen Muntyan) 2008-02-17 Marco Barisione * glib/gregex.c: (match_info_new), (g_match_info_next): Don't return duplicate matches when matching empty strings. (#515944) * tests/regex-test.c: Add tests. 2008-02-17 Hans Breuer * glib/gutils.c : define CSIDL_MYPICTURES if not available * gthread/gthread-win32.c : use G_STRFUNC instead of compiler specific __FUNCTION__ 2008-02-13 Tor Lillqvist * glib/gwin32.c: Doc change: Deprecate passing anything but NULL for the "package" parameter to g_win32_get_package_installation_directory() and g_win32_get_package_installation_subdirectory().