3844 Commits

Author SHA1 Message Date
Matthias Clasen
8543cea8e0 broken pipe 2006-05-26 14:13:50 +00:00
Matthias Clasen
51f1754532 2.10.3 2006-05-26 14:05:35 +00:00
Priit Laes
c3ea1ea049 Translation updated by Ivar Smolin.
2006-05-18  Priit Laes  <amd@store20.com>

	* et.po: Translation updated by Ivar Smolin.
2006-05-18 15:12:22 +00:00
Tim Janik
c7ea27fe63 fixed leak in short option parsing. rewrote parts of the code to be more
Tue May  2 14:18:25 2006  Tim Janik  <timj@gtk.org>

        * glib/goption.c (g_option_context_parse): fixed leak in short
        option parsing. rewrote parts of the code to be more concise to
        enhance readability. fixed exaggerated uses of strlen.
2006-05-15 10:54:37 +00:00
Tor Lillqvist
d774634652 Implement setting/clearing G_IO_FLAG_NONBLOCK for channels attached to
2006-05-12  Tor Lillqvist  <tml@novell.com>

	* glib/giowin32.c (g_io_win32_sock_set_flags): Implement
	setting/clearing G_IO_FLAG_NONBLOCK for channels attached to
	sockets. (#341192)
	(g_io_win32_unimpl_set_flags): set_flags method for the
	unimplemented case.
2006-05-12 13:10:59 +00:00
Matthias Clasen
fc275ca5e7 Fix invalid memory reads. (#340816, Nick Treleaven)
* glib/gkeyfile.c (g_key_file_set_string_list)
	(g_key_file_set_locale_string_list): Fix invalid memory
	reads.  (#340816, Nick Treleaven)
2006-05-07 04:06:24 +00:00
Pema Geyleg
cfb384811e *** empty log message *** 2006-05-06 08:24:13 +00:00
Tor Lillqvist
23e8756295 Free with free() and not g_free() what has been allocated with calloc().
2006-05-03  Tor Lillqvist  <tml@novell.com>

	* gthread-win32.c (g_thread_exit_win32_impl): Free with free() and
	not g_free() what has been allocated with calloc(). (#340530, Jake
	Goulding)
2006-05-03 14:50:48 +00:00
Matthias Clasen
cdfd413740 Don't repeat a failed fclose() call, since that invokes undefined
2006-04-26  Matthias Clasen  <mclasen@redhat.com>

	* glib/grand.c (g_rand_new): Don't repeat a failed fclose()
	call, since that invokes undefined behaviour.  (Coverity)
2006-04-26 04:22:28 +00:00
Matthias Clasen
efc709e620 Remove redundant code. (g_key_file_get_group_comment): Don't dereference
2006-04-25  Matthias Clasen  <mclasen@redhat.com>

	* glib/gkeyfile.c (g_key_file_lookup_group_node): Remove
	redundant code.
	(g_key_file_get_group_comment): Don't dereference before
	checking for NULL.  (#338572, Coverity, Pascal Terjan)
2006-04-25 20:32:49 +00:00
Åsmund Skjæveland
9b1262ad00 Updated Norwegian Nynorsk translation.
2006-04-23  Åsmund Skjæveland  <aasmunds@fys.uio.no>

	* nn.po: Updated Norwegian Nynorsk translation.
2006-04-23 12:48:11 +00:00
Matthias Clasen
a114a49428 Add some missing 2.8 tags 2006-04-19 15:03:45 +00:00
Tor Lillqvist
6db673a70b Adapt to the changed prototype of InterlockedCompareExchange() in newer
2006-04-19  Tor Lillqvist  <tml@novell.com>

	* glib/gatomic.c: Adapt to the changed prototype of
	InterlockedCompareExchange() in newer SDKs. Use
	InterlockedCompareExchangePointer() when applicable. (#155884,
	John Ehresman)
2006-04-19 12:29:59 +00:00
Matthias Clasen
2be7079e87 Accept duplicate groups. (#157877, Sebastien Bacher)
2006-04-18  Matthias Clasen  <mclasen@redhat.com>

	* glib/gkeyfile.c (g_key_file_add_group): Accept duplicate
	groups.  (#157877, Sebastien Bacher)

	* tests/keyfile-test.c: Add tests for duplicate key and
	duplicate group handling.
2006-04-19 02:40:41 +00:00
Matthias Clasen
fd2adc3f5d Say that ref/unref are thread-safe now. (#322883, Christophe Fergeau)
2006-04-18  Matthias Clasen  <mclasen@redhat.com>

	* gobject/tut_gobject.xml: Say that ref/unref are thread-safe now.
	(#322883, Christophe Fergeau)
2006-04-18 18:38:10 +00:00
Matthias Clasen
fd2d70f6cf Make passing NULL for new_prefix work as documented. (#338845, Yevgen
2006-04-17  Matthias Clasen  <mclasen@redhat.com>

	* glib/gcompletion.c (g_completion_complete_utf8): Make passing
	NULL for new_prefix work as documented.  (#338845, Yevgen Muntyan)

	* tests/completion-test.c: Test that passing NULL for
	new_prefix in g_completion_complete_utf8 works.
2006-04-18 02:24:35 +00:00
Matthias Clasen
e379856030 fix another coverity bug 2006-04-16 05:17:26 +00:00
Martyn James Russell
88cca804f0 (test_thread_stop_unused): Removed an
assertion which can fail and is not a critical test.
2006-04-07 18:47:11 +00:00
Matthias Clasen
08c7722e6e Bump version 2006-04-07 17:39:46 +00:00
Matthias Clasen
2f298768e5 2.10.2 GLIB_2_10_2 2006-04-07 17:38:35 +00:00
Martyn James Russell
038d94ed1a Make sure g_thread_pool_stop_unused_threads() actually stops unused
* 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-07 09:25:04 +00:00
Matthias Clasen
46676f6572 Make long long printing work if snprintf is not available. (#332841,
2006-04-05  Matthias Clasen  <mclasen@redhat.com>

	* glib/gnulib/vasnprintf.c (vasnprintf): Make
	long long printing work if snprintf is not
	available.  (#332841, Michael McDonald)
2006-04-05 15:07:42 +00:00
Pema Geyleg
2feb9106d5 *** empty log message *** 2006-04-04 10:27:37 +00:00
Tor Lillqvist
8d12cdb529 Revert change below. It wasn't a good idea after all, says the original
2006-03-31  Tor Lillqvist  <tml@novell.com>

	* 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-31 19:14:21 +00:00
Tor Lillqvist
0e5127e1c8 [Win32] call rmdir() only if remove() fails with errno set to ENOENT, to
2006-03-30  Tor Lillqvist  <tml@novell.com>

	* 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-31 00:25:35 +00:00
Matthias Clasen
22eb9cddb9 Make sure to not return TRUE if symbol is NULL. (#334440, ITOH Yasufumi)
2006-03-29  Matthias Clasen  <mclasen@redhat.com>

	* gmodule.c (g_module_symbol): Make sure to
	not return TRUE if symbol is NULL.  (#334440,
	ITOH Yasufumi)
2006-03-29 20:56:11 +00:00
Yair Hershkovitz
e83eaad6b9 Updated Hebrew translation 2006-03-27 16:50:25 +00:00
Priit Laes
a01d789da2 Translation updated by Ivar Smolin.
2006-03-27  Priit Laes  <amd@store20.com>

	* et.po: Translation updated by Ivar Smolin.
2006-03-27 06:17:56 +00:00
Matthias Clasen
39119f7dd5 Documentation improvements 2006-03-26 20:12:56 +00:00
Martyn James Russell
21b05cd677 Updated the documentation to explain that when the maximum threads is > 1
* 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-24 15:22:26 +00:00
Matthias Clasen
0028b643bc Document G_HAVE_GINT64 as deprecated. (#335294, Richard Laager)
2006-03-20  Matthias Clasen  <mclasen@redhat.com>

	* glib/tmpl/types.sgml: Document G_HAVE_GINT64 as deprecated.
	(#335294, Richard Laager)
glib-2-10-branchpoint
2006-03-21 01:55:19 +00:00
Vladimer Sichinava
b78ec7a1b5 Updated Georgian translation 2006-03-20 23:21:19 +00:00
Matthias Clasen
acbbe9f88e Fix the build 2006-03-20 20:21:25 +00:00
Matthias Clasen
d0ee63840c use standard_calloc to allocate the profile_data. (#335209, Chris Wilson)
2006-03-20  Matthias Clasen  <mclasen@redhat.com>

        * 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-20 18:43:32 +00:00
Matthias Clasen
56b06e14dc Add this, at the request of the GNOME sysadmin team.
2006-03-19  Matthias Clasen  <mclasen@redhat.com>

	* MAINTAINERS: Add this, at the request of the GNOME sysadmin team.
2006-03-20 03:56:33 +00:00
Matthias Clasen
fd91e6aa5b Hint that @error should be set in error cases. (#334646, Christian Persch)
2006-03-15  Matthias Clasen  <mclasen@redhat.com>

	* glib/tmpl/option.sgml: Hint that @error should
	be set in error cases.  (#334646, Christian Persch)
2006-03-15 13:46:49 +00:00
Matthias Clasen
79a5c739a4 Only set the prgname if it hasn't been set before. (#334611, Chong Kai
2006-03-15  Matthias Clasen  <mclasen@redhat.com>

	* glib/goption.c (g_option_context_parse): Only set the prgname
	if it hasn't been set before.  (#334611, Chong Kai Xiong)
2006-03-15 13:03:48 +00:00
Matthias Clasen
9e58246669 Don't read past the end of the string. (#334471, Morten Welinder)
2006-03-14  Matthias Clasen  <mclasen@redhat.com>

	* glib/gutils.c (g_parse_debug_string): Don't read past the
	end of the string.  (#334471, Morten Welinder)
2006-03-14 17:56:27 +00:00
Matthias Clasen
99024c7ea7 Don't create the option_name twice. (#334519, Chris Wilson)
2006-03-14  Matthias Clasen  <mclasen@redhat.com>

	* glib/goption.c (parse_short_option): Don't create the
	option_name twice.  (#334519, Chris Wilson)
2006-03-14 15:34:54 +00:00
Baris Cicek
9ee7e2e777 Updated Turkish Translation 2006-03-13 22:03:53 +00:00
Anders Carlsson
8a51746479 Revert fix for #322476, it breaks module loading since libtool on darwin
2006-03-13  Anders Carlsson  <andersca@luminoth.local>

        * 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-13 08:40:54 +00:00
Mugurel Tudor
96d6540007 Updated Romanian translation by Mişu Moldovan <dumol@gnome.ro>
2006-03-13  Mugurel Tudor  <mugurelu@gnome.ro>

	* ro.po: Updated Romanian translation by
	Mişu Moldovan <dumol@gnome.ro>
2006-03-13 06:26:39 +00:00
Marcus Brinkmann
6f0ef1bae2 Implement watches for GIOChannels for write file descriptors on Win32
2006-03-02  Marcus Brinkmann  <mb@g10code.de>

	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-11 21:03:00 +00:00
Tor Lillqvist
4c27a10ad3 #define _WIN32_WINDOWS as 0x0401 to get declaration for
2006-03-11  Tor Lillqvist  <tml@novell.com>

	* gthread-win32.c: #define _WIN32_WINDOWS as 0x0401 to get
	declaration for IsDebuggerPresent() when using MSVC6. (#333879,
	Kazuki Iwamoto)
2006-03-11 20:43:42 +00:00
Amanpreet Singh Alam
9dd6eae994 update translation for Punjabi (Gurmukhi) by apbrar gmail com 2006-03-11 06:23:32 +00:00
Guilherme de S. Pastore
86f1f9a424 Updated Brazilian Portuguese translation from Leandro A. F. Pereira
* pt_BR.po: Updated Brazilian Portuguese translation from Leandro
  A. F. Pereira <leandro@linuxmag.com.br>.
2006-03-11 02:21:19 +00:00
Rajesh Ranjan
5138be06b6 Updated Translation 2006-03-10 07:51:20 +00:00
Rajesh Ranjan
6617afa5e2 Updated Translation 2006-03-10 07:42:58 +00:00
Subhransu Behera
85cdfe80da Updated Oriya Translation 2006-03-10 05:48:10 +00:00
Subhransu Behera
60a6c7f2fa Updated Oriya translation and removed fuzzy 2006-03-10 05:27:33 +00:00