3154 Commits

Author SHA1 Message Date
Matthias Clasen
c1db0b0082 Make it compile 2005-06-09 15:53:00 +00:00
Matthias Clasen
0a1902af9f Better error checking. (#306389, Morten Welinder)
2005-06-09  Matthias Clasen  <mclasen@redhat.com>

	* glib/gkeyfile.c (g_key_file_parse_value_as_integer): Better
	error checking. (#306389, Morten Welinder)
2005-06-09 15:47:45 +00:00
Matthias Clasen
c931e6aa16 Set errno to 0 before calling strtol. (#306388, Morten Welinder)
2005-06-09  Matthias Clasen  <mclasen@redhat.com>

	* glib/goption.c (parse_int): Set errno to 0 before calling
	strtol.  (#306388, Morten Welinder)
2005-06-09 15:37:47 +00:00
Matthias Clasen
1d28558146 Allow setstacksize to fail. (#304790, Michael Banck)
2005-06-09  Matthias Clasen  <mclasen@redhat.com>

	* gthread-posix.c (g_thread_create_posix_impl): Allow
	setstacksize to fail.  (#304790, Michael Banck)
2005-06-09 15:27:14 +00:00
Tor Lillqvist
ad71d36473 New helper function on Win32, returns the root of the drive (or possibly
2005-06-08  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.c (get_windows_directory_root): New helper function
	on Win32, returns the root of the drive (or possibly share) where
	the Windows directory is. (In the case of Terminal Server sessions
	the Windows directory is a per-user folder.)
	(g_get_any_init): Use get_windows_directory_root() as last resort
	for both temp directory and home directory. g_get_home_dir() now
	never returns NULL on Win32. Don't look at HOMEDRIVE and
	HOMEPATH. HOME, USERPROFILE, CSIDL_PROFILE and Windows directory
	drive root should be enough.
2005-06-08 19:57:15 +00:00
Ignacio Casal Quinteiro
f526d1c38c *** empty log message *** 2005-06-05 18:09:14 +00:00
Andraz Tori
f88bb05b3c Updated Slovenian translation 2005-06-03 09:18:09 +00:00
Sanlig Badral
8841c5b586 Updated Mongolian translation. 2005-05-29 23:32:36 +00:00
Kjartan Maraas
d739f176c9 Update Update
2005-05-25  Kjartan Maraas  <kmaraas@gnome.org>

	* nb.po: Update
	* no.po: Update
2005-05-25 19:37:23 +00:00
Matthias Clasen
78d7a7dae6 Don't eat Hangul when normalizing. (#301742, reported by Christian Biere,
2005-05-25  Matthias Clasen  <mclasen@redhat.com>

	* glib/gunidecomp.c (combine_hangul): Don't eat Hangul
	when normalizing.  (#301742, reported by Christian Biere,
	patch by Noah Levitt)
2005-05-25 16:05:19 +00:00
Matthias Clasen
716f81bd11 dup the new value before freeing the old, just in case. (#172142, Morten
2005-05-20  Matthias Clasen  <mclasen@redhat.com>

	* gvaluetypes.c (g_value_set_string): dup the new value
	before freeing the old, just in case.  (#172142, Morten
	Welinder)
2005-05-20 20:53:34 +00:00
Federico Mena Quintero
605d3f7ad1 Clarify the meaning of exit_status(); it's not the return code from the
2005-05-20  Federico Mena Quintero  <federico@ximian.com>

	* glib/gspawn.c (g_spawn_command_line_sync): Clarify the meaning
	of exit_status(); it's not the return code from the child, but
	rather the waitpid() status.
2005-05-20 19:24:21 +00:00
Matthias Clasen
ca1b0d5958 Some more improvements 2005-05-20 14:31:25 +00:00
Matthias Clasen
b080e775cd Update an example from 1.3 to 2.x
2005-05-20  Matthias Clasen  <mclasen@redhat.com>

	* glib/compiling.sgml: Update an example from 1.3 to 2.x
2005-05-20 14:28:41 +00:00
Matthias Clasen
208982a435 New file.
2005-05-18  Matthias Clasen  <mclasen@redhat.com>

	* gmodule-no-export-2.0-uninstalled.pc.in (prefix): New file.

	* configure.in:
	* Makefile.am (EXTRA_DIST): Add gmodule-no-export-2.0-uninstalled.pc.in
2005-05-18 04:12:32 +00:00
Matthias Clasen
f23f09e323 Fix sloppy language, pointed out by Daniel Vaillard.
2005-05-10  Matthias Clasen  <mclasen@redhat.com>

	* glib/tmpl/markup.sgml: Fix sloppy language, pointed out by
	Daniel Vaillard.
2005-05-10 13:40:07 +00:00
Pawan Chitrakar
31326619f1 Updated Nepali Translation
2005-05-08  Pawan Chitrakar  <pawan@nplinux.org>

	* ne.po: Updated Nepali Translation
2005-05-08 03:45:38 +00:00
Matthias Clasen
97cf2abcc5 Add a testcase.
2005-05-06  Matthias Clasen  <mclasen@redhat.com>

	* tests/option-test.c: Add a testcase.

	* glib/goption.c (g_option_context_parse): Treat '-'
	on its own as a non-option argument.  (#168008, Tim Musson,
	Thomas Leonard and others)
2005-05-06 20:11:43 +00:00
Matthias Clasen
b2401b8e3d Clarify some docs. (#302062, Matthew F. Barnes)
2005-04-29  Matthias Clasen  <mclasen@redhat.com>

	* glib/gtree.c: Clarify some docs. (#302062, Matthew F. Barnes)
2005-04-29 18:29:42 +00:00
Matthias Clasen
b8c7b38b00 Warn and don't crash when meeting a trailing \\. (#301373, Benjamin Otte)
2005-04-28  Matthias Clasen  <mclasen@redhat.com>

	* glib/gstrfuncs.c (g_strcompress): Warn and don't crash
	when meeting a trailing \\.  (#301373, Benjamin Otte)
2005-04-28 20:43:53 +00:00
Tor Lillqvist
794af387ce Don't call g_set_error() unless the GError pointer is non-NULL. This
2005-04-27  Tor Lillqvist  <tml@novell.com>

	* glib/gconvert.c (open_converter, g_convert_with_iconv): Don't
	call g_set_error() unless the GError pointer is non-NULL. This
	avoids infinite recursion problems in certain rare situations on
	Windows, when g_locale_from_utf8() is called from
	_glib_get_locale_dir() after the change below. It's the
	_glib_gettext() calls for the error messages that cause the
	recursion, not g_set_error() itself.

	* glib/gutils.c (_glib_get_locale_dir): No need to cache the
	result, this function is normally called only once. Return the
	path to the locale directory in system codepage, not UTF-8. The
	path is passed to bindtextdomain(), which doesn't use UTF-8 file
	names. If the full pathname with long filenames can't be converted
	to system codepage, try getting the pathname with short (8.3)
	components. (#301772)

	Don't do run-time lookup of message catalog directory on
	Cygwin. Cygwin is supposed to look and feel like Unix, and on Unix
	we use paths fixed at configure time.
2005-04-27 07:08:01 +00:00
Sven Neumann
42ad88aaab shut up CVS by adding gmodule-export-2.0.pc 2005-04-26 15:01:28 +00:00
Tor Lillqvist
4d1c22f4b3 Minor comment improvement.
2005-04-19  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.h: Minor comment improvement.
2005-04-19 08:06:05 +00:00
Iaki Larraaga
353bb2bfce Updated Basque translation.
2005-04-12  Iaki Larraaga  <dooteo@euskalgnu.org>

        * eu.po: Updated Basque translation.
2005-04-12 17:19:32 +00:00
Matthias Clasen
bf6be57380 Use G_LOG_LEVEL_DEBUG in both definitions. (#300071, Tommi Komulainen)
2005-04-10  Matthias Clasen  <mclasen@redhat.com>

	* glib/gmessages.h (g_debug): Use G_LOG_LEVEL_DEBUG in
	both definitions.  (#300071, Tommi Komulainen)
2005-04-11 00:57:02 +00:00
Matthias Clasen
8cc01c6d5f Bump version 2005-04-09 05:59:33 +00:00
Tor Lillqvist
bd1ec28ab8 Not used on Windows. (unalias_lang): Don't do anything on Windows, there
2005-04-08  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.c (read_aliases): Not used on Windows.
	(unalias_lang): Don't do anything on Windows, there is no
	/usr/share/locale/locale.alias file..
2005-04-08 06:50:12 +00:00
Tor Lillqvist
01f82530aa After investigating more closely the actual use cases of this function, I
2005-04-08  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.c (g_get_system_data_dirs): After investigating more
	closely the actual use cases of this function, I understand better
	what it needs to do on Windows. In addition to the Windows
	COMMON_APPDATA and COMMON_DOCUMENTS folders, also return the
	"share" subfolders of GLib's installation location and the
	application .exe's installation location, hoping that either
	matches what the function's caller is looking for.
2005-04-08 06:35:30 +00:00
Tor Lillqvist
d7f079f161 Use wide char API if available, and store dll name in UTF-8.
2005-04-08  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.h (G_WIN32_DLLMAIN_FOR_DLL_NAME): Use wide char API
	if available, and store dll name in UTF-8.
2005-04-08 00:09:44 +00:00
Matthias Clasen
2bfadb1c8c 2.6.4 GLIB_2_6_4 2005-04-06 15:11:50 +00:00
Matthias Clasen
c23339e2f5 Clarify docs in some places. (#172404, Morten Welinder)
2005-04-04  Matthias Clasen  <mclasen@redhat.com>

	* glib/gconvert.c: Clarify docs in some places. (#172404,
	Morten Welinder)
2005-04-05 03:57:16 +00:00
Tor Lillqvist
9ef0b32f73 Mention related bug number in an old entry. 2005-04-05 00:53:15 +00:00
Matthias Clasen
80f2723ff1 Updates 2005-04-05 00:39:29 +00:00
Pawan Chitrakar
0db2b78108 Updated Nepali Translation
2005-04-04  Pawan Chitrakar  <pawan@nplinux.org>

	* ne.po: Updated Nepali Translation
2005-04-04 04:03:13 +00:00
Matthias Clasen
1ea7fa47f9 Undef G_CAN_INLINE if G_IMPLEMENT_INLINES is defined. This was the pre-2.6
2005-04-03  Matthias Clasen  <mclasen@redhat.com>

	* glib/gutils.h: Undef G_CAN_INLINE if G_IMPLEMENT_INLINES is
	defined. This was the pre-2.6 behaviour, and without it,
	G_IMPLEMENT_INLINES cannot be used in multiple .c files
	at all.  (#165852, Dave Benson)
2005-04-04 03:40:40 +00:00
Matthias Clasen
70372a2f30 Add a note regarding waitpid(-1).
2005-04-01  Matthias Clasen  <mclasen@redhat.com>

	* glib/gmain.c (g_child_watch_source_new): Add a note regarding
	waitpid(-1).
	(g_child_watch_source_init_multi_threaded):
	(g_child_watch_source_init_single): Don't use SA_RESTART,
	since it causes problems on at least one platform. (#168352)
2005-04-01 21:41:13 +00:00
Steven Michael Murphy
b478e9cc0d Added new Language, Kinyarwanda (rw), to this package 2005-04-01 02:20:29 +00:00
Tor Lillqvist
ea8f5dcaf9 Typo. 2005-03-30 12:02:59 +00:00
Tor Lillqvist
776182692f Always claim file descriptors open to devices are readable, since we can't
2005-03-30  Tor Lillqvist  <tml@novell.com>

	* glib/giowin32.c (g_io_win32_fd_get_flags_internal): Always claim
	file descriptors open to devices are readable, since we can't
	know. fstat() doesn't give any useful information.
2005-03-30 12:02:48 +00:00
Matthias Clasen
e1b5eb1b68 Clarify the docs for g_ptr_array_free and g_ptr_array_remove_range.
2005-03-29  Matthias Clasen  <mclasen@redhat.com>

	* glib/tmpl/arrays_pointer.sgml: Clarify the docs for
	g_ptr_array_free and g_ptr_array_remove_range.  (#170148,
	#170149, Jared Lash)
2005-03-29 13:50:33 +00:00
Matthias Clasen
c391f555bd Clarify the docs for g_ptr_array_free. (#170149, Jared Lash)
2005-03-29  Matthias Clasen  <mclasen@redhat.com>

	* glib/tmpl/arrays_pointer.sgml: Clarify the docs for
	g_ptr_array_free.  (#170149, Jared Lash)
2005-03-29 13:45:14 +00:00
Tor Lillqvist
093f42f5f7 Add Win32 warnings regarding the child setup function.
2005-03-29  Tor Lillqvist  <tml@novell.com>

	* glib/tmpl/spawn.sgml: Add Win32 warnings regarding the child
	setup function.
2005-03-29 08:21:02 +00:00
Tor Lillqvist
41cab42bdf Win32 warnings for child setup function. 2005-03-29 08:18:53 +00:00
Tor Lillqvist
d2e6d6d7ac Typo. 2005-03-29 08:11:07 +00:00
Tor Lillqvist
98dc3bef42 [Win32] Use GetSystemTimeAsFileTime() instead of time() and
2005-03-29  Tor Lillqvist  <tml@novell.com>

	* glib/gmain.c (g_get_current_time): [Win32] Use
	GetSystemTimeAsFileTime() instead of time() and
	GetTickCount(). Much simpler.
2005-03-29 08:08:56 +00:00
Tor Lillqvist
d471f2c2fc Set revents unconditionally if the event fired.
2005-03-29  Tor Lillqvist  <tml@novell.com>

	* glib/gmain.c (g_poll): Set revents unconditionally if the
	event fired.
2005-03-29 07:57:34 +00:00
Tor Lillqvist
468fd8a9e8 If the event fired, assign f->revents=f->events. We can't know whether the
2005-03-29  Tor Lillqvist  <tml@novell.com>

	* glib/gmain.c (g_poll): If the event fired, assign
	f->revents=f->events. We can't know whether the upper layer using
	the event actually is readable, writeable or what, so say that all
	the conditions hold. Remove the ResetEvent() call that has been
	ifdeffed out anyway for a long time. Remove an "#ifdef 1" and
	#endif pair of lines, that code is not optional.
2005-03-29 07:44:55 +00:00
Tor Lillqvist
7152646679 Apparently AC_LIBTOOL_WIN32_DLL isn't deprecated after all, and in fact
2005-03-27  Tor Lillqvist  <tml@novell.com>

	* configure.in: Apparently AC_LIBTOOL_WIN32_DLL isn't deprecated
	after all, and in fact necessary with HEAD libtool.
2005-03-27 19:15:26 +00:00
Tor Lillqvist
55e383a1c3 [Win32] Fix corner case bug when environment variable value is exactly one
2005-03-23  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.c (g_getenv): [Win32] Fix corner case bug when
	environment variable value is exactly one character.
2005-03-23 14:55:02 +00:00
Matthias Clasen
06ba5a1e73 Avoid forcing extra newlines when using template files. (#171005)
2005-03-21  Matthias Clasen  <mclasen@redhat.com>

	* glib-mkenums.in: Avoid forcing extra newlines when using
	template files.  (#171005)
2005-03-22 03:49:58 +00:00