3192 Commits

Author SHA1 Message Date
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
Iñaki Larrañaga
353bb2bfce Updated Basque translation.
2005-04-12  Iñaki Larrañaga  <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
Tor Lillqvist
aed082e1e0 Print more detailled output from the timer tests. Don't print home
2005-03-20  Tor Lillqvist  <tml@novell.com>

	* tests/testglib.c (main): Print more detailled output from the
	timer tests. Don't print home directory twice. Test
	g_win32_error_message().

	* tests/spawn-test.c (run_tests): On Win32, run netstat instead of
	ipconfig. On Windows XP collecting output from ipconfig doesn't
	seem to work for some reason.
2005-03-20 20:06:49 +00:00
Tor Lillqvist
30a062866d glib/gmessages.c (g_log_default_handler) Move the Win32 code that asks the
2005-03-20  Tor Lillqvist  <tml@novell.com>

	* glib/gmessages.c (g_log_default_handler)
	* glib/gutils.c (g_get_prgname): Move the Win32 code that asks the
	program name from the system to g_get_prgname(). Do output the pid
	also on Win32 (useful in case there are several instances of the
	same program running).
2005-03-20 12:01:55 +00:00
Tor Lillqvist
69aae7e623 On Win32, use GetSystemTimeAsFileTime() instead of GetTickCount().
2005-03-20  Tor Lillqvist  <tml@novell.com>

	* glib/gtimer.c: On Win32, use GetSystemTimeAsFileTime() instead
	of GetTickCount(). (#159507)
2005-03-20 11:57:20 +00:00
Tor Lillqvist
24b14aa184 Close the process handle if the caller doesn't want it also in the case
2005-03-20  Tor Lillqvist  <tml@novell.com>

	* glib/gspawn-win32.c (do_spawn_with_pipes): Close the process
	handle if the caller doesn't want it also in the case without a
	helper process.
	(g_spawn_sync): Don't ask for a child pid which we don't need.
2005-03-20 11:52:51 +00:00
Gabor Kelemen
199da9b9b0 Added hu to ALL_LINGUAS.
2005-03-18  Gabor Kelemen  <kelemeng@gnome.hu>

	* configure.in: Added hu to ALL_LINGUAS.
2005-03-18 21:40:26 +00:00
Gabor Kelemen
d9e4271e4b Hungarian translation added.
2005-03-18  Gabor Kelemen  <kelemeng@gnome.hu>

	* hu.po: Hungarian translation added.
2005-03-18 21:40:19 +00:00
Matthias Clasen
141b0b5b5b Fix keyfile documentation 2005-03-17 19:26:31 +00:00
Manish Singh
809299ece0 Shut up CVS 2005-03-16 04:36:33 +00:00
Matthias Clasen
99232a3cc8 Warn if there already is a main group. (#170445, Jeff Franks)
2005-03-15  Matthias Clasen  <mclasen@redhat.com>

	* glib/goption.c (g_option_context_set_main_group): Warn
	if there already is a main group.  (#170445, Jeff Franks)
2005-03-15 13:26:02 +00:00
Matthias Clasen
c0ad28bae6 Make work again.
2005-03-14  Matthias Clasen  <mclasen@redhat.com>

	* abicheck.sh: Make work again.

	* gsourceclosure.c: Fix a typo.
2005-03-14 06:46:44 +00:00
Matthias Clasen
fc28997f23 Make PLT-reduction work with gcc4, and don't include everything in
2005-03-14  Matthias Clasen  <mclasen@redhat.com>

	Make PLT-reduction work with gcc4, and don't include
	everything in gobjectalias.h:

	* gobject.symbols: Group symbols by header and source
	file.
	* makegobjectalias.pl: Protect definitions by the same
	preprocessor symbols used to guard the headers. Move
	the alias declarations to a separate file which is
	produced when calling makegalias.pl -def
	* Makefile.am (gobjectaliasdef.c): Add a rule to
	build this file.
	* *.c: Include gobjectalias.h after the other i
        GLib headers, include gobjectaliasdef.c at the bottom.
2005-03-14 06:39:23 +00:00
Manish Singh
447f2b0917 Shut up CVS 2005-03-14 05:32:36 +00:00