platform/upstream/glib.git
23 years agoPatch from Darin Adler to restore Glib-1.2 handling of empty strings, and
Owen Taylor [Fri, 24 Aug 2001 15:27:23 +0000 (15:27 +0000)]
Patch from Darin Adler to restore Glib-1.2 handling of empty strings, and

Fri Aug 24 11:15:46 2001  Owen Taylor  <otaylor@redhat.com>

        * glib/gstrfuncs.c docs/Changes-2.0.txt: Patch from Darin
        Adler to restore Glib-1.2 handling of empty strings,
        and to fix off-by-one with @max_tokens. (#57663).
        Doc improvements.

        * tests/strfunc-test.c: Change tests to correspond to
        new behavior of g_strsplit().

23 years agoPatch from Josh Pritikin to fix reversed key and value destroy functions.
Owen Taylor [Thu, 23 Aug 2001 15:24:35 +0000 (15:24 +0000)]
Patch from Josh Pritikin to fix reversed key and value destroy functions.

Thu Aug 23 11:09:58 2001  Owen Taylor  <otaylor@redhat.com>

        * glib/ghash.c (g_hash_table_foreach_remove_or_steal):
        Patch from Josh Pritikin to fix reversed key and value destroy
        functions. (#59433)

        * glib/giochannel.h (struct _GIOChannel): Mark structure
        /*< private >*/

23 years agonew macro.
Tim Janik [Thu, 23 Aug 2001 14:13:32 +0000 (14:13 +0000)]
new macro.

Thu Aug 23 16:14:17 2001  Tim Janik  <timj@gtk.org>

        * glib/gmacros.h (G_GNUC_NO_INSTRUMENT): new macro.

23 years agoVery minor fix on content-type.
Kwok-Koon Cheung [Tue, 21 Aug 2001 05:20:09 +0000 (05:20 +0000)]
Very minor fix on content-type.

23 years agoAdded traditional Chinese translation.
Kwok-Koon Cheung [Tue, 21 Aug 2001 05:10:34 +0000 (05:10 +0000)]
Added traditional Chinese translation.

23 years agoadded po to SUBDIRS
Sven Neumann [Mon, 20 Aug 2001 19:23:43 +0000 (19:23 +0000)]
added po to SUBDIRS

2001-08-20  Sven Neumann  <sven@gimp.org>

* Makefile.am: added po to SUBDIRS

23 years agoEliminate use of floating point when determining if the hash table needs
Owen Taylor [Mon, 20 Aug 2001 01:37:50 +0000 (01:37 +0000)]
Eliminate use of floating point when determining if the hash table needs

Sun Aug 19 21:32:39 2001  Owen Taylor  <otaylor@redhat.com>

* glib/ghash.c: Eliminate use of floating point when
determining if the hash table needs to be resized,
and also factor out the test from g_hash_table_resize()
to save function calls for the common case.
(#59124)

* glib/gmain.c (g_main_context_query): Document the
        return value.

23 years agoAdded missing \ character.
Darin Adler [Sun, 19 Aug 2001 17:28:07 +0000 (17:28 +0000)]
Added missing \ character.

        * glib/gshell.c: (g_shell_quote): Added missing \ character.

        * tests/shell-test.c: (check_string_result), (test_shell_unquote),
        (main): Added tests for g_shell_quote and g_shell_unquote.

23 years agoAdded Tamil translation.
Fatih Demir [Sun, 19 Aug 2001 11:32:26 +0000 (11:32 +0000)]
Added Tamil translation.

23 years agoadd comment about shell quoting rules to the docs.
Havoc Pennington [Sun, 19 Aug 2001 05:52:40 +0000 (05:52 +0000)]
add comment about shell quoting rules to the docs.

2001-08-19  Havoc Pennington  <hp@pobox.com>

* glib/gshell.c (g_shell_unquote): add comment about shell quoting
rules to the docs.

23 years agoadd an object member to the structure. (weak_refs_notify): pass
James Henstridge [Sat, 18 Aug 2001 03:07:48 +0000 (03:07 +0000)]
add an object member to the structure. (weak_refs_notify): pass

2001-08-17  James Henstridge  <james@daa.com.au>

* gobject.c (WeakRefStack): add an object member to the structure.
(weak_refs_notify): pass wstack->object as extra argument to
notify functions.
(g_object_weak_ref): set wstack->object when initialising
WeakRefStack.

* gobject.h (GWeakNotify): add second argument to prototype which
gives the pointer to where the object that is being disposed of
was.

23 years agoModified Files: glib/ChangeLog glib/glib/giounix.c
Ron Steinke [Thu, 16 Aug 2001 23:50:13 +0000 (23:50 +0000)]
Modified Files: glib/ChangeLog glib/glib/giounix.c

Modified Files:
glib/ChangeLog glib/glib/giounix.c

        * glib/giounix.c: fixed an error in setting close_on_unref
        in g_io_channel_new_file ()

23 years agoModified Files: glib/ChangeLog glib/glib/giochannel.c glib/glib/giounix.c
Ron Steinke [Thu, 16 Aug 2001 23:02:53 +0000 (23:02 +0000)]
Modified Files: glib/ChangeLog glib/glib/giochannel.c glib/glib/giounix.c

Modified Files:
glib/ChangeLog glib/glib/giochannel.c glib/glib/giounix.c
glib/glib/giochannel.h glib/glib/glib.def
glib/docs/reference/ChangeLog
glib/docs/reference/glib/glib-sections.txt

* glib/giochannel.c glib/glib.def glib/giochannel.h: Added
new functions g_io_channel_[set,get]_close_on_unref ()

* glib/giochannel.c: glib/giochannel.h: Documentation fixes

* glib/giochannel.c: Fixed g_io_channel_write_chars ()
so that bytes_written is always set to an appropriate
value when it returns

* glib/giounix.c: changed g_io_channel_get_flags () to
set the is_readable and is_writeable flags cached
by the channel

* docs/reference/glib/glib-sections.txt: Added
declarations for g_io_channel_[set,get]_close_on_unref

23 years agoif __GNUC__ is defined, inline a test for an exact type match for
Tim Janik [Wed, 15 Aug 2001 09:19:52 +0000 (09:19 +0000)]
if __GNUC__ is defined, inline a test for an exact type match for

Wed Jul 18 19:42:31 2001  Tim Janik  <timj@gtk.org>

        * gtype.h: if __GNUC__ is defined, inline a test for an exact type
        match for instances and classes in G_TYPE_CHECK_INSTANCE_TYPE() and
        G_TYPE_CHECK_CLASS_TYPE() before calling g_type_instance_is_a().

23 years agolet the generated .pc files depend on config.status, so they get correctly
Tim Janik [Wed, 15 Aug 2001 09:11:23 +0000 (09:11 +0000)]
let the generated .pc files depend on config.status, so they get correctly

Wed Aug 15 11:09:56 2001  Tim Janik  <timj@gtk.org>

        * Makefile.am: let the generated .pc files depend on config.status,
        so they get correctly remade.

23 years agoMon Aug 14 2001 Jens Finke <jens@gnome.org> - Updated to match gpp
Jens Finke [Tue, 14 Aug 2001 21:41:16 +0000 (21:41 +0000)]
Mon Aug 14 2001 Jens Finke <jens@gnome.org> - Updated to match gpp

* Mon Aug 14 2001 Jens Finke <jens@gnome.org>
- Updated to match gpp standard:
 - removed all hardcoded paths, use rpm macros instead
 - changed Copyright to License
 - removed explicit docdir definition
 - added 'Requires' to devel package
 - added paths to 'configure' and 'make' calls
 - moved %changelog section to the end of the file
 - updated files section to match changes in glib-2.0

23 years agofix g_return_if_fail, g_assert and friends to have a body for
Tim Janik [Sun, 12 Aug 2001 19:08:13 +0000 (19:08 +0000)]
fix g_return_if_fail, g_assert and friends to have a body for

Sun Aug 12 21:05:13 2001  Tim Janik  <timj@gtk.org>

        * glib/gmessages.h: fix g_return_if_fail, g_assert and friends to
        have a body for G_DISABLE_CHECKS and G_DISABLE_ASSERT.
        fixes #58873.

23 years agoModified Files: ChangeLog glib/giochannel.c
Ron Steinke [Sun, 12 Aug 2001 15:03:36 +0000 (15:03 +0000)]
Modified Files: ChangeLog glib/giochannel.c

Modified Files:
ChangeLog glib/giochannel.c

        * glib/giochannel.c: safer handling of errno, fixed
        a bug in an assert

23 years agoFind test case for srcdir != builddir, miscellaneous cleanups.
Owen Taylor [Sun, 12 Aug 2001 14:12:02 +0000 (14:12 +0000)]
Find test case for srcdir != builddir, miscellaneous cleanups.

Sun Aug 12 10:09:00 2001  Owen Taylor  <otaylor@redhat.com>

        * tests/iochannel-test.c (main): Find test case for
        srcdir != builddir, miscellaneous cleanups.

        * tests/Makefile.am (EXTRA_DIST): Distribute casefold.txt,
        casemap.txt iochannel-test-infile.

        * glib-2.0-uninstalled.pc.in: Fix for move of glib files
        into subdir. (Pointed out by Steve Baker)

23 years agoSet GPATH to fix srcdir != builddir problems with GNU make.
Owen Taylor [Sun, 12 Aug 2001 14:04:13 +0000 (14:04 +0000)]
Set GPATH to fix srcdir != builddir problems with GNU make.

Sun Aug 12 10:03:42 2001  Owen Taylor  <otaylor@redhat.com>

* */Makefile.am: Set GPATH to fix srcdir != builddir
        problems with GNU make.

23 years agofix INT and FLOAT warnings for invalid token values.
Tim Janik [Sun, 12 Aug 2001 01:00:47 +0000 (01:00 +0000)]
fix INT and FLOAT warnings for invalid token values.

Sat Aug  4 01:04:08 2001  Tim Janik  <timj@gtk.org>

        * glib/gscanner.c (g_scanner_unexp_token): fix INT and FLOAT warnings
        for invalid token values.

23 years agodocument value arrays.
Tim Janik [Sun, 12 Aug 2001 00:56:22 +0000 (00:56 +0000)]
document value arrays.

Sun Aug 12 02:24:36 2001  Tim Janik  <timj@gtk.org>

        * gobject/tmpl/value_arrays.sgml: document value arrays.

23 years agofix preallocation logic, support DISABLE_MEM_POOLS properly, group value
Tim Janik [Sun, 12 Aug 2001 00:55:38 +0000 (00:55 +0000)]
fix preallocation logic, support DISABLE_MEM_POOLS properly, group value

Sun Aug 12 02:07:10 2001  Tim Janik  <timj@gtk.org>

        * gvaluearray.[hc]: fix preallocation logic, support DISABLE_MEM_POOLS
        properly, group value allocations.
        (g_value_array_new): fix semantic of n_prealloced argument, so it's
        really just about preallocation space.

23 years agoModified Files: glib/ChangeLog glib/glib/giochannel.c
Ron Steinke [Fri, 10 Aug 2001 14:56:37 +0000 (14:56 +0000)]
Modified Files: glib/ChangeLog glib/glib/giochannel.c

Modified Files:
glib/ChangeLog glib/glib/giochannel.c

        * glib/giochannel.c: Fixed a "sense of comparison" bug,
        added an assert to check when g_io_channels_read_chars ()
        is looping endlessly due to encoded_read_buf being corrupted.

23 years agoSeparate out log entry for gobject changes into the correct ChangeLog. Sorry.
Sven Neumann [Mon, 6 Aug 2001 21:30:58 +0000 (21:30 +0000)]
Separate out log entry for gobject changes into the correct ChangeLog. Sorry.

23 years agoadded new function g_nullify_pointer().
Sven Neumann [Mon, 6 Aug 2001 20:55:11 +0000 (20:55 +0000)]
added new function g_nullify_pointer().

2001-08-06  Sven Neumann  <sven@gimp.org>

* glib/gutils.[ch]: added new function g_nullify_pointer().

* gobject/gobject.[ch]:
added new functions g_object_[add|remove]_weak_pointer().

23 years agoModified Files: glib/ChangeLog glib/glib/giochannel.h
Ron Steinke [Sun, 5 Aug 2001 20:26:09 +0000 (20:26 +0000)]
Modified Files: glib/ChangeLog glib/glib/giochannel.h

Modified Files:
glib/ChangeLog glib/glib/giochannel.h glib/glib/giochannel.c
glib/glib/glib.def glib/docs/reference/glib/glib-sections.txt

        * glib/giochannel.c glib/giochannel.c glib/glib.def
        docs/reference/glib/glib-sections.txt: Added new functions
        g_io_channel_[read,write]_unichar ()

        * glib/giochannel.h: Finally remembered to remove the
        old error message G_IO_CHANNEL_ERROR_PCHAR_FLUSH

        * glib/giochannel.c: Some fixes to g_io_channel_fill_buffer ()
        and g_io_channel_write_chars ()

23 years agoModified Files: glib/ChangeLog glib/glib/giochannel.c glib/glib/giounix.c
Ron Steinke [Sun, 5 Aug 2001 16:48:42 +0000 (16:48 +0000)]
Modified Files: glib/ChangeLog glib/glib/giochannel.c glib/glib/giounix.c

Modified Files:
glib/ChangeLog glib/glib/giochannel.c glib/glib/giounix.c

        * glib/giochannel.c: Replaced the local use_buf variable with a macro
        in most places. This allows us to check some things without worrying
        whether we have allocated the read buffers yet, and allows us to allocate
        the buffers later in some cases.

        * glib/giochannel.c: Introduced a MAX_CHAR_SIZE macro, which is
        supposed to be greater than or equal to the length in bytes
        of the longest character in any encoding. This is necessary
        to get the minimum buffer size for successful writing.

        * glib/giochannel.c: Fixed g_io_channel_set_encoding () so
        that it just prints a warning if partial_write_buf isn't
        empty instead of failing.

        * glib/giochannel.c: Fixed several functions so they can accept
        NULL parameters for pointers to return values.

        * glib/giochannel.c: Altered the error handling for
        g_io_channel_read_chars () to only return an error if
        it doesn't have any buffered data.

        * glib/giochannel.c: Rewrote g_io_channel_write_chars ()
        to fix the error handling and remove duplicate sections
        of code.

        * glib/giounix.c: Fixed g_io_channel_new_file () to
        call fstat () to set the is_seekable flag, in case someone
        uses it on a FIFO.

23 years agoInclude stddef.h so that we use the system's definition of NULL. (#54730)
Owen Taylor [Sun, 5 Aug 2001 12:37:37 +0000 (12:37 +0000)]
Include stddef.h so that we use the system's definition of NULL. (#54730)

Sun Aug  5 08:25:30 2001  Owen Taylor  <otaylor@redhat.com>

* glib/gmacros.h: Include stddef.h so that we use
the system's definition of NULL. (#54730)

23 years agoHacky script to fix up your .msc.in files on windows. Dunno if this is a
Alexander Larsson [Sat, 4 Aug 2001 15:49:55 +0000 (15:49 +0000)]
Hacky script to fix up your .msc.in files on windows. Dunno if this is a

2001-08-04  Alexander Larsson   <alexl@redhat.com>

* win32-fixup.pl:
Hacky script to fix up your .msc.in files on windows.
Dunno if this is a good solution yet.

* build/win32/module.defs:
Back down libiconv version to 1.3, since that is what tor distributes.

* glib/glib.def:
Update

* gobject/makefile.msc.in:
build gobject-query.exe and gmarshal.strings, add libiconv dependency to linklines.

* gobject/marshal-genstrings.pl:
New file. perl script to generate gmarshal.strings.

23 years agoModified Files: glib/ChangeLog glib/glib/giochannel.c
Ron Steinke [Fri, 3 Aug 2001 20:42:06 +0000 (20:42 +0000)]
Modified Files: glib/ChangeLog glib/glib/giochannel.c

Modified Files:
glib/ChangeLog glib/glib/giochannel.c
glib/tests/iochannel-test.c

        * glib/giochannel.c: Fixed g_io_channel_seek_position()
        so that G_SEEK_CUR can be used with UTF-8 encoding

        * glib/giochannel.c: Changed test to decide whether
        use_buf is encoded_read_buf or read_buf from
        "if (channel->do_encode)" to "if (channel->encoding)" to
        fix bug 58472

        * tests/iochannel-test.c: Fixed so it doesn't output
        double newlines

        * glib/giochannel.c: Fixed g_io_channel_fill_buffer()
        so that encoded_read_buf is created for UTF-8 encoding

23 years agoRe-checkin.
Darin Adler [Fri, 3 Aug 2001 19:27:35 +0000 (19:27 +0000)]
Re-checkin.

23 years agoImprove strfunc test to test the split function in a way that demonstrates
Darin Adler [Fri, 3 Aug 2001 19:25:53 +0000 (19:25 +0000)]
Improve strfunc test to test the split function in a way that demonstrates

* tests/.cvsignore:
* tests/strfunc-test.c: (strv_check), (main):
Improve strfunc test to test the split function in a way that
demonstrates its idiosyncrasies.

23 years agobeautified configure help output.
Sven Neumann [Fri, 3 Aug 2001 16:00:23 +0000 (16:00 +0000)]
beautified configure help output.

2001-08-03  Sven Neumann  <sven@gimp.org>

* configure.in: beautified configure help output.

* glib/gtree.c: changed help for g_tree_insert(); it was misleading.

23 years agoFix computation (Fix from Cesar Rincon)
Owen Taylor [Fri, 3 Aug 2001 14:22:21 +0000 (14:22 +0000)]
Fix computation (Fix from Cesar Rincon)

Fri Aug  3 10:20:10 2001  Owen Taylor  <otaylor@redhat.com>

* glib/guniprop.c (g_unichar_xdigit_value): Fix computation
(Fix from Cesar Rincon)

23 years agoMade g_utf8_find_prev_char able to return the first character of a string.
Christopher James Lahey [Fri, 3 Aug 2001 05:52:28 +0000 (05:52 +0000)]
Made g_utf8_find_prev_char able to return the first character of a string.

2001-08-01  Christopher James Lahey  <clahey@ximian.com>

* glib/gutf8.c (g_utf8_find_prev_char): Made g_utf8_find_prev_char
able to return the first character of a string.

23 years agoadded convenience macro g_signal_connect_after().
Sven Neumann [Wed, 1 Aug 2001 12:14:12 +0000 (12:14 +0000)]
added convenience macro g_signal_connect_after().

2001-08-01  Sven Neumann  <sven@gimp.org>

        * gsignal.h: added convenience macro g_signal_connect_after().

23 years agoModified Files: glib/ChangeLog glib/glib/giochannel.h
Ron Steinke [Tue, 31 Jul 2001 23:12:22 +0000 (23:12 +0000)]
Modified Files: glib/ChangeLog glib/glib/giochannel.h

Modified Files:
  glib/ChangeLog glib/glib/giochannel.h

        * glib/giochannel.h: Committed this file, which is where
        the changes in my previous changelog entry happened,
        not giochannel.c

23 years agodeclare gboolean vtable_set static.
Sven Neumann [Tue, 31 Jul 2001 08:01:04 +0000 (08:01 +0000)]
declare gboolean vtable_set static.

2001-07-31  Sven Neumann  <sven@gimp.org>

* glib/gmem.c: declare gboolean vtable_set static.

23 years agoModified Files: glib/docs/reference/glib/glib-sections.txt
Ron Steinke [Mon, 30 Jul 2001 22:54:08 +0000 (22:54 +0000)]
Modified Files: glib/docs/reference/glib/glib-sections.txt

Modified Files:
  glib/docs/reference/glib/glib-sections.txt
  glib/tests/iochannel-test.c glib/ChangeLog

        * glib/giochannel.c docs/reference/glib/glib-sections.txt
        tests/iochannel-test.c: removed G_IO_CHANNEL_*_LINE_TERM macros

        * glib/giochannel.c put /*<public>*/ and /*<private>*/ tags in
        the GIOChannel structure

23 years ago#undef inline before testing whether it works to avoid false positives.
Sebastian Wilhelmi [Mon, 30 Jul 2001 09:02:37 +0000 (09:02 +0000)]
#undef inline before testing whether it works to avoid false positives.

2001-07-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: #undef inline before testing whether it works to
avoid false positives. Patch from Garry R. Osgood
<grosgood@rcn.com>. Fixes bug #58272.

23 years agobuild the library name ourselfs ... so we can load the library specified
Sebastian Wilhelmi [Mon, 30 Jul 2001 08:52:20 +0000 (08:52 +0000)]
build the library name ourselfs ... so we can load the library specified

2001-07-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gmodule/gmodule.c (parse_libtool_archive): build the library
name ourselfs ... so we can load the library specified and not
mangle any name not beggining in 'lib'. Patch from Michael Meeks
<michael@ximian.com>.

23 years agoMatthias Classen's patch to give g_io_channel_flush() the correct sense
Ron Steinke [Sun, 29 Jul 2001 17:43:20 +0000 (17:43 +0000)]
Matthias Classen's patch to give g_io_channel_flush() the correct sense

        * glib/giochannel.c: Matthias Classen's patch to give
        g_io_channel_flush() the correct sense when testing
        whether the buffer is empty
        * glib/giounix.c: Matthias Classen's patch to set
        the mode of a file created with g_io_channel_new_file()

23 years agoif __GNUC__ is defined, inline a test for an exact type match for
Tim Janik [Sun, 29 Jul 2001 16:02:45 +0000 (16:02 +0000)]
if __GNUC__ is defined, inline a test for an exact type match for

Wed Jul 18 19:42:31 2001  Tim Janik  <timj@gtk.org>

        * gtype.h: if __GNUC__ is defined, inline a test for an exact type
        match for instances and classes in G_TYPE_CHECK_INSTANCE_TYPE() and
        G_TYPE_CHECK_CLASS_TYPE() before calling g_type_instance_is_a().

Sun Jul 29 16:08:17 2001  Tim Janik  <timj@gtk.org>

        * glib/gscanner.[hc]: removed deprecated g_scanner_stat_mode().

        * glib/gscanner.c (g_scanner_msg_handler): by default, print scanner
        errors and warnings to stderr.

23 years agoUpdate for de.po.
Christian Meyer [Sun, 29 Jul 2001 05:43:04 +0000 (05:43 +0000)]
Update for de.po.

23 years agoupdated externals
Hans Breuer [Sat, 28 Jul 2001 22:55:38 +0000 (22:55 +0000)]
updated externals

2001-07-29  Hans Breuer  <hans@breuer.org>

* gobject.def : updated externals

23 years agoUse G_GNUC_EXTENSION instead of __extension__. Patch from Pavel Roskin
Sebastian Wilhelmi [Fri, 27 Jul 2001 10:46:13 +0000 (10:46 +0000)]
Use G_GNUC_EXTENSION instead of __extension__. Patch from Pavel Roskin

2001-07-27  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib/gtypes.h: Use G_GNUC_EXTENSION instead of
__extension__. Patch from Pavel Roskin <proski@gnu.org>.

23 years agoUpdate location of pkgconfig from sourceforge.net to new location at
Darin Adler [Thu, 26 Jul 2001 20:11:42 +0000 (20:11 +0000)]
Update location of pkgconfig from sourceforge.net to new location at

* configure.in:
* m4macros/glib-2.0.m4:
Update location of pkgconfig from sourceforge.net to new
location at freedeskop.org.

23 years agoadded a "release_check" to the OutArgument structure, which, if present,
Michael Natterer [Thu, 26 Jul 2001 10:36:01 +0000 (10:36 +0000)]
added a "release_check" to the OutArgument structure, which, if present,

2001-07-26  Michael Natterer  <mitch@convergence.de>

* gobject/glib-genmarshal.c: added a "release_check" to the
OutArgument structure, which, if present, gets integrated in the
marshaller code and protects us from stuff like
g_object_unref(NULL) on marshaller return values.

23 years agofix unconditional check of first GParamSpec in
Padraig O'Briain [Mon, 23 Jul 2001 17:08:24 +0000 (17:08 +0000)]
fix unconditional check of first GParamSpec in

* gobject/gobjectnotifyqueue.c: fix unconditional check of
first GParamSpec in g_object_notify_queue_thaw(); prevent
property notification being lost

23 years agofixed g_io_channel_seek_position() so that G_SEEK_CUR works for UTF-8
Ron Steinke [Mon, 23 Jul 2001 16:49:59 +0000 (16:49 +0000)]
fixed g_io_channel_seek_position() so that G_SEEK_CUR works for UTF-8

        * glib/giochannel.c: fixed g_io_channel_seek_position() so that
        G_SEEK_CUR works for UTF-8 channel encoding, and unallocated
        converters are not flushed after the seek; fixed
        g_io_channel_get_buffer_condition() so that G_IO_IN is only
        set if the read buffer contains at least one full character

23 years agoremoved glib.def from EXTRA_DIST ... ... and added it here.
Sven Neumann [Mon, 23 Jul 2001 11:44:04 +0000 (11:44 +0000)]
removed glib.def from EXTRA_DIST ... ... and added it here.

2001-07-23  Sven Neumann  <sven@gimp.org>

        * Makefile.am: removed glib.def from EXTRA_DIST ...
        * glib/Makefile.am: ... and added it here.

23 years agomake the code actually have an effect (Use |= to set bits). Not absolutely
Hans Breuer [Sun, 22 Jul 2001 21:15:22 +0000 (21:15 +0000)]
make the code actually have an effect (Use |= to set bits). Not absolutely

2001-07-22  Hans Breuer  <hans@breuer.org>

* glib/giochannel.c (g_io_channel_get_buffer_condition) : make
the code actually have an effect (Use |= to set bits). Not
absolutely sure if is the right one.

* glib/giowin32.c (g_io_win32_<check|prepare>) : don't modify
watch->condition but restored the previous behaviour.
Now gio-test as well as The Gimp work again ...

23 years agoset the corresponding p(ermission)mode of the file when creating,
Hans Breuer [Sat, 21 Jul 2001 17:26:01 +0000 (17:26 +0000)]
set the corresponding p(ermission)mode of the file when creating,

2001-07-21  Hans Breuer  <hans@breuer.org>

* glib/giowin32.c (g_io_channel_new_file) : set the
corresponding p(ermission)mode of the file when creating,
otherwise a wronly file couldn't be overwritten (at least
not on Win9x).

23 years agointial implementation of new API functions. Not sure if it behaves as
Hans Breuer [Sat, 21 Jul 2001 13:15:58 +0000 (13:15 +0000)]
intial implementation of new API functions. Not sure if it behaves as

2001-07-21  Hans Breuer  <hans@breuer.org>

* glib/giowin32.c : intial implementation of new API functions.
Not sure if it behaves as intended ...

* glib.def : removed, glib/glib.def is the file used since moved
* glib/glib.def : updated

* tests/makefile.msc : added iochannel-test

23 years agoModified Files: glib/ChangeLog glib/glib.def glib/glib/giochannel.c
Ron Steinke [Fri, 20 Jul 2001 20:14:37 +0000 (20:14 +0000)]
Modified Files: glib/ChangeLog glib/glib.def glib/glib/giochannel.c

     Modified Files:
  glib/ChangeLog glib/glib.def glib/glib/giochannel.c
  glib/glib/giochannel.h glib/glib/giounix.c
  glib/glib/giowin32.c
  glib/docs/reference/glib/glib-sections.txt
  glib/tests/iochannel-test.c glib/tests/unicode-collate.c
  glib/tests/unicode-normalize.c
     Added Files:
  glib/tests/iochannel-test-infile

        * glib/giochannel.c: API changes, fixes to
        error handling, some internal restructuring
        * glib/giochannel.h: API changes, documentation for
        elements in GIOChannel structure
        * glib/giounix.c: Matched API changes, implemented
        backend to set is_readable, is_writeable, is_seekable
        flags, added a test to catch large values of count
        for which the behavior of write() is undefined
        * glib/giowin32.c: Changed to match new prototypes for
        io_close() and io_seek(), removed references to
        G_IO_STATUS_INTR, set is_seekable flag in channel
        creation functions
        * glib.def: Renamed g_channel_error_quark() and
        g_channel_error_from_errno() to g_io_channel_error_quark() and
        g_io_channel_error_from_errno(); added new functions
        g_io_channel_get_buffered() and g_io_channel_set_buffered()
        * docs/reference/glib/glib-sections.txt: Modified iochannel
        section to reflect new functions and API changes
        * tests/iochannel-test.c: Fixed to work with API changes
        * tests/iochannel-test-infile: New file; input file
        for iochannel-test
        * tests/unicode-collate.c tests/unicode-normalize.c:
        Changed G_IO_FILE_MODE_READ to "r" to match API change

23 years agoglib/ChangeLog: modified for changes in glib-genmarshal.c
Ron Steinke [Fri, 20 Jul 2001 19:14:49 +0000 (19:14 +0000)]
glib/ChangeLog: modified for changes in glib-genmarshal.c

  glib/ChangeLog: modified for changes in glib-genmarshal.c

23 years agoModified to create header files which use G_[BEGIN,END]_DECLS instead of
Ron Steinke [Fri, 20 Jul 2001 19:11:41 +0000 (19:11 +0000)]
Modified to create header files which use G_[BEGIN,END]_DECLS instead of

  * gobject/glib-genmarshal.c: Modified to create header files which
use G_[BEGIN,END]_DECLS instead of #ifdef __cplusplus ...

23 years agos/size_t/gsize/ to match prototypes.
Owen Taylor [Fri, 20 Jul 2001 18:12:10 +0000 (18:12 +0000)]
s/size_t/gsize/ to match prototypes.

Fri Jul 20 14:11:29 2001  Owen Taylor  <otaylor@redhat.com>

* glib/gutf8.c glib/gunidecomp.c: s/size_t/gsize/ to match
prototypes.

23 years agomake it compile again
Hans Breuer [Fri, 20 Jul 2001 17:13:52 +0000 (17:13 +0000)]
make it compile again

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

* glib/glib/giowin32.c : make it compile again

* glib/glib.def : updated exports

* glib/makefile.msc.in :
* glib/makefile.mingw.in :
* tests/makefile.msc.in : reflect glib move

* tests/mainloop-test.c : #include <io.h> for _pipe()

* tests/gio-test.c : casts for strict compiler settings

* makefile.msc.in : new master makefile reflecting the glib
move. The '.in' isn't really needed anymore, because there
is no version number in it

23 years agoreflect glib move
Hans Breuer [Fri, 20 Jul 2001 17:01:30 +0000 (17:01 +0000)]
reflect glib move

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

* makefile.msc.in : reflect glib move

23 years agoupdated externals
Hans Breuer [Fri, 20 Jul 2001 16:58:00 +0000 (16:58 +0000)]
updated externals

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

* gobject.def : updated externals

* makefile.msc.in : reflect glib move

23 years agoFix memory leak and dubious list manipulation. (Found by Ron Koerner,
Owen Taylor [Thu, 19 Jul 2001 20:17:03 +0000 (20:17 +0000)]
Fix memory leak and dubious list manipulation. (Found by Ron Koerner,

Thu Jul 19 16:05:21 2001  Owen Taylor  <otaylor@redhat.com>

* glib/gcompletion.c (g_completion_complete): Fix memory
leak and dubious list manipulation. (Found by
Ron Koerner, #53408)

* glib/gfileutils.c (get_contents_stdio): Call fclose()
on FILE * on error. (#57057)

23 years agoAdd missing const. (g_strsplit): Add g_return_val_if_fail for case of
Darin Adler [Thu, 19 Jul 2001 20:07:41 +0000 (20:07 +0000)]
Add missing const. (g_strsplit): Add g_return_val_if_fail for case of

* glib/gstrfuncs.c: (g_ascii_strdown), (g_ascii_strup): Add
missing const.
(g_strsplit): Add g_return_val_if_fail for case of empty
delimiter, which can result in an infinite loop otherwise.
* glib/gstrfuncs.h: Add missing const.
* tests/.cvsignore: Ignore a generated file.

* tests/array-test.c:
* tests/dirname-test.c:
* tests/hash-test.c:
* tests/list-test.c:
* tests/node-test.c:
* tests/relation-test.c:
* tests/shell-test.c:
* tests/slist-test.c:
* tests/spawn-test.c:
* tests/strfunc-test.c:
* tests/string-test.c:
* tests/testglib.c:
* tests/tree-test.c:
* tests/type-test.c:
Add an #undef G_DISABLE_ASSERT so all tests will assert even if
asserts are disabled inside glib itself.

23 years agofix some typos.
Matthias Clasen [Thu, 19 Jul 2001 16:11:16 +0000 (16:11 +0000)]
fix some typos.

2001-06-03  Matthias Clasen  <matthiasc@poet.de>

        * glib/tmpl/caches.sgml, glib/tmpl/main.sgml,
        gobject/gobject-docs.sgml, gobject/tmpl/generic_values.sgml,
        gobject/tmpl/gtypemodule.sgml, gobject/tmpl/signals.sgml,
        gobject/tmpl/types.sgml: fix some typos.

23 years agoAdd functions to insert a unichar as UTF-8, since this is reasonably
Owen Taylor [Thu, 19 Jul 2001 14:35:48 +0000 (14:35 +0000)]
Add functions to insert a unichar as UTF-8, since this is reasonably

Fri Jul 13 19:20:06 2001  Owen Taylor  <otaylor@redhat.com>

* glib/gstring.c (g_string_insert/append/prepend_unichar):
Add functions to insert a unichar as UTF-8, since this
is reasonably common.

* glib/gutf8.c glib/gunicode.h (g_utf8_get_char_validated):
New function exposing iterating through possibly invalid/incomplete
UTF-8 to unicode to the outside world.

* glib/gutf8.c (g_utf8_get_char_extended): Fix max_len argument
to be gssize, not gsize.

23 years agoAdded "nn" to ALL_LINGUAS.
Kjartan Maraas [Tue, 17 Jul 2001 19:01:11 +0000 (19:01 +0000)]
Added "nn" to ALL_LINGUAS.

2001-07-17  Kjartan Maraas  <kmaraas@gnome.org>

* configure.in: Added "nn" to ALL_LINGUAS.

23 years agoAdded Norwegian (nynorsk) translation.
Kjartan Maraas [Tue, 17 Jul 2001 18:30:19 +0000 (18:30 +0000)]
Added Norwegian (nynorsk) translation.

2001-07-17  Kjartan Maraas  <kmaraas@gnome.org>

* nn.po: Added Norwegian (nynorsk) translation.

23 years agoAdd some assertions. Simplify and fix g_main_context_release(). Fix some
Sebastian Wilhelmi [Tue, 17 Jul 2001 08:49:23 +0000 (08:49 +0000)]
Add some assertions. Simplify and fix g_main_context_release(). Fix some

2001-07-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib/gmain.c: Add some assertions. Simplify and fix
g_main_context_release(). Fix some locking bugs in
g_main_loop_run().

23 years agoChanged prototype of printf_string_upper_bound to return gsize. Now
Mark Murnane [Thu, 12 Jul 2001 09:23:38 +0000 (09:23 +0000)]
Changed prototype of printf_string_upper_bound to return gsize. Now

* glib/gmessages.c: Changed prototype of printf_string_upper_bound
to return gsize.  Now matches the actual function body.

* glib/gstrfuncs.c (g_strrstr_len): Changed type of parameter #2
from gint to gssize.  Now matches the prototype in gstrfuncs.h.

23 years agoAdd some generated files.
Darin Adler [Wed, 11 Jul 2001 20:08:50 +0000 (20:08 +0000)]
Add some generated files.

        * .cvsignore: Add some generated files.

        * glib/gmain.c: (g_main_context_iterate): Comment out cruft
        after #endif to avoid gcc warning.
        * gmodule/gmodule.c: (g_module_set_error_unduped): Remove
        const from type to avoid gcc warning.
        * gobject/gsignal.c: (g_signal_emitv): ifdef variable used
        only if G_ENABLE_DEBUG to avoid gcc warning.
        * gobject/gtype.c: (type_iface_vtable_init_Wm),
        (type_iface_vtable_finalize_Wm): ifdef call needed only
        if !G_DISABLE_ASSERT to avoid gcc warning.
        * tests/testglib.c: (main): ifdef call needed only if
        !G_DISABLE_ASSERT to avoid gcc warning. Maybe later we
        should make the test to #undef G_DISABLE_ASSERT.
        * tests/unicode-collate.c: Add include of <string.h> to
        avoid gcc warning.

23 years agoAdd gunicomp.h (Reported by Sven Neumann).
Owen Taylor [Wed, 11 Jul 2001 15:28:35 +0000 (15:28 +0000)]
Add gunicomp.h (Reported by Sven Neumann).

Wed Jul 11 11:13:50 2001  Owen Taylor  <otaylor@redhat.com>

* glib/Makefile.am (libglib_1_3_la_SOURCES): Add gunicomp.h
(Reported by Sven Neumann).

* glib/guniprop.c (g_utf8_str/updown) glib/gunicollate.c
(g_utf8_collate_key): Fix shadowing problems reported by
many (D. Adler, S. Neumann, M. Murmane, L. Peter)

23 years agofix negative exponent handling (numbers<0).
Tim Janik [Tue, 10 Jul 2001 22:37:08 +0000 (22:37 +0000)]
fix negative exponent handling (numbers<0).

Fri Jul  6 00:02:41 2001  Tim Janik  <timj@gtk.org>

        * glib/gmessages.c (printf_string_upper_bound): fix negative exponent
        handling (numbers<0).

        * glib/gutils.h (g_bit_storage): take a gulong as argument.
        same for g_bit_nth_lsf() and g_bit_nth_msf() as mask.

Tue Jul 10 18:50:16 2001  Tim Janik  <timj@gtk.org>

        * gsignal.h (struct _GSignalQuery): fix misplaced comment.

23 years agoReflect latest g_io_channel_new_file() API changes, use
Martin Baulig [Sun, 8 Jul 2001 13:01:19 +0000 (13:01 +0000)]
Reflect latest g_io_channel_new_file() API changes, use

2001-07-08  Martin Baulig  <baulig@suse.de>

* tests/unicode-normalize.c, tests/unicode-collate.c:
Reflect latest g_io_channel_new_file() API changes, use
G_IO_FILE_MODE_READ instead of "r".

23 years agoAdd length arguments to g_utf8_{strup,strdown,casefold,collate_key}.
Owen Taylor [Sat, 7 Jul 2001 02:42:49 +0000 (02:42 +0000)]
Add length arguments to g_utf8_{strup,strdown,casefold,collate_key}.

Fri Jul  6 22:34:32 2001  Owen Taylor  <otaylor@redhat.com>

* glib/gunicode.h glib/gunidecomp.c glib/guniprop.c
  glib/gunicollate.c: Add length arguments to
g_utf8_{strup,strdown,casefold,collate_key}.

* glib/gdate.c: Fix for above.

23 years agoUpdated Swedish translation.
Christian Rose [Fri, 6 Jul 2001 18:16:36 +0000 (18:16 +0000)]
Updated Swedish translation.

2001-07-06  Christian Rose  <menthos@menthos.com>

* sv.po: Updated Swedish translation.

23 years agoAdded Basque file
Pablo Saratxaga [Fri, 6 Jul 2001 12:26:56 +0000 (12:26 +0000)]
Added Basque file

23 years agoUpdated Slovenian translation
Andraz Tori [Thu, 5 Jul 2001 12:12:32 +0000 (12:12 +0000)]
Updated Slovenian translation

23 years ago*giowin32.c: g_source_remove()ing an socket iochannel closes
Andy Lanoix [Mon, 2 Jul 2001 23:57:19 +0000 (23:57 +0000)]
*giowin32.c: g_source_remove()ing an socket iochannel closes
the socket when it should not. Patch by Peter Zelezny
<zed@linux.com>
*giowin32.c: Fix a few typos

23 years agoFix.
Owen Taylor [Mon, 2 Jul 2001 20:26:38 +0000 (20:26 +0000)]
Fix.

Mon Jul  2 16:03:21 2001  Owen Taylor  <otaylor@redhat.com>

* glib/giochannel.c (g_io_channel_get_buffer_condition): Fix.

* glib/giunix.c: Fix prepare/check/dispatch for watches.

* tests/unicode-normalize.c: #include <string.h>

23 years agocongrats tim, introducing of-by-one errors like on my very first day of C
Tim Janik [Mon, 2 Jul 2001 05:15:29 +0000 (05:15 +0000)]
congrats tim, introducing of-by-one errors like on my very first day of C

Mon Jul  2 07:17:47 2001  Tim Janik  <timj@gtk.org>

        * gobject.c (g_object_weak_ref):
        (g_object_watch_closure): congrats tim, introducing of-by-one
        errors like on my very first day of C programming.

23 years agoadded g_list_insert_before().
Tim Janik [Mon, 2 Jul 2001 05:02:13 +0000 (05:02 +0000)]
added g_list_insert_before().

Sat Jun 30 23:14:32 2001  Tim Janik  <timj@gtk.org>

        * glib/glist.[hc]: added g_list_insert_before().

        * glib/gslist.c (g_slist_insert_before): provide an implementation,
        prototype was already present...

Sat Jun 30 11:07:00 2001  Tim Janik  <timj@gtk.org>

        * gobject.[hc]: provide weak_ref/weak_unref functions,
        invoked from ->dispose. renamed ->shutdown() to ->dispose(),
        provide "public" API entry here: g_object_run_dispose(), this
        fucntion should _only_ be called from object system implementations
        (e.g. gtkobject.c) if at all.

        * gtypemodule.c (g_type_module_dispose): s/shutdown/dispose/

        * gsignal.h: removed compat aliases.

        * gobject.c (g_object_connect): support data objects.

23 years agoUse G_N_ELEMENTS rather than a custom macro.
Owen Taylor [Mon, 2 Jul 2001 00:49:21 +0000 (00:49 +0000)]
Use G_N_ELEMENTS rather than a custom macro.

Sun Jul  1 20:16:25 2001  Owen Taylor  <otaylor@redhat.com>

* glib/guniprop.c (g_unichar_totitle): Use G_N_ELEMENTS
rather than a custom macro.

* glib/gen-unicode-tables.pl: Adapt to changes in table
formats for Unicode 3.1

* glib/gunicode.h glib/guniprop.c glib/gunichartables.h
  glib/gen-unicode-tables.pl: Add case conversion functions
        g_utf8_casefold, g_utf8_strup, g_utf8_strdown.

* tests/unicode-caseconv.c tests/gen-casefold-txt.pl
  tests/gen-casemap-txt.pl tests/casefold.txt
  tests/casemap.txt: Test cases for case conversion.

* glib/gunicode.h glib/gunidecomp.[ch] glib/gunicomp.h
  glib/gen-unicode-tables.pl: Add function to do Unicode
        normalization g_utf8_normalize().

* tests/unicode-normalize.c: Test program for case conversion.

* glib/gunicode.h glib/gunicollate.c: Add collation functions
g_utf8_collate, g_utf8_collate_key.

* test/unicode-collate.c: Test program for collation.

* glib/gdate.c (g_date_fill_parse_tokens): Fix uninitialized
variable.

* glib/gdate.c (g_date_strftime) docs/Changes-2.0.txt:
Make work with UTF-8 even if the locale isn't UTF-8 based.
Still somewhat of broken, if the format string contains
characters not representable in the current locale, will warn
and not work.

* glib/gdate.c: Use UTF-8 normalization and casefolding.

23 years agoRename GSourceFuncs::destroy to GSourceFuncs::finalize. (#56858)
Owen Taylor [Sat, 30 Jun 2001 20:06:16 +0000 (20:06 +0000)]
Rename GSourceFuncs::destroy to GSourceFuncs::finalize. (#56858)

Sat Jun 30 16:03:16 2001  Owen Taylor  <otaylor@redhat.com>

* glib/giowin32.c glib/giounix.c glib/gmain.[ch]:
Rename GSourceFuncs::destroy to GSourceFuncs::finalize.
(#56858)

23 years agoMake some changes to the way that GMainContext works:
Owen Taylor [Sat, 30 Jun 2001 19:56:47 +0000 (19:56 +0000)]
Make some changes to the way that GMainContext works:

Sat Jun 30 15:49:10 2001  Owen Taylor  <otaylor@redhat.com>

* glib/gmain.[ch]: (Mostly patch from Sebastian Wilhemi)
Make some changes to the way that GMainContext works:

 - a GMainContext is no longer associated with a single
   thread, but any thread can acquire ownership
   of thread and iterate.

 - There is a facility g_main_context_wait() for
   non-owner-threads to wait either for ownership
   or for a condition to be broadcast.

 - For efficiency, GMainLoop just piggybacks of
   of the loops mutex / condition instead of
   having a separate mutex/condition for each
   GMainLoop.

* glib/gthread.[ch]: Remove hacks to store the thread's
GMainContext in the GThread structures, since we
no longer have the GMainContext <=> GThread correspondence.

        * glib/gmain.[ch]: Make g_main_context_wakeup() public
so someone could completely duplicate GMainLoop
with the public API.

* tests/mainloop-test: Fix up to the new API. Decidedly
doesn't work at the moment, but that may be the IO
channel changes, or preexisting locking problems.

23 years agoTry compiling before committing, why don't you? Simple fixes for my stupid
Owen Taylor [Sat, 30 Jun 2001 17:19:20 +0000 (17:19 +0000)]
Try compiling before committing, why don't you? Simple fixes for my stupid

Sat Jun 30 13:18:28 2001  Owen Taylor  <otaylor@redhat.com>

* glib/gstrfuncs.c glib/gstring.h: Try compiling
before committing, why don't you? Simple fixes
for my stupid typos.

23 years agog_signal_newc() => g_signal_new().
Owen Taylor [Sat, 30 Jun 2001 17:17:41 +0000 (17:17 +0000)]
g_signal_newc() => g_signal_new().

Sat Jun 30 13:17:12 2001  Owen Taylor  <otaylor@redhat.com>

* testgruntime.c (test_object_class_init)
          gobject.c (g_object_do_class_init):
          g_signal_newc() => g_signal_new().

23 years agoPatch from Darin Adler (#54166)
Owen Taylor [Sat, 30 Jun 2001 16:54:33 +0000 (16:54 +0000)]
Patch from Darin Adler (#54166)

Sat Jun 30 12:49:26 2001  Owen Taylor  <otaylor@redhat.com>

        Patch from Darin Adler (#54166)

* glib/gstrfuncs.[ch]: Add ascii-only, locale-insensitive
g_ascii_to[lower/upper], g_ascii_str[down/up],
g_ascii_is[upper/lower] and deprecate the locale-affected
versions which break for UTF-8, etc. Make
g_ascii_strup/strdown duplicating,
not in-place for consistency with UTF-8 functions.

* glib/gstring.[ch]: Add ascii-only, locale-insensitive
g_string_ascii_[down/up], and deprecate the locale-affected
versions which break for UTF-8, etc.

* glib/gutils.c glib/gwin32.c test/testglib.c: Use
the g_ascii_* functions where appropriate.

23 years ago Jun 29 13:36:39 2001 Owen Taylor <otaylor@redhat.com>
Owen Taylor [Sat, 30 Jun 2001 15:22:13 +0000 (15:22 +0000)]
 Jun 29 13:36:39 2001  Owen Taylor  <otaylor@redhat.com>

        * glib/gstring.[ch] (g_string_set_size): Add function to
        allow setting the length of a string greater than the
        current length (for buffering usage)

        * glib/gstring.[ch]: Expose string->allocated_len, since
        that is useful when using GString simply as a buffer.
        (Renamed from string->alloc)

        * glib/giochannel.[ch] glib/giounix.c glib/giowin32.c:
        Major patch from Hidetoshi Tajima and Ron Steinke
        reworking GIOChannel to have:

         - Buffering
         - Sane and useful error reporting
         - Streaming encoding conversion with iconv
         - Convenience functions to read by lines or
           an entire file.

        Also fix remaining 64 bit cleanliness issues.

        * tests/iochannel-test.c tests/Makefile.am: Test case
        for IO channel streaming conversion. Still needs
        some fixing up.

23 years agoRemove debug flag argument to g_type_init() and add
Owen Taylor [Fri, 29 Jun 2001 02:50:46 +0000 (02:50 +0000)]
Remove debug flag argument to g_type_init() and add

Thu Jun 28 22:49:40 2001  Owen Taylor  <otaylor@redhat.com>

* gtype.[ch] gobject-query.c testgruntime.c: Remove
debug flag argument to g_type_init() and add
g_type_init_with_debug_flags().

23 years agoBuffers Files Tools Edit Search Mule Help Thu...
Owen Taylor [Thu, 28 Jun 2001 21:45:02 +0000 (21:45 +0000)]
Buffers Files Tools Edit Search Mule Help                                       Thu Jun 28 17:43:29 2001  Owen Taylor  <otaylor@redhat.com>

        * glib/tmpl/memory.sgml glib/tmpl/macros_misc.sgml: Add
notes about inclusion of string.h to docs on g_memmove,
        G_VA_COPY. (#54411)

23 years agoup version number to 1.3.7, interface age 0, binary age 0.
Tim Janik [Thu, 28 Jun 2001 17:05:12 +0000 (17:05 +0000)]
up version number to 1.3.7, interface age 0, binary age 0.

Thu Jun 28 16:57:44 2001  Tim Janik  <timj@gtk.org>

        * configure.in (GLIB_MICRO_VERSION): up version number to 1.3.7,
        interface age 0, binary age 0.

Thu Jun 28 16:42:49 2001  Tim Janik  <timj@gtk.org>

        * gsignal.c (g_signal_lookup):
        (g_signal_list_ids): give elaborate warnings about invalid types,
        non-instantiatable types and unloaded types that we can't operate on.

        * gparam.[hc]: g_param_spec_pool_belongings() ->
        g_param_spec_pool_list_owned().

        * gsignal.[hc]: renamed:
        g_signal_newc -> g_signal_new
        g_signal_disconnect_by_func -> g_signal_handlers_disconnect_by_func
        g_signal_block_by_func -> g_signal_handlers_block_by_func
        g_signal_unblock_by_func -> g_signal_handlers_unblock_by_func
        added GConnectType to simplify (..gboolean swapped, gboolean after)
        args.

        * gobject.[hc]: changed prototypes accordingly.

23 years agoFix a typo.
Kjartan Maraas [Wed, 27 Jun 2001 19:18:07 +0000 (19:18 +0000)]
Fix a typo.

2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>

* glib/gmarkup.c: Fix a typo.

23 years agoCompleted Norwegian translation. Adjusted to fit the move of the .c files.
Kjartan Maraas [Wed, 27 Jun 2001 19:17:50 +0000 (19:17 +0000)]
Completed Norwegian translation. Adjusted to fit the move of the .c files.

2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>

* no.po: Completed Norwegian translation.
* POTFILES.in: Adjusted to fit the move of the .c files.

23 years agoRemoved glib-config-2.0, as we have pkg-config now.
Sebastian Wilhelmi [Wed, 27 Jun 2001 14:38:08 +0000 (14:38 +0000)]
Removed glib-config-2.0, as we have pkg-config now.

2001-06-27  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* Makefile.am, configure.in: Removed glib-config-2.0, as we have
pkg-config now.

* glib/Makefile.am: Added -I$(top_srcdir) for builddir != srcdir.

* Makefile.am: Removed gen-unicode-tables.pl from EXTRA_DIST.

23 years agoFix problem with glibconfig.h
Owen Taylor [Tue, 26 Jun 2001 16:28:50 +0000 (16:28 +0000)]
Fix problem with glibconfig.h

Tue Jun 26 12:28:20 2001  Owen Taylor  <otaylor@redhat.com>

        * glib/Makefile.am: Fix problem with glibconfig.h

23 years agoMove glib library into a subdirectory, make all GLib include files include
Owen Taylor [Tue, 26 Jun 2001 16:01:21 +0000 (16:01 +0000)]
Move glib library into a subdirectory, make all GLib include files include

Tue Jun 26 11:43:46 2001  Owen Taylor  <otaylor@redhat.com>

* configure.in Makefile.am *.[ch] glib/*.[ch] glib/Makefile.am:
Move glib library into a subdirectory, make all GLib include
files include as <glib/glist.h>

* tests/testglib.c tests/testgdate.c tests/testgdateparser.c
  tests/timeloop.c tests/timeloop-basic.c: Move all tests into
the tests/ subdirectory.

23 years agoCorrected.
Sebastian Wilhelmi [Tue, 26 Jun 2001 10:28:48 +0000 (10:28 +0000)]
Corrected.

2001-06-26  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib/tmpl/threads.sgml (example): Corrected.

23 years agouse G_BREAKPOINT() instead of raise(5).
Tim Janik [Sat, 23 Jun 2001 20:14:48 +0000 (20:14 +0000)]
use G_BREAKPOINT() instead of raise(5).

Sat Jun 23 17:34:38 2001  Tim Janik  <timj@gtk.org>

        * gmessages.c (g_logv): use G_BREAKPOINT() instead of raise(5).

23 years agoChanges for 64-bit cleanliness, loosely based on patch from Mark Murnane.
Owen Taylor [Sat, 23 Jun 2001 13:55:09 +0000 (13:55 +0000)]
Changes for 64-bit cleanliness, loosely based on patch from Mark Murnane.

Wed Jun 20 12:00:54 2001  Owen Taylor  <otaylor@redhat.com>

        Changes for 64-bit cleanliness, loosely based on patch
from Mark Murnane.

* gconvert.c (g_convert/g_convert_with_fallback): Remove
workarounds for since-fixed GNU libc bugs. Minor
doc fix.

* gconvert.[ch]: Change gint to gsize/gssize as
appropriate.

* gconvert.c (g_locale/filename_to/from_utf8): Fix incorrect
computation of bytes_read / bytes_written.

* gfileutils.[ch] (g_file_get_contents): Make length
out parameter 'gsize *len'.

* ghook.c (g_hook_compare_ids): Don't compare a
and b as 'a - b'.

* gmacros.h (GSIZE_TO_POINTER): Add GPOINTER_TO_SIZE,
GSIZE_TO_POINTER.

* gmain.c (g_timeout_prepare): Rewrite to avoid
overflows. (Fixes bug when system clock skews
backwards more than 24 days.)

* gmarkup.[ch]: Make lengths passed to callbacks
gsize, length for g_markup_parse-context_parse(),
g_markup_escape_text() gssize.

* gmessages.[ch] (g_printf_string_upper_bound): Change
return value to gsize.

* gmessages.c (printf_string_upper_bound): Remove
a ridiculous use of 'inline' on a 300 line function.

* gstring.[ch]: Represent size of string as a gsize,
not gint. Make parameters to functions take gsize,
or gssize where -1 is allowed.

* gstring.c (g_string_erase): Make
g_string_erase (string, pos, -1) a synonym for
g_string_truncate for consistency with other G*
APIs.

* gstrfuncs.[ch]: Make all functions taking a string
length, take a gsize, or gssize if -1 is allowed.
(g_strstr_len, g_strrstr_len). Also fix some boundary
conditions in g_str[r]str[_len].

* gutf8.c tests/unicode-encoding.c: Make parameters that
are byte lengths gsize, gssize as appropriate. Make
character offsets, other counts, glong.

* gasyncqueue.c gcompletion.c
          timeloop.c timeloop-basic.c gutils.c gspawn.c.
Small 64 bit cleanliness fixups.

* glist.c (g_list_sort2, g_list_sort_real): Fix functions
that should have been static.

* gdate.c (g_date_fill_parse_tokens): Fix extra
declaration that was shadowing another.

* tests/module-test.c: Include string.h

Mon Jun 18 15:43:29 2001  Owen Taylor  <otaylor@redhat.com>

* gutf8.c (g_get_charset): Make argument
G_CONST_RETURN char **.