Commit Graph

1341 Commits

Author SHA1 Message Date
Matthias Clasen
54f796b1b6 New macros to check for XML catalog contents and path, borrowed from
2003-06-17  Matthias Clasen  <maclas@gmx.de>

	* acinclude.m4 (JH_PATH_XML_CATALOG, JH_CHECK_XML_CATALOG): New
	macros to check for XML catalog contents and path, borrowed from
	gtk-doc.
	* configure.in: New option --enable-man to enable regeneration of
	man pages from Docbook, if the necessary tools are found.

	* gobject/Makefile.am: Add rule to regenerate man pages from
	Docbook.
	(man_MANS): Add glib-mkenums.1, glib-genmarshal.1 and gobject-query.1.
	(content_files): Add glib-mkenums.xml, glib-genmarshal.xml and
	gobject-query.xml.

	* gobject/glib-mkenums.xml:
	* gobject/glib-genmarshal.xml:
	* gobject/gobject-query.xml: New refentries.

	* gobject/glib-mkenums.1:
	* gobject/glib-genmarshal.1:
	* gobject/gobject-query.1: Man pages generated from the .xml
	sources.

	* gobject/gobject-docs.sgml: Include glib-mkenums.xml,
	glib-genmarshal.xml and gobject-query.xml.

	* glib/Makefile.am: Add rule to regenerate man pages from
	Docbook.
	(man_MANS): Add glib-gettextize.1.
	(content_files): Add glib-gettextize.xml.

	* glib/glib-gettextize.xml: New refentry.

	* glib/glib-gettextize.1: Man page generated from the .xml source.

	* glib/glib-docs.sgml: Include glib-gettextize.xml.
2003-06-17 23:08:37 +00:00
Tor Lillqvist
06781ec8ad Test where the DLLs actually are.
2003-06-15  Tor Lillqvist  <tml@iki.fi>

	* glib-zip.in (DLLDIR): Test where the DLLs actually are.

	* README.win32: Point to FSF's binary Win32 distributions of
	libiconv and gettext-runtime.
2003-06-15 23:20:14 +00:00
Tor Lillqvist
94fed3f988 libtool 1.5 installs DLLs in the bin subdirectory, so get them from there.
2003-06-11  Tor Lillqvist  <tml@iki.fi>

	* glib-zip.in (DEVZIP): libtool 1.5 installs DLLs in the bin
	subdirectory, so get them from there.

	* glib/gwin32.c (g_win32_getlocale): Use "sr@Latn" and "sr" in the
	same way as the po files for Serbian in Latin and Cyrillic script.
2003-06-11 22:06:16 +00:00
Sebastian Wilhelmi
e9c1f8f412 Remove false &. Spotted by Albert Chin
2003-06-11  Sebastian Wilhelmi  <seppi@seppi.de>

        * configure.in: Remove false &. Spotted by Albert Chin
        <gtk-devel-list@thewrittenword.com>.
2003-06-11 13:34:40 +00:00
Tor Lillqvist
51704100d0 Fix indentation and spacing. Use INADDR_LOOPBACK instead of
2003-06-08  Tor Lillqvist  <tml@iki.fi>

	* glib/giowin32.c: Fix indentation and spacing. Use
	INADDR_LOOPBACK instead of inet_addr("127.0.0.1") and
	gethostbyaddr().
2003-06-08 01:38:13 +00:00
Andy Lanoix
be76dd63f9 Resolved thread deadlocks in socket ichannel code to support
* glib/giowin32.c: Resolved thread deadlocks in socket
	ichannel code to support Add-Cancel-Add watch functionality
	on windows. Also cleaned up socket error handling to not
	segfault and do the right thing.
2003-06-07 20:31:28 +00:00
Hidetoshi Tajima
3bfb73d477 Test for Solaris native gettext in libc, seeing if it supports GNU catalog
Fri Jun  6 10:24:23 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>

	* m4macros/glib-gettext.m4: Test for Solaris native gettext
	in libc, seeing if it supports GNU catalog format (#85217).
2003-06-06 17:31:50 +00:00
Owen Taylor
4a21238fef When dispatching a source that is !CAN_RECURSE, temporarily remove any
Thu Jun  5 23:40:31 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/gmain.c: When dispatching a source that is
        !CAN_RECURSE, temporarily remove any file descriptors
        that that source has registered from the main loop, to keep
        recursive main loops from busy-waiting if input
        becomes available on one of those file descriptors.
        (#112222, Christian Krause)

        * glib/gmain.c (g_source_set_priority): Properly
        remove the source from the context's source list
        and reinsert it sorted, rather than simply setting
        source->next/prev to NULL! (#114274)
2003-06-06 03:54:03 +00:00
Matthias Clasen
cc777da9c1 Use g_vasprintf() and g_string_append_len(), thus enabling embedded nuls
2003-06-06  Matthias Clasen  <maclas@gmx.de>

	* glib/gstring.c (g_string_append_printf_internal): Use
	g_vasprintf() and g_string_append_len(), thus enabling embedded
	nuls in the result of g_string_printf().  (#92492, Owen Taylor)

	* tests/string-test.c: Add a test for embedded nuls in the
	result of g_string_printf().
2003-06-05 23:04:21 +00:00
Matthias Clasen
27b3b2c681 Synchronize argument names with headers and docs. (g_vasprintf): An
2003-06-06  Matthias Clasen  <maclas@gmx.de>

	* glib/gprintf.[ch]: Synchronize argument names with headers and docs.
	(g_vasprintf): An implementation of vasprintf(), code was lifted
	from g_strdup_vprintf().  (#112365)

	* glib/gstrfuncs.c (g_strdup_vprintf): Just use g_vasprintf().
2003-06-05 22:47:42 +00:00
Tor Lillqvist
1cf610e216 glib/giochannel.h Remove bogus (Win32-only) declaration of
2003-06-05  Tor Lillqvist  <tml@iki.fi>

	* glib/giochannel.h
	* glib/gmain.h: Remove bogus (Win32-only) declaration of
	g_main_poll_win32_msg_add(). No such function exists.

	* glib/gmain.c (g_poll) [Win32]: Use g_win32_error_message() for
	better warning messages.
2003-06-05 22:18:27 +00:00
Noah Levitt
fef203f9f7 Fix typo (#114375). Also, make the function static.
2003-06-04  Noah Levitt  <nlevitt@columbia.edu>

	* glib/gunidecomp.h (combine): Fix typo (#114375). Also, make the
	function static.
2003-06-04 20:53:55 +00:00
Sebastian Wilhelmi
70ca727d22 Test for pthread_setschedparam. If not existant, disable priorities.
2003-06-03  Sebastian Wilhelmi  <seppi@seppi.de>

	* configure.in: Test for pthread_setschedparam. If not existant,
	disable priorities. (#104718)
2003-06-03 12:35:00 +00:00
Owen Taylor
5f5ab2384c Patch from Jeffrey Stedfast <fejj@ximian.com> (#104825)
Mon Jun  2 14:18:21 2003  Owen Taylor  <otaylor@redhat.com>

        Patch from Jeffrey Stedfast <fejj@ximian.com> (#104825)

        * glib/gspawn.c (read_data): Don't read() into '&buf', while this
        is technically okay - it is clearer as just 'buf'.
        (write_all): New helper function that handles write() interrupts.
        (write_err_and_exit): Use write_all() instead of write().
        (fork_exec_with_pipes): Same here.
2003-06-02 18:20:25 +00:00
Owen Taylor
6e6bbbd4d5 Put the g_return_val_if_fail() in the right place.
Sun Jun  1 09:42:36 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/giochannel.c (g_io_error_get_from_g_error): Put
        the g_return_val_if_fail() in the right place.
2003-06-01 13:44:47 +00:00
Ray Strode
934317e809 Fix typo: should be G_IO_ERROR_UNKNOWN not G_ERROR_ERROR_UNKNOWN
Fri May 31 1:17:45 2003  Ray Strode  <halfline@hawaii.rr.com>

        * glib/giochannel.c (g_io_channel_error_from_errno):
        Fix typo: should be G_IO_ERROR_UNKNOWN not
        G_ERROR_ERROR_UNKNOWN
2003-05-31 16:10:50 +00:00
Owen Taylor
5baeb21e11 glib/gstrfuncs.c (g_ascii_strncasecmp) Use TOLOWER() macro instead of
Fri May 30 19:23:47 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/gstrfuncs.c (g_ascii_strncasecmp)
        * glib/gstrfuncs.c (g_ascii_strcasecmp): Use TOLOWER()
        macro instead of g_ascii_tolower() (#107138)
2003-05-30 23:28:34 +00:00
Owen Taylor
b3ec0170ab Backport better handling of ALL_LINGUAS from gettext.m4. (#103808, Andras
Fri May 30 19:09:25 2003  Owen Taylor  <otaylor@redhat.com>

        * m4macros/glib-gettext.m4: Backport better handling
        of ALL_LINGUAS from gettext.m4. (#103808, Andras Salamon)
2003-05-30 23:13:55 +00:00
Owen Taylor
f558a8cc11 expand $exec_prefix as well as $prefix. (#107290, reported by Morten
Fri May 30 18:46:05 2003  Owen Taylor  <otaylor@redhat.com>

        * m4macros/glib-gettext.m4: expand $exec_prefix as
        well as $prefix. (#107290, reported by Morten Welinder,
        patch from Raja Harinath)
2003-05-30 22:49:13 +00:00
Owen Taylor
8f7b2b5cc1 Quote $srcdir to handle $srcdir with spaces (#107850, Evan Martin)
Fri May 30 17:24:23 2003  Owen Taylor  <otaylor@redhat.com>

        * glib-gettextize.in: Quote $srcdir to handle $srcdir
        with spaces (#107850, Evan Martin)
2003-05-30 21:25:38 +00:00
Owen Taylor
e41ebdcfcd Silently return G_IO_CHANNEL_ERROR_FAILED for EINTR, since close() can
Fri May 30 16:48:26 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/giochannel.c (g_io_channel_error_from_errno):
        Silently return G_IO_CHANNEL_ERROR_FAILED for EINTR,
        since close() can return EINTR. (#11842, Balazs Scheidler)
2003-05-30 21:11:08 +00:00
Owen Taylor
9ff5d0eeed Do a g_return_val_if_fail() on err == NULL to be a bit more robuts on
Fri May 30 15:51:43 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/giochannel.c (g_io_error_get_from_g_error):
        Do a g_return_val_if_fail() on err == NULL to be a
        bit more robuts on buggy IO channel implementations.
        (#113396, Dan Winship)
2003-05-30 19:54:35 +00:00
Owen Taylor
614e5ed63a __PRETTY_FUNCTION__ was made a non-token before gcc-3.0.0 for C++. (Fix
Tue May 27 19:56:35 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/gmacros.h: __PRETTY_FUNCTION__ was made a non-token
        before gcc-3.0.0 for C++. (Fix from Martin Kretzschmar,
        #113797)
2003-05-28 16:53:20 +00:00
Matthias Clasen
25e8ae683e Remain silent when sucessful.
2003-05-28  Matthias Clasen  <maclas@gmx.de>

	* tests/patterntest.c: Remain silent when sucessful.

	* tests/Makefile.am: Add patterntest to make check.  (#113143,
	Zach Frey)
2003-05-27 22:12:40 +00:00
Matthias Clasen
c868c58694 Use memcpy instead of strcpy. (#106988, Christian Biere)
2003-05-27  Matthias Clasen  <maclas@gmx.de>

	* glib/gstrfuncs.c (g_strdup): Use memcpy instead of
	strcpy. (#106988, Christian Biere)
2003-05-27 21:30:08 +00:00
Noah Levitt
bc76e98174 Fix typo in UNICODE_VALID (related to #107427).
2003-05-23  Noah Levitt  <nlevitt@columbia.edu>

	* glib/gutf8.c: Fix typo in UNICODE_VALID (related to #107427).
2003-05-23 21:18:32 +00:00
Noah Levitt
da4f56d4c1 Remove stale comment.
2003-05-23  Noah Levitt  <nlevitt@columbia.edu>

	* glib/guniprop.c: Remove stale comment.
2003-05-23 20:42:35 +00:00
Noah Levitt
8648811bc0 Update g_unichar_iswide to Unicode 4.0 (#113404).
2003-05-22  Noah Levitt  <nlevitt@columbia.edu>

	* glib/guniprop.c: Update g_unichar_iswide to Unicode 4.0 (#113404).
2003-05-22 19:48:45 +00:00
Noah Levitt
cd1e44fd2b Fix obscure typo in case conversion routine (#113469).
2003-05-21  Noah Levitt  <nlevitt@columbia.edu>

	* glib/guniprop.c: Fix obscure typo in case conversion routine
	(#113469).
2003-05-21 21:58:31 +00:00
Manish Singh
7a1dcc18f1 ytpo 2003-05-20 21:18:23 +00:00
PDT 2003 Manish Singh
a4fa910471 wrap 64-bit MIN/MAX limit constants in G_GINT64_CONSTANT. Fixes bug
Tue May 20 14:14:55 PDT 2003  Manish Singh  <yosh@gimp.org>

        * configure.in: wrap 64-bit MIN/MAX limit constants in
        G_GINT64_CONSTANT. Fixes bug #108699.
2003-05-20 21:17:35 +00:00
Noah Levitt
939c31884b Fix cut-and-pasto: g_unichar_break_type should return
2003-05-19  Noah Levitt  <nlevitt@columbia.edu>

	* glib/gunibreak.c: Fix cut-and-pasto: g_unichar_break_type should
	return G_UNICODE_BREAK_UNKNOWN if the character is greater than
	G_UNICODE_LAST_CHAR.
2003-05-20 03:38:48 +00:00
Noah Levitt
6c4580c9c7 Remove unused function g_list_sort2 (bug #113203).
2003-05-19  Noah Levitt  <nlevitt@columbia.edu>

	* glib/glist.c: Remove unused function g_list_sort2 (bug #113203).
2003-05-19 17:02:32 +00:00
Noah Levitt
6bc2ee510a Fix off-by-one error in g_unicode_canonical_ordering (bug #113260).
2003-05-19  Noah Levitt  <nlevitt@columbia.edu>

	* glib/gunidecomp.c: Fix off-by-one error in
	g_unicode_canonical_ordering (bug #113260).
2003-05-19 15:54:48 +00:00
Arafat Medini
20b6300c96 *ar.po: Added Arabic translation by Arabeyes <doc@arabeyes.org>
2003-05-19 Arafat Medini <lumina@silverpen.de>

	*ar.po: Added Arabic translation by
	Arabeyes <doc@arabeyes.org>
2003-05-19 15:36:33 +00:00
Telsa Gwynne
e5e4f77027 Welsh translation from Dafydd Harries 2003-05-17 18:44:56 +00:00
Matthias Clasen
8e80b63b1a Some doc fixes. (#111805)
2003-05-05  Matthias Clasen  <maclas@gmx.de>

	* glib/gstrfuncs.c (g_ascii_dtostr):
	(g_ascii_formatd):
	(g_ascii_strtod): Some doc fixes.  (#111805)
2003-05-05 18:26:38 +00:00
Christian Rose
7feee9b513 Added sr and sr@Latn to ALL_LINGUAS. Added Serbian translation by Danilo
2003-05-05  Christian Rose  <menthos@menthos.com>

	* configure.in: Added sr and sr@Latn to ALL_LINGUAS.
	* po/sr.po, po/sr@Latn.po: Added Serbian translation by
	Danilo Šegan <dsegan@gmx.net>.
2003-05-05 13:45:22 +00:00
Owen Taylor
ca0df4044d Accept libtool-1.5. (#111483)
Thu Apr 24 19:12:05 2003  Owen Taylor  <otaylor@redhat.com>

        * autogen.sh (have_libtool): Accept libtool-1.5. (#111483)
2003-04-24 23:51:26 +00:00
Matthias Clasen
754d18b050 Move install docs into reference manual. 2003-04-09 18:49:48 +00:00
Matthias Clasen
7b0da6c54a Move cross-compilation info to reference manual. 2003-04-07 23:20:57 +00:00
Owen Taylor
5b4af3060f When waiting for the main loop to be freed up, wait on either
Mon Apr  7 13:40:28 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/gmain.c (g_main_loop_run): When waiting for
        the main loop to be freed up, wait on either
        !loop->is_running or got_ownership, not both.
        (Caused gtk_dialog_run() not to work in other
        threads, reported by Jean-Yves Lefort)
2003-04-07 17:50:53 +00:00
Matthias Clasen
048002c8f7 Warn if p == NULL && max != 0. (#110087)
2003-04-07  Matthias Clasen  <maclas@gmx.de>

	* glib/gutf8.c (g_utf8_strlen): Warn if p == NULL && max != 0.
	(#110087)
2003-04-06 22:16:59 +00:00
Tor Lillqvist
84b92bcdae Add g_string_chunk_insert_len.
2003-04-01  Tor Lillqvist  <tml@iki.fi>

	* glib/glib.def: Add g_string_chunk_insert_len.
2003-04-01 19:11:48 +00:00
Matthias Clasen
e4112b8b1b New function, to insert possible non-nul-terminated byte sequences into a
2003-04-01  Matthias Clasen  <maclas@gmx.de>

	* glib/gstring.[hc] (g_string_chunk_insert_len): New function, to
	insert possible non-nul-terminated byte sequences into a string
	chunk.  (#96279)
	(g_string_chunk_insert): Implement in terms of
	g_string_chunk_insert_len() now.
2003-03-31 22:08:08 +00:00
Matthias Clasen
6710fd6e06 Optimize the common cases (init == NULL or init == "") a bit. replace uses
2003-03-30  Matthias Clasen  <maclas@gmx.de>

	* glib/gstring.c (g_string_new): Optimize the common cases
	(init == NULL or init == "") a bit.
	* glib/gmarkup.c, glib/gmessages.c, glib/gscanner.c,
	glib/gshell.c, glib/gspawn-win32-helper.c, glib/gspawn-win32.c,
	glib/gspawn.c, gobject/gvaluetransform.c: replace uses of
	g_string_new ("") by g_string_new (NULL).  (#106973, Morten Welinder)
2003-03-30 22:02:20 +00:00
Matthias Clasen
cb0e4de11c 2003-03-a30 Matthias Clasen <maclas@gmx.de>
* glib/gutf8.c (UNICODE_VALID): Update to Unicode 3.1 and optimize
	a bit.  (#107427, Noah Lewitt)
2003-03-30 21:51:30 +00:00
Matthias Clasen
93681235dd Add cp1251 support for Solaris. (#104738, Hidetoshi Tajima)
2003-03-30  Matthias Clasen  <maclas@gmx.de>

	* glib/libcharset/config.charset: Add cp1251 support for Solaris.
	(#104738, Hidetoshi Tajima)
2003-03-30 21:29:26 +00:00
Matthias Clasen
306d5e2b6b Get rid of UNSAFE_DOS_PATH. (acceptable): Align with RFC2396. (#59653)
2003-03-30  Matthias Clasen  <maclas@gmx.de>

	* glib/gconvert.c (UnsafeCharacterSet): Get rid of
	UNSAFE_DOS_PATH.
	(acceptable): Align with RFC2396.  (#59653)

	* tests/uri-test.c: Adjust to the changes above.
2003-03-30 21:24:58 +00:00
Christian Rose
d34ab625bc Added "yi" to ALL_LINGUAS. Added Yiddish translation by Raphael Finkel
2003-03-26  Christian Rose  <menthos@menthos.com>

	* configure.in: Added "yi" to ALL_LINGUAS.
	* po/yi.po: Added Yiddish translation by
	Raphael Finkel <raphael@cs.uky.edu>.
2003-03-26 21:48:11 +00:00