2006-04-07 Matthias Clasen * === Released 2.10.2 === * NEWS: Updates * tests/option-test.c (add_test1): Fix this test. 2006-04-07 Martyn Russell * glib/gasyncqueue.[ch]: Added private API _g_async_queue_get_mutex so that g_thread_pool_free() can use the async queue mutex. * glib/gthreadpool.c: Make sure g_thread_pool_stop_unused_threads() actually stops unused threads and global limits (like max idle time and max unused threads) can be set without creating a thread pool first. Fixed #335215 (patch from Chris Wilson). * tests/threadpool-test.c: Added two new tests, tests setting global limits before creating a thread pool. The second test makes sure unused threads are actually stopped when using the g_thread_pool_stop_unused_threads(). 2006-04-05 Matthias Clasen * glib/gnulib/vasnprintf.c (vasnprintf): Make long long printing work if snprintf is not available. (#332841, Michael McDonald) 2006-04-04 Pema Geyleg * configure.in: Added dz (Dzongkha) to ALL_LINGUAS. 2006-03-31 Tor Lillqvist * glib/gstdio.c (g_remove): Revert change below. It wasn't a good idea after all, says the original bug reporter. See bug for discussion. 2006-03-30 Tor Lillqvist * glib/gstdio.c (g_remove): [Win32] call rmdir() only if remove() fails with errno set to ENOENT, to leave errno set to EACCESS if that is the problem. (#334799, Yevgen Muntyan) 2006-03-26 Matthias Clasen * glib/goption.c (g_option_context_new): Improve the description of parameter_string in the docs. (#336085, Claudio Saavedra) 2006-03-24 Martyn Russell * glib/gthreadpool.c: Updated the documentation to explain that when the maximum threads is > 1 the sort functionality is not 100% accurate due to the ramdom nature of the scheduler choosing which threads to execute. Fixes bug #334943. * tests/threadpool-test.c: Disabled the debugging by default and fixed the sort test to set the maximum threads to 1 to guarantee the thread entry function is called in order. 2006-03-20 Vladimer Sichinava * configure.in: Added "ka" (Georgian) to ALL_LINGUAS 2006-03-20 Matthias Clasen * glib/gmem.c (profiler_log): use standard_calloc to allocate the profile_data. (#335209, Chris Wilson) * glib/gmain.c (g_main_context_unref): Avoid a deadlock. (#335207, Chris Wilson) Minor optimizations (#335216, Chris Wilson): * glib/gasyncqueue.c (g_async_queue_pop_intern_unlocked): Use g_queue_peek_tail_link instead of g_queue_peek_tail. * glib/glist.c: * glib/gslist.c: Avoid some memset calls. 2006-03-19 Matthias Clasen * MAINTAINERS: Add this, at the request of the GNOME sysadmin team. 2006-03-15 Matthias Clasen * glib/goption.c (g_option_context_parse): Only set the prgname if it hasn't been set before. (#334611, Chong Kai Xiong) 2006-03-14 Matthias Clasen * glib/gutils.c (g_parse_debug_string): Don't read past the end of the string. (#334471, Morten Welinder) * tests/testglib.c (test_g_parse_debug_string): Add testss for g_parse_debug_string. * glib/goption.c (parse_short_option): Don't create the option_name twice. (#334519, Chris Wilson) 2006-03-13 Anders Carlsson * configure.in: Revert fix for #322476, it breaks module loading since libtool on darwin makes shared modules use .so and shared libraries use .dylib. The fix breaks shared module loading everywhere in GTK+. 2006-03-02 Marcus Brinkmann Implement watches for GIOChannels for write file descriptors on Win32 (#333098). * glib/giowin32.c (GIOWin32Channel): Add a new direction field. (read_thread): Initialize direction. (write_thread): New function. (buffer_write): New function. (g_io_win32_prepare): Handle the G_IO_WIN32_FILE_DESC case for the write direction. (g_io_win32_fd_write): Call buffer_write() if there is a writer thread. (g_io_win32_fd_close): Set space_avail_event for writer threads. (g_io_win32_fd_create_watch): Create the writer thread if condition is G_IO_OUT. (g_io_channel_win32_make_pollfd): Likewise here. 2006-03-09 Matthias Clasen * Makefile.am: Add ChangeLog.pre-2.8 to EXTRA_DIST. 2006-03-08 Tor Lillqvist * glibconfig.h.win32.in: Add G_GUINT64_CONSTANT.