platform/upstream/glib.git
20 years agoMake the default priority for idle sources G_PRIORITY_DEFAULT_IDLE as
Owen Taylor [Thu, 7 Aug 2003 18:19:23 +0000 (18:19 +0000)]
Make the default priority for idle sources G_PRIORITY_DEFAULT_IDLE as

Thu Aug  7 14:15:44 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/gmain.c (g_idle_source_new): Make the default priority
        for idle sources G_PRIORITY_DEFAULT_IDLE as anybody would
        expect and document that. (#114461, reported by Andy Wingo)

20 years agoAdd test for special case not at inital position in the string, the bug
Noah Levitt [Wed, 6 Aug 2003 20:28:33 +0000 (20:28 +0000)]
Add test for special case not at inital position in the string, the bug

2003-08-06  Noah Levitt  <nlevitt@columbia.edu>

* tests/casemap.txt:
* tests/gen-casemap-txt.pl: Add test for special case not at inital
position in the string, the bug just fixed. (#118957)

20 years agoAdd check for instance private usage within in instance_init. (Currently
Owen Taylor [Wed, 6 Aug 2003 14:33:20 +0000 (14:33 +0000)]
Add check for instance private usage within in instance_init. (Currently

Wed Aug  6 09:57:14 2003  Owen Taylor  <otaylor@redhat.com>

        * testgobject.c (test_signal_accumulator): Add check
        for instance private usage within in instance_init.
        (Currently will fail.)

20 years agoFix small mistake in last commit. (still falls in the same Changelog entry) (#118957)
Noah Levitt [Wed, 6 Aug 2003 01:25:46 +0000 (01:25 +0000)]
Fix small mistake in last commit. (still falls in the same Changelog entry) (#118957)

20 years agoGet rid of "len" parameter to output_special_case and output_marks, and
Noah Levitt [Wed, 6 Aug 2003 01:08:46 +0000 (01:08 +0000)]
Get rid of "len" parameter to output_special_case and output_marks, and

2003-08-05  Noah Levitt  <nlevitt@columbia.edu>

* glib/guniprop.c: Get rid of "len" parameter to output_special_case
and output_marks, and make them work more like g_unichar_to_utf8,
fixing a bug in the process. (#118957)

20 years agofor msvc build
Hans Breuer [Tue, 5 Aug 2003 22:21:19 +0000 (22:21 +0000)]
for msvc build

2003-08-05  Hans Breuer  <hans@breuer.org>

* glib/gnulib/makefile.msc : (new file) for msvc build

* glib/gnulib/vasnprintf.c : use glib/galloc.h

* glib/gnulib/printf.h : #include <stdio.h> for FILE*

* glib/makefile.msc.in : replace trio with gnulib

* glib/glib.def : updated externals

* glib/guniprop.c : fix for guniprop.c(582) : error C2082:
redefinition of formal parameter 'len'

20 years agoAdd note about in-place editing to g_strdelimit() doc.
Matthias Clasen [Tue, 5 Aug 2003 21:35:55 +0000 (21:35 +0000)]
Add note about in-place editing to g_strdelimit() doc.
(#118875, Thomas Vander Stichele)

20 years agoWe do handle > BMP now, so test it.
Noah Levitt [Tue, 5 Aug 2003 03:41:34 +0000 (03:41 +0000)]
We do handle > BMP now, so test it.

2003-08-04  Noah Levitt  <nlevitt@columbia.edu>

* tests/unicode-normalize.c: We do handle > BMP now, so test it.

20 years agoRetrying?
Sajith VK [Sat, 2 Aug 2003 14:54:17 +0000 (14:54 +0000)]
Retrying?

20 years agos/g_read_link/g_file_read_link/ (#118727)
Noah Levitt [Thu, 31 Jul 2003 16:56:27 +0000 (16:56 +0000)]
s/g_read_link/g_file_read_link/ (#118727)

2003-07-31  Noah Levitt  <nlevitt@columbia.edu>

* tests/file-test.c: s/g_read_link/g_file_read_link/ (#118727)

20 years agoReturn nonzero exit status if the test fails. (#118729)
Noah Levitt [Thu, 31 Jul 2003 16:51:52 +0000 (16:51 +0000)]
Return nonzero exit status if the test fails. (#118729)

2003-07-31  Noah Levitt  <nlevitt@columbia.edu>

* tests/unicode-encoding.c: Return nonzero exit status if the test fails. (#118729)

20 years agoChange instances of U+10ffff to U+10fffd, since that is the last valid
Noah Levitt [Thu, 31 Jul 2003 16:48:54 +0000 (16:48 +0000)]
Change instances of U+10ffff to U+10fffd, since that is the last valid

2003-07-31  Noah Levitt  <nlevitt@columbia.edu>

* tests/utf8.txt: Change instances of U+10ffff to U+10fffd, since that
is the last valid unicode character. Add check that U+10ffff is
NOTUNICODE. (#118730)

20 years agoUpdate Unicode data to 4.0. (#107974)
Noah Levitt [Thu, 31 Jul 2003 02:27:56 +0000 (02:27 +0000)]
Update Unicode data to 4.0. (#107974)

2003-07-30  Noah Levitt  <nlevitt@columbia.edu>

* glib/gen-unicode-tables.pl:
* glib/gunibreak.c:
* glib/gunibreak.h:
* glib/gunichartables.h:
* glib/gunicode.h:
* glib/gunicomp.h:
* glib/gunidecomp.c:
* glib/gunidecomp.h:
* glib/guniprop.c:
* tests/casefold.txt:
* tests/casemap.txt:
* tests/gen-casefold-txt.pl:
* tests/gen-casemap-txt.pl: Update Unicode data to 4.0. (#107974)

20 years agoWhen possible, manage without the helper process. (Part of the
Tor Lillqvist [Thu, 31 Jul 2003 01:25:19 +0000 (01:25 +0000)]
When possible, manage without the helper process. (Part of the

2003-07-31  Tor Lillqvist  <tml@iki.fi>

* glib/gspawn-win32.c: When possible, manage without the helper
process. (Part of the enhancements outlined in #98737.) Speeds up
GIMP 1.3's first-time-run plug-in query phase a lot.

Plug a file descriptor (and thus Win32 handle) leak: close the
read end of the child error report pipe after use.

20 years agoRevert accidental commit. (Oops.)
Noah Levitt [Wed, 30 Jul 2003 22:31:23 +0000 (22:31 +0000)]
Revert accidental commit. (Oops.)

20 years ago548d0e9ce9516c80c8f5830090bfcae3
Noah Levitt [Wed, 30 Jul 2003 22:21:33 +0000 (22:21 +0000)]
548d0e9ce9516c80c8f5830090bfcae3

20 years agoSmall doc additions.
Matthias Clasen [Wed, 30 Jul 2003 19:00:36 +0000 (19:00 +0000)]
Small doc additions.

20 years agoSmall doc fixes.
Matthias Clasen [Wed, 30 Jul 2003 18:50:26 +0000 (18:50 +0000)]
Small doc fixes.

20 years agoRemove forgotten @TRIO_LIBS@. (#118616, Noah Levitt)
Matthias Clasen [Wed, 30 Jul 2003 00:01:39 +0000 (00:01 +0000)]
Remove forgotten @TRIO_LIBS@. (#118616, Noah Levitt)

* glib-2.0.pc.in (Libs): Remove forgotten @TRIO_LIBS@.  (#118616, Noah Levitt)

20 years agoAdd paragraph about multi-threading policy.
Matthias Clasen [Tue, 29 Jul 2003 22:37:37 +0000 (22:37 +0000)]
Add paragraph about multi-threading policy.

* glib/glib-docs.sgml: Add paragraph about multi-threading policy.

20 years agoRename g_read_link() to g_file_read_link() to better match the remaining
Matthias Clasen [Tue, 29 Jul 2003 22:31:40 +0000 (22:31 +0000)]
Rename g_read_link() to g_file_read_link() to better match the remaining

* glib/gfileutils.[hc]: Rename g_read_link() to g_file_read_link() to better match the remaining file
utilities in the g_file_ namespace and to better separate it from readlink(). This is hopefully no problem
as the function is just 2 days old.

20 years agoUse gchar, gint, gsize instead of char, int, size_t in the interface for
Matthias Clasen [Tue, 29 Jul 2003 18:59:23 +0000 (18:59 +0000)]
Use gchar, gint, gsize instead of char, int, size_t in the interface for

2003-07-29  Matthias Clasen  <maclas@gmx.de>

* glib/gqsort.[hc] (g_qsort_with_data):
* glib/gconvert.[hc] (g_filename_to_uri, g_filename_from_uri):
* glib/gfileutils.[hc] (g_mkstemp, g_file_open_tmp): Use gchar, gint, gsize instead of char, int, size_t
in the interface for consistency.  (#118567)

20 years agoRemove trio printf().
Matthias Clasen [Mon, 28 Jul 2003 23:00:51 +0000 (23:00 +0000)]
Remove trio printf().

20 years agoIntegrate gnulib vasnprintf().
Matthias Clasen [Mon, 28 Jul 2003 23:00:05 +0000 (23:00 +0000)]
Integrate gnulib vasnprintf().

20 years agoAdd gnulib vasnprintf().
Matthias Clasen [Mon, 28 Jul 2003 22:58:01 +0000 (22:58 +0000)]
Add gnulib vasnprintf().

20 years agoCommit autogenerated stuff.
Matthias Clasen [Mon, 28 Jul 2003 20:20:00 +0000 (20:20 +0000)]
Commit autogenerated stuff.

20 years agoconfigure.in changes forgotten in last commit.
Matthias Clasen [Mon, 28 Jul 2003 20:14:09 +0000 (20:14 +0000)]
configure.in changes forgotten in last commit.

20 years agoNew function g_read_link(). (#72545)
Matthias Clasen [Mon, 28 Jul 2003 19:49:47 +0000 (19:49 +0000)]
New function g_read_link(). (#72545)

* glib/gfileutils.h:
* glib/gfileutils.c: New function g_read_link(). (#72545)

20 years agoAdd tests for g_{get,set,unset}env().
Matthias Clasen [Mon, 28 Jul 2003 19:30:05 +0000 (19:30 +0000)]
Add tests for g_{get,set,unset}env().

20 years agoAdd g_setenv() and g_unsetenv(). (#100763)
Matthias Clasen [Mon, 28 Jul 2003 19:24:22 +0000 (19:24 +0000)]
Add g_setenv() and g_unsetenv(). (#100763)

* glib/gutils.[ch]: Add g_setenv() and g_unsetenv().  (#100763)

21 years agotest suite additions.
Matthias Clasen [Sat, 26 Jul 2003 09:24:46 +0000 (09:24 +0000)]
test suite additions.

21 years agoNew functions to remove a range of elements from an array. (#94879, Nalin
Matthias Clasen [Sat, 26 Jul 2003 08:03:16 +0000 (08:03 +0000)]
New functions to remove a range of elements from an array. (#94879, Nalin

2003-07-26  Matthias Clasen  <maclas@gmx.de>

* glib/garray.h:
* glib/garray.c (g_{,byte,pointer}_remove_range): New functions to remove a range of elements
from an array.  (#94879, Nalin Dahyabhai)

21 years agoRemove the 1024 char limit in the common (non-recursive) case.
Matthias Clasen [Fri, 25 Jul 2003 23:17:23 +0000 (23:17 +0000)]
Remove the 1024 char limit in the common (non-recursive) case.

2003-07-26  Matthias Clasen  <maclas@gmx.de>

* glib/gmessages.c (g_logv): Remove the 1024 char limit in the common (non-recursive)
case.

21 years agoRemove some explicit Docbook markup which is no longer necessary
Matthias Clasen [Fri, 25 Jul 2003 21:32:47 +0000 (21:32 +0000)]
Remove some explicit Docbook markup which is no longer necessary
since gtk-doc does the right thing.

21 years agoWork around gtk-doc stupidity.
Matthias Clasen [Thu, 24 Jul 2003 23:07:29 +0000 (23:07 +0000)]
Work around gtk-doc stupidity.

2003-07-25  Matthias Clasen  <maclas@gmx.de>

* glib/gutf8.c (g_utf8_get_char_validated): Work around gtk-doc stupidity.

21 years agoMention the restriction on message length. (#118043, Martyn Russell)
Matthias Clasen [Wed, 23 Jul 2003 22:41:23 +0000 (22:41 +0000)]
Mention the restriction on message length. (#118043, Martyn Russell)

* glib/tmpl/messages.sgml: Mention the restriction on message length.  (#118043, Martyn Russell)

21 years agofor msvc build
Hans Breuer [Sun, 20 Jul 2003 15:55:49 +0000 (15:55 +0000)]
for msvc build

2003-07-20  Hans Breuer  <hans@breuer.org>

* glib/trio/makefile.msc : (new file) for msvc build

21 years agofor msvc build
Hans Breuer [Sun, 20 Jul 2003 15:55:09 +0000 (15:55 +0000)]
for msvc build

2003-07-20  Hans Breuer  <hans@breuer.org>

* glib/trio/makefile.msc : (new file) for msvc build

* glib/glib.def : removed some duplicated entries

* glib/gscanner.c : add same workaround for MSVC(5.0)
which does not allow to cast an uint64 to float.
Same as in gvaluetransform.c
Also move #include <io.h> behind inclusion of "glib.h"
which defines the needed G_OS_WIN32

* glib/makefile.msc.in : added gprintf.obj, trio\trio.lib
as well as shell32.lib

* tests/spawn-test.c : include <io.h> on win32

21 years agoupdated externals
Hans Breuer [Sun, 20 Jul 2003 15:53:58 +0000 (15:53 +0000)]
updated externals

2003-07-20  Hans Breuer  <hans@breuer.org>

* gobject.def : updated externals

21 years agoAdd a note about double indirection in g_ptr_array_sort[_with_data]().
Matthias Clasen [Thu, 17 Jul 2003 23:11:21 +0000 (23:11 +0000)]
Add a note about double indirection in g_ptr_array_sort[_with_data]().

2003-07-18  Matthias Clasen  <maclas@gmx.de>

* glib/tmpl/arrays_pointer.sgml: Add a note about double indirection in
g_ptr_array_sort[_with_data]().  (#113697, Owen Taylor)

21 years agoAdded "eo" to ALL_LINGUAS. Added Esperanto translation from Charles
Joel Brich [Thu, 10 Jul 2003 18:24:49 +0000 (18:24 +0000)]
Added "eo" to ALL_LINGUAS. Added Esperanto translation from Charles

2003-07-10  Joel Brich  <joel.brich@laposte.net>

* configure.in: Added "eo" to ALL_LINGUAS.
* po/eo.po: Added Esperanto translation
from Charles Voegler <cvoegler@dweasel.com>

21 years agoDoc additions.
Matthias Clasen [Thu, 10 Jul 2003 18:24:46 +0000 (18:24 +0000)]
Doc additions.

2003-07-12  Matthias Clasen  <maclas@gmx.de>

* glib/gprintf.c: Doc additions.

2003-07-12  Matthias Clasen  <maclas@gmx.de>

* glib/tmpl/string_utils.sgml: Add a paragraph about string precision, add links to it.
Remove markup which is now handled better by gtk-doc.

21 years agoAdded "eo" to ALL_LINGUAS. Added Esperanto translation from Charles
Joel Brich [Thu, 10 Jul 2003 18:24:46 +0000 (18:24 +0000)]
Added "eo" to ALL_LINGUAS. Added Esperanto translation from Charles

2003-07-10  Joel Brich  <joel.brich@laposte.net>

* configure.in: Added "eo" to ALL_LINGUAS.
* po/eo.po: Added Esperanto translation
from Charles Voegler <cvoegler@dweasel.com>

21 years agogrammar fix
Manish Singh [Thu, 10 Jul 2003 00:16:46 +0000 (00:16 +0000)]
grammar fix

21 years agocheck if context->poll_chunk is set before trying to destroy it. For
Manish Singh [Wed, 9 Jul 2003 23:31:20 +0000 (23:31 +0000)]
check if context->poll_chunk is set before trying to destroy it. For

Wed Jul  9 16:27:26 2003  Manish Singh  <yosh@gimp.org>

        * glib/gmain.c (g_main_context_unref_and_unlock): check if
        context->poll_chunk is set before trying to destroy it. For example,
        This can happen if no sources are added to a context before it is
        freed.

21 years agoDoc additions.
Matthias Clasen [Wed, 9 Jul 2003 19:32:16 +0000 (19:32 +0000)]
Doc additions.

2003-07-12  Matthias Clasen  <maclas@gmx.de>

* glib/gprintf.c: Doc additions.

2003-07-12  Matthias Clasen  <maclas@gmx.de>

* glib/tmpl/string_utils.sgml: Add a paragraph about string precision, add links to it.
Remove markup which is now handled better by gtk-doc.

21 years agoAvoid var declaration after statement.
Morten Welinder [Wed, 9 Jul 2003 19:32:16 +0000 (19:32 +0000)]
Avoid var declaration after statement.

2003-07-09  Morten Welinder  <terra@gnome.org>

* glib/gprintf.c (g_vasprintf): Avoid var declaration after
statement.

21 years agoDocument the members of GOnce.
Matthias Clasen [Wed, 9 Jul 2003 00:08:39 +0000 (00:08 +0000)]
Document the members of GOnce.

21 years agoSGML fix.
Matthias Clasen [Tue, 8 Jul 2003 23:59:13 +0000 (23:59 +0000)]
SGML fix.

21 years agoSupport for one-time initialization functions. (#69668, Sebastian
Matthias Clasen [Tue, 8 Jul 2003 23:43:48 +0000 (23:43 +0000)]
Support for one-time initialization functions. (#69668, Sebastian

2003-07-09  Matthias Clasen  <maclas@gmx.de>

Support for one-time initialization functions.  (#69668, Sebastian Wilhelmi)

* configure.in: Check whether double checked locking is safe, define g_once() in
glibconfig.h accordingly.
* glib/gthread.h: Add GOnce, GOnceStatus, G_ONCE_INIT and g_once_impl.
* glib/gthread.c (g_once_impl): Fallback implementation using a mutex if double checked
locking is unsafe.
* tests/thread-test.c: Add tests for g_once().

21 years agoDoc additions.
Matthias Clasen [Tue, 8 Jul 2003 23:43:47 +0000 (23:43 +0000)]
Doc additions.

2003-07-12  Matthias Clasen  <maclas@gmx.de>

* glib/gprintf.c: Doc additions.

2003-07-12  Matthias Clasen  <maclas@gmx.de>

* glib/tmpl/string_utils.sgml: Add a paragraph about string precision, add links to it.
Remove markup which is now handled better by gtk-doc.

21 years agoSupport for one-time initialization functions. (#69668, Sebastian
Matthias Clasen [Tue, 8 Jul 2003 23:43:47 +0000 (23:43 +0000)]
Support for one-time initialization functions. (#69668, Sebastian

2003-07-09  Matthias Clasen  <maclas@gmx.de>

Support for one-time initialization functions.  (#69668, Sebastian Wilhelmi)

* configure.in: Check whether double checked locking is safe, define g_once() in
glibconfig.h accordingly.
* glib/gthread.h: Add GOnce, GOnceStatus, G_ONCE_INIT and g_once_impl.
* glib/gthread.c (g_once_impl): Fallback implementation using a mutex if double checked
locking is unsafe.
* tests/thread-test.c: Add tests for g_once().

21 years agoOnly access node->data->instance when the node is instantiable.
Soeren Sandmann [Tue, 8 Jul 2003 20:12:05 +0000 (20:12 +0000)]
Only access node->data->instance when the node is instantiable.

Tue Jul  8 22:29:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

* gtype.c (type_class_init_Wm): Only access node->data->instance
when the node is instantiable.

21 years agoInitialize node->data->instance.private_size here rather than in
Owen Taylor [Tue, 8 Jul 2003 18:59:04 +0000 (18:59 +0000)]
Initialize node->data->instance.private_size here rather than in

Tue Jul  8 14:55:27 2003  Owen Taylor  <otaylor@redhat.com>

        * gtype.c (type_class_init_Wm): Initialize
        node->data->instance.private_size here rather than
        in type_data_make_W() since the class init for the parent
        class may have changed pnode->data->instance.private_size.
        (#116921, reported by Soeren Sandmann)

21 years agoBroken pipe...
Matthias Clasen [Tue, 1 Jul 2003 22:15:54 +0000 (22:15 +0000)]
Broken pipe...

21 years agoMove g_strfreev() docs inline.
Matthias Clasen [Tue, 1 Jul 2003 22:15:54 +0000 (22:15 +0000)]
Move g_strfreev() docs inline.

2003-07-02  Matthias Clasen  <maclas@gmx.de>

* glib/tmpl/string_utils.sgml: Move g_strfreev() docs inline.

21 years agoUse C99 style \uxxxx and \Uxxxxyyyy escapes instead for fallback instead
Abigail Brady [Wed, 25 Jun 2003 18:03:38 +0000 (18:03 +0000)]
Use C99 style \uxxxx and \Uxxxxyyyy escapes instead for fallback instead

2003-06-25  Abigail Brady  <morwen@evilmagic.org>

  * glib/gconvert.c (g_convert_with_fallback): Use C99 style \uxxxx
  and \Uxxxxyyyy escapes instead for fallback instead of perl-style
  \X{xxxx} ones, fixing bug #114284.

21 years agoPass real &optval and &optlen to getsockopt() instead of NULL. Don't
Tor Lillqvist [Wed, 25 Jun 2003 03:06:24 +0000 (03:06 +0000)]
Pass real &optval and &optlen to getsockopt() instead of NULL. Don't

2003-06-25  Tor Lillqvist  <tml@iki.fi>

* glib/giowin32.c (g_io_channel_unix_new): Pass real &optval and
&optlen to getsockopt() instead of NULL. Don't remember why I
thought that NULL could be used (as we don't actually use the
returned value for anything), the Platform SDK documentation
doesn't imply so.

21 years agoUpdated Azerbaijani translation.
Metin Amiroff [Sun, 22 Jun 2003 16:21:43 +0000 (16:21 +0000)]
Updated Azerbaijani translation.

2003-06-22  Metin Amiroff <metin@karegen.com>

* az.po: Updated Azerbaijani translation.

21 years agoMove the documentation inline and add details. (#108505) Move
Matthias Clasen [Wed, 18 Jun 2003 23:12:56 +0000 (23:12 +0000)]
Move the documentation inline and add details. (#108505) Move

2003-06-19  Matthias Clasen  <maclas@gmx.de>

* glib/gutils.c (g_path_get_basename): Move the documentation
inline and add details.  (#108505)
* glib/tmpl/misc_utils.sgml: Move g_path_get_basename() docs inline.

21 years agoAdd g_thread_init_glib to silence gtk-doc.
Matthias Clasen [Wed, 18 Jun 2003 21:47:16 +0000 (21:47 +0000)]
Add g_thread_init_glib to silence gtk-doc.

* glib/glib-sections.txt: Add g_thread_init_glib to silence gtk-doc.

21 years agoforgotten ChangeLog
Matthias Clasen [Tue, 17 Jun 2003 23:10:04 +0000 (23:10 +0000)]
forgotten ChangeLog

21 years agoNew macros to check for XML catalog contents and path, borrowed from
Matthias Clasen [Tue, 17 Jun 2003 23:08:37 +0000 (23:08 +0000)]
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.

21 years agoAdd an autogenerated index.
Matthias Clasen [Mon, 16 Jun 2003 23:01:00 +0000 (23:01 +0000)]
Add an autogenerated index.

2003-06-17  Matthias Clasen  <mc2@YAST_ASK>

* gobject/gobject-docs.sgml:
* glib/glib-docs.sgml: Add an autogenerated index.

2003-06-17  Matthias Clasen  <maclas@gmx.de>

* glib/tmpl/macros_misc.sgml: Document G_GNUC_DEPRECATED.

21 years agoTest where the DLLs actually are.
Tor Lillqvist [Sun, 15 Jun 2003 23:20:14 +0000 (23:20 +0000)]
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.

21 years agolibtool 1.5 installs DLLs in the bin subdirectory, so get them from there.
Tor Lillqvist [Wed, 11 Jun 2003 22:06:16 +0000 (22:06 +0000)]
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.

21 years agoA small addition.
Matthias Clasen [Wed, 11 Jun 2003 21:18:55 +0000 (21:18 +0000)]
A small addition.

2003-06-11  Matthias Clasen  <maclas@gmx.de>

* gobject/tmpl/objects.sgml: A small addition.

21 years agoRemove false &. Spotted by Albert Chin
Sebastian Wilhelmi [Wed, 11 Jun 2003 13:34:40 +0000 (13:34 +0000)]
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>.

21 years agoXML fix.
Owen Taylor [Sun, 8 Jun 2003 16:35:16 +0000 (16:35 +0000)]
XML fix.

Sun Jun  8 12:28:39 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/tmpl/error_reporting.sgml: XML fix.

        * glib/glib-sections.txt: Updated.

21 years agoFix indentation and spacing. Use INADDR_LOOPBACK instead of
Tor Lillqvist [Sun, 8 Jun 2003 01:38:13 +0000 (01:38 +0000)]
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().

21 years agoResolved thread deadlocks in socket ichannel code to support
Andy Lanoix [Sat, 7 Jun 2003 20:31:28 +0000 (20:31 +0000)]
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.

21 years agoCorrect the documentation for G_MINFLOAT and G_MINDOUBLE. (#114513,
Matthias Clasen [Fri, 6 Jun 2003 21:20:34 +0000 (21:20 +0000)]
Correct the documentation for G_MINFLOAT and G_MINDOUBLE. (#114513,

* glib/tmpl/limits.sgml: Correct the documentation for
G_MINFLOAT and G_MINDOUBLE.  (#114513, Christophe Fergeau)

21 years agoTest for Solaris native gettext in libc, seeing if it supports GNU catalog
Hidetoshi Tajima [Fri, 6 Jun 2003 17:31:50 +0000 (17:31 +0000)]
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).

21 years agoWhen dispatching a source that is !CAN_RECURSE, temporarily remove any
Owen Taylor [Fri, 6 Jun 2003 03:54:03 +0000 (03:54 +0000)]
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)

21 years agoUse g_vasprintf() and g_string_append_len(), thus enabling embedded nuls
Matthias Clasen [Thu, 5 Jun 2003 23:04:21 +0000 (23:04 +0000)]
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().

21 years agoAdd g_vasprintf().
Matthias Clasen [Thu, 5 Jun 2003 22:54:55 +0000 (22:54 +0000)]
Add g_vasprintf().

2003-06-06  Matthias Clasen  <maclas@gmx.de>

* glib/glib-sections.txt: Add g_vasprintf().

* glib/tmpl/string_utils.sgml: Add a hint about g_vasprintf() to
the g_strdup_printf() docs.

21 years agoSynchronize argument names with headers and docs. (g_vasprintf): An
Matthias Clasen [Thu, 5 Jun 2003 22:47:42 +0000 (22:47 +0000)]
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().

21 years agoglib/giochannel.h Remove bogus (Win32-only) declaration of
Tor Lillqvist [Thu, 5 Jun 2003 22:18:27 +0000 (22:18 +0000)]
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.

21 years agoUse the current g_file_get_contents() as example.
Matthias Clasen [Wed, 4 Jun 2003 22:49:08 +0000 (22:49 +0000)]
Use the current g_file_get_contents() as example.

21 years agoFix typo (#114375). Also, make the function static.
Noah Levitt [Wed, 4 Jun 2003 20:53:55 +0000 (20:53 +0000)]
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.

21 years agoGlobal fix of tamil translation encoding
Kwok-Koon Cheung [Wed, 4 Jun 2003 19:43:12 +0000 (19:43 +0000)]
Global fix of tamil translation encoding

21 years agofile li.po was initially added on branch glib-2-2.
Kenneth Christiansen [Wed, 4 Jun 2003 11:32:58 +0000 (11:32 +0000)]
file li.po was initially added on branch glib-2-2.

21 years agoTest for pthread_setschedparam. If not existant, disable priorities.
Sebastian Wilhelmi [Tue, 3 Jun 2003 12:35:00 +0000 (12:35 +0000)]
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)

21 years agoPatch from Jeffrey Stedfast <fejj@ximian.com> (#104825)
Owen Taylor [Mon, 2 Jun 2003 18:20:25 +0000 (18:20 +0000)]
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.

21 years agoPut the g_return_val_if_fail() in the right place.
Owen Taylor [Sun, 1 Jun 2003 13:44:47 +0000 (13:44 +0000)]
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.

21 years agoFix typo: should be G_IO_ERROR_UNKNOWN not G_ERROR_ERROR_UNKNOWN
Ray Strode [Sat, 31 May 2003 16:10:50 +0000 (16:10 +0000)]
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

21 years agoglib/gstrfuncs.c (g_ascii_strncasecmp) Use TOLOWER() macro instead of
Owen Taylor [Fri, 30 May 2003 23:28:34 +0000 (23:28 +0000)]
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)

21 years agoBackport better handling of ALL_LINGUAS from gettext.m4. (#103808, Andras
Owen Taylor [Fri, 30 May 2003 23:13:55 +0000 (23:13 +0000)]
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)

21 years agoexpand $exec_prefix as well as $prefix. (#107290, reported by Morten
Owen Taylor [Fri, 30 May 2003 22:49:13 +0000 (22:49 +0000)]
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)

21 years agoQuote $srcdir to handle $srcdir with spaces (#107850, Evan Martin)
Owen Taylor [Fri, 30 May 2003 21:25:38 +0000 (21:25 +0000)]
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)

21 years agoSilently return G_IO_CHANNEL_ERROR_FAILED for EINTR, since close() can
Owen Taylor [Fri, 30 May 2003 21:11:08 +0000 (21:11 +0000)]
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)

21 years agoDo a g_return_val_if_fail() on err == NULL to be a bit more robuts on
Owen Taylor [Fri, 30 May 2003 19:54:35 +0000 (19:54 +0000)]
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)

21 years agoOrder refs/unrefs so setting the same object back is safe. (#112861,
Owen Taylor [Fri, 30 May 2003 18:44:57 +0000 (18:44 +0000)]
Order refs/unrefs so setting the same object back is safe. (#112861,

Fri May 30 14:42:24 2003  Owen Taylor  <otaylor@redhat.com>

        * gobject.c (g_value_set_object): Order refs/unrefs
        so setting the same object back is safe. (#112861,
        Morten Welinder)

21 years ago__PRETTY_FUNCTION__ was made a non-token before gcc-3.0.0 for C++. (Fix
Owen Taylor [Wed, 28 May 2003 16:53:20 +0000 (16:53 +0000)]
__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)

21 years agoDocument that g_strdup() and g_strndup() accept NULL. (#106987, Christian
Matthias Clasen [Tue, 27 May 2003 22:25:03 +0000 (22:25 +0000)]
Document that g_strdup() and g_strndup() accept NULL. (#106987, Christian

2003-05-28  Matthias Clasen  <maclas@gmx.de>

* glib/tmpl/string_utils.sgml: Document that g_strdup() and
g_strndup() accept NULL.  (#106987, Christian Biere)

21 years agoRemain silent when sucessful.
Matthias Clasen [Tue, 27 May 2003 22:12:40 +0000 (22:12 +0000)]
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)

21 years agoUse memcpy instead of strcpy. (#106988, Christian Biere)
Matthias Clasen [Tue, 27 May 2003 21:30:08 +0000 (21:30 +0000)]
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)

21 years agoUpdated traditional Chinese translation.
Kwok-Koon Cheung [Tue, 27 May 2003 13:33:07 +0000 (13:33 +0000)]
Updated traditional Chinese translation.

* zh_TW.po: Updated traditional Chinese translation.

21 years agoFix typo in UNICODE_VALID (related to #107427).
Noah Levitt [Fri, 23 May 2003 21:18:32 +0000 (21:18 +0000)]
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).

21 years agoRemove stale comment.
Noah Levitt [Fri, 23 May 2003 20:42:35 +0000 (20:42 +0000)]
Remove stale comment.

2003-05-23  Noah Levitt  <nlevitt@columbia.edu>

* glib/guniprop.c: Remove stale comment.