platform/upstream/glib.git
18 years agoAdd a macro to make gcc warn if a function result is ignored. (#145466,
Matthias Clasen [Sun, 4 Dec 2005 06:41:58 +0000 (06:41 +0000)]
Add a macro to make gcc warn if a function result is ignored. (#145466,

2005-12-04  Matthias Clasen  <mclasen@redhat.com>

* glib/gmacros.h (G_GNUC_WARN_UNUSED_RESULT): Add a macro
to make gcc warn if a function result is ignored.  (#145466,
Arjan van de Ven, Alex Larsson)

* glib/gmem.h: Add the new attribute to g_realloc and
g_try_realloc.

18 years agoDeprecate g_cache_value_foreach. (#322956, Nicolas Caniart)
Matthias Clasen [Sat, 3 Dec 2005 06:53:31 +0000 (06:53 +0000)]
Deprecate g_cache_value_foreach. (#322956, Nicolas Caniart)

2005-12-03  Matthias Clasen  <mclasen@redhat.com>

* glib/glib.symbols:
* glib/gcache.h: Deprecate g_cache_value_foreach. (#322956,
Nicolas Caniart)

18 years agoMake mapping of empty files work. (#321530)
Matthias Clasen [Sat, 3 Dec 2005 06:44:02 +0000 (06:44 +0000)]
Make mapping of empty files work. (#321530)

2005-12-03  Matthias Clasen  <mclasen@redhat.com>

        * glib/gmappedfile.c: Make mapping of empty files
        work.  (#321530)

18 years agoAdd more api
Matthias Clasen [Sat, 3 Dec 2005 06:36:01 +0000 (06:36 +0000)]
Add more api

18 years agoDocument the slice allocator
Matthias Clasen [Sat, 3 Dec 2005 06:29:12 +0000 (06:29 +0000)]
Document the slice allocator

18 years agoDon't fork a new process just to fix the permissions of the created temp
Matthias Clasen [Sat, 3 Dec 2005 06:10:52 +0000 (06:10 +0000)]
Don't fork a new process just to fix the permissions of the created temp

2005-12-03  Matthias Clasen  <mclasen@redhat.com>

* glib/gfileutils.c: Don't fork a new process just to
fix the permissions of the created temp file.  (#321318,
Alexis S. L. Carvalho)

18 years agoAdd a note about Solaris threads.
Matthias Clasen [Fri, 2 Dec 2005 21:40:43 +0000 (21:40 +0000)]
Add a note about Solaris threads.

2005-12-02  Matthias Clasen  <mclasen@redhat.com>

* README.in: Add a note about Solaris threads.

18 years agoRemove support for Solaris threads. (#136971, Sebastian Wilhelmi, patch by
Matthias Clasen [Fri, 2 Dec 2005 21:37:25 +0000 (21:37 +0000)]
Remove support for Solaris threads. (#136971, Sebastian Wilhelmi, patch by

2005-12-02  Matthias Clasen  <mclasen@redhat.com>

* glib/gspawn.c:
* configure.in: Remove support for Solaris threads.
(#136971, Sebastian Wilhelmi, patch by Andrew Paprocki)

18 years agoBroken commit
Matthias Clasen [Fri, 2 Dec 2005 21:26:23 +0000 (21:26 +0000)]
Broken commit

18 years agoDefine G_GUINT64_CONSTANT in analogy to G_GINT64_CONSTANT. (#322568,
Matthias Clasen [Fri, 2 Dec 2005 21:25:45 +0000 (21:25 +0000)]
Define G_GUINT64_CONSTANT in analogy to G_GINT64_CONSTANT. (#322568,

2005-12-02  Matthias Clasen  <mclasen@redhat.com>

* configure.in: Define G_GUINT64_CONSTANT in analogy to
G_GINT64_CONSTANT.  (#322568, Andrew Paprocki)

18 years agoPortability fixes, C99ism removal
Matthias Clasen [Fri, 2 Dec 2005 20:11:28 +0000 (20:11 +0000)]
Portability fixes, C99ism removal

18 years agoAdd a missing volatile for the IA64 implementation.
Matthias Clasen [Fri, 2 Dec 2005 16:57:24 +0000 (16:57 +0000)]
Add a missing volatile for the IA64 implementation.

2005-12-02  Matthias Clasen  <mclasen@redhat.com>

* glib/gatomic.c (g_atomic_int_add): Add a missing volatile for
the IA64 implementation.

18 years agofix uint/pointer casts
Tim Janik [Fri, 2 Dec 2005 15:28:56 +0000 (15:28 +0000)]
fix uint/pointer casts

18 years agosome naming and type size fixups.
Tim Janik [Fri, 2 Dec 2005 15:18:39 +0000 (15:18 +0000)]
some naming and type size fixups.

Fri Dec  2 16:18:09 2005  Tim Janik  <timj@imendio.com>

        * glib/gslice.c: some naming and type size fixups.

18 years agoreworked GCC-specific type-safe macro variant into something less verbose,
Tim Janik [Fri, 2 Dec 2005 12:11:34 +0000 (12:11 +0000)]
reworked GCC-specific type-safe macro variant into something less verbose,

Fri Dec  2 13:08:58 2005  Tim Janik  <timj@gtk.org>

        * glib/gslice.h (g_slice_free): reworked GCC-specific type-safe macro
        variant into something less verbose, but digestible for gcc-3.4.

18 years agoextended to perform the benchmarking on the old memchunk code if 'O' is
Tim Janik [Fri, 2 Dec 2005 12:10:49 +0000 (12:10 +0000)]
extended to perform the benchmarking on the old memchunk code if 'O' is

Fri Dec  2 10:55:07 2005  Tim Janik  <timj@imendio.com>

        * tests/slice-test.c: extended to perform the benchmarking on the old
        memchunk code if 'O' is selected.

        * tests/memchunks.c: new file which contains the old GLib mem chunks
        implementation with prefix old_mem_chunk_.

        * tests/Makefile.am: added memchunks.c

18 years agoextended to perform the benchmarking on the old memchunk code if 'O' is
Tim Janik [Fri, 2 Dec 2005 09:57:06 +0000 (09:57 +0000)]
extended to perform the benchmarking on the old memchunk code if 'O' is

Fri Dec  2 10:55:07 2005  Tim Janik  <timj@imendio.com>

        * tests/slice-test.c: extended to perform the benchmarking on the old
        memchunk code if 'O' is selected.

        * tests/memchunks.c: new file which contains the old GLib mem chunks
        implementation with prefix old_mem_chunk_.

        * tests/Makefile.am: added memchunks.c

18 years agoimproved gettimeofday() timer resolution by maintaining acceptable load
Tim Janik [Thu, 1 Dec 2005 23:21:49 +0000 (23:21 +0000)]
improved gettimeofday() timer resolution by maintaining acceptable load

Fri Dec  2 00:16:59 2005  Tim Janik  <timj@imendio.com>

        * glib/gslice.c: improved gettimeofday() timer resolution by maintaining
        acceptable load distribution of the syscall.
        (allocator_get_magazine_threshold): reduce minimum/single-thread magazine
        sizes to approximately page_size/2.5 to avoid excessive startup allocations.

18 years agoimproved gettimeofday() timer resolution by maintaining acceptable load
Tim Janik [Thu, 1 Dec 2005 23:20:22 +0000 (23:20 +0000)]
improved gettimeofday() timer resolution by maintaining acceptable load

Fri Dec  2 00:16:59 2005  Tim Janik  <timj@imendio.com>

        * glib/gslice.c: improved gettimeofday() timer resolution by maintaining
        acceptable load distribution of the syscall.
        (slab_allocator_free_chunk): reduce minimum/single-thread magazine sizes
        to approximately page_size/2.5 to avoid excessive startup allocations.

18 years agoMake tests work with slice allocator
Matthias Clasen [Thu, 1 Dec 2005 18:06:17 +0000 (18:06 +0000)]
Make tests work with slice allocator

18 years agoRemove a duplicate _LDADD
Matthias Clasen [Thu, 1 Dec 2005 16:43:56 +0000 (16:43 +0000)]
Remove a duplicate _LDADD

18 years agonew slice allocator implementation.
Tim Janik [Thu, 1 Dec 2005 16:34:33 +0000 (16:34 +0000)]
new slice allocator implementation.

Thu Dec  1 17:32:46 2005  Tim Janik  <timj@imendio.com>

        * glib/gslice.[hc]: new slice allocator implementation.

        * tests/slice-test.c: added random slice allocation test.

        * glib/gthread.[hc]: removed newly added private thread mem API.

        * glib/gthreadinit.h:
        * glib/gmessages.c:
        * glib/gthread.c:
        * glib/gmem.c: divided glib threading initialisation into three phases,
        initialisation where private keys and messaging are not available (only
        needed by gmem.c), initialisation without messaging but private keys
        available (gslice.c, gmessage.c), and full fledged initialisers that
        server the rest of glib. initialisation functions got renamed to reflect
        the limitations of their corresponding phases.

        * glib/gmem.c: removed memchunk code, defer allocations to
        g_slice_* instead.

        * glib/gmem.[hc]: removed g_slice_* skeletons.

        * glib/glib.symbols: added g_slice_* symbols.

        * configure.in: check for availability of posix_memalign(3), memalign(3)
        and valloc(3).

        * glib/Makefile.am: added gslice.[hc].

18 years agouse g_slic_* for all object allocations.
Tim Janik [Thu, 1 Dec 2005 16:33:51 +0000 (16:33 +0000)]
use g_slic_* for all object allocations.

Thu Dec  1 12:53:26 2005  Tim Janik  <timj@imendio.com>

        * gtype.c: use g_slic_* for all object allocations.

18 years agoexport g_hash_table_get_type
Tim Janik [Thu, 1 Dec 2005 16:32:11 +0000 (16:32 +0000)]
export g_hash_table_get_type

18 years agoUpdated Tagalog translation by Eric Pareja <xenos@upm.edu.ph>.
Christian Rose [Thu, 1 Dec 2005 10:43:58 +0000 (10:43 +0000)]
Updated Tagalog translation by Eric Pareja <xenos@upm.edu.ph>.

2005-12-01  Christian Rose  <menthos@menthos.com>

* tl.po: Updated Tagalog translation by
Eric Pareja <xenos@upm.edu.ph>.

18 years agoDon't call g_path_skip_root() unless the path is absolute.
Tor Lillqvist [Thu, 1 Dec 2005 04:32:52 +0000 (04:32 +0000)]
Don't call g_path_skip_root() unless the path is absolute.

2005-12-01  Tor Lillqvist  <tml@novell.com>

* glib/gstdio.c (g_stat): Don't call g_path_skip_root() unless
the path is absolute.

18 years agog_rename() doc comment update.
Tor Lillqvist [Thu, 1 Dec 2005 04:06:45 +0000 (04:06 +0000)]
g_rename() doc comment update.

18 years agoIn the Win32 implementation, strip trailing slash(es) for non-root
Tor Lillqvist [Thu, 1 Dec 2005 04:03:58 +0000 (04:03 +0000)]
In the Win32 implementation, strip trailing slash(es) for non-root

2005-12-01  Tor Lillqvist  <tml@novell.com>

* glib/gstdio.c (g_stat): In the Win32 implementation, strip
trailing slash(es) for non-root folders. stat() fails if non-root
folders are specified with trailing slashes. It's too much hassle
to demand that callers strip such slashes themselves, especially
as it is easy to get it wrong and strip the slash of a root
folder.
(g_rename): On NT-based Windows, use MoveFileEx() with
MOVEFILE_REPLACE_EXISTING to better match Unix behaviour.

18 years agoFix G_STMT_START / G_STMT_END on Solaris. (#321972, Andrew Paprocki)
Matthias Clasen [Wed, 30 Nov 2005 04:54:57 +0000 (04:54 +0000)]
Fix G_STMT_START / G_STMT_END on Solaris. (#321972, Andrew Paprocki)

2005-11-28  Matthias Clasen  <mclasen@redhat.com>

        Fix G_STMT_START / G_STMT_END on Solaris.  (#321972,
        Andrew Paprocki)

        * configure.in: Check whether do { } while (0) works.

        * glib/gmacros.h: Use do { } while (0) for G_STMT_START /
        G_STMT_END if it works.

18 years agoSilence compiler warnings.
Matthias Clasen [Mon, 28 Nov 2005 20:33:53 +0000 (20:33 +0000)]
Silence compiler warnings.

2005-11-28  Matthias Clasen  <mclasen@redhat.com>

* gobjectnotifyqueue.c (g_object_notify_queue_thaw):
* gobject-query.c (main): Silence compiler warnings.

* glib-genmarshal.c (main): Use G_N_ELEMENTS.

18 years agoSilence compiler warnings.
Matthias Clasen [Mon, 28 Nov 2005 18:34:16 +0000 (18:34 +0000)]
Silence compiler warnings.

2005-11-28  Matthias Clasen  <mclasen@redhat.com>

* gmodule.c (parse_libtool_archive): Silence
compiler warnings.

18 years agoSilence compiler warnings.
Matthias Clasen [Mon, 28 Nov 2005 18:31:03 +0000 (18:31 +0000)]
Silence compiler warnings.

2005-11-28  Matthias Clasen  <mclasen@redhat.com>

* glib/gthread.c (g_static_rw_lock_wait, g_static_rw_lock_signal):
* glib/gnode.c (g_node_depth_traverse_level):
* glib/gmem.c (g_allocator_new):
* glib/ghash.c (g_hash_table_unref, g_hash_table_destroy)
(g_hash_table_foreach_remove_or_steal): Silence compiler
warnings.

18 years agoDon't read beyond len. (#322520, Christian Persch)
Matthias Clasen [Sun, 27 Nov 2005 20:15:41 +0000 (20:15 +0000)]
Don't read beyond len. (#322520, Christian Persch)

2005-11-27  Matthias Clasen  <mclasen@redhat.com>

* glib/gunicollate.c (g_utf8_collate_key_for_filename):
Don't read beyond len.  (#322520, Christian Persch)

18 years agoDocument GObject API additions
Matthias Clasen [Sun, 27 Nov 2005 20:09:13 +0000 (20:09 +0000)]
Document GObject API additions

18 years agoDocument GObject api additions
Matthias Clasen [Sun, 27 Nov 2005 20:08:59 +0000 (20:08 +0000)]
Document GObject api additions

18 years agoTypo in comment.
Morten Welinder [Fri, 25 Nov 2005 23:20:22 +0000 (23:20 +0000)]
Typo in comment.

18 years agoaccess datalist flags via atomic pointer access funcitons, instead of
Tim Janik [Wed, 23 Nov 2005 17:54:57 +0000 (17:54 +0000)]
access datalist flags via atomic pointer access funcitons, instead of

Wed Nov 23 17:34:01 2005  Tim Janik  <timj@imendio.com>

        * glib/gdataset.c: access datalist flags via atomic pointer access
        funcitons, instead of acquiring the dataset lock. this is faster and
        also matches the atomic pointer readouts in gdatalistprivate.h and
        direct pointer modifications required by gobject.c.

18 years agoadded floating reference count. g_object_is_floating():
Tim Janik [Wed, 23 Nov 2005 17:54:41 +0000 (17:54 +0000)]
added floating reference count. g_object_is_floating():

Wed Nov 23 18:01:46 2005  Tim Janik  <timj@imendio.com>

        * gobject.[hc]: added floating reference count.
        g_object_is_floating():
        g_object_ref_sink(): new functions to deal with floating references.
        g_object_force_floating(): new funciton for object implementations
        to set the floating flag.

        * gobject.c (g_object_init): make objects initially floating.

Wed Nov 23 17:58:13 2005  Tim Janik  <timj@gtk.org>

        * gparam.[hc]: added g_param_spec_ref_sink().

18 years agostreamlined initialization code somewhat, removed GData node cache.
Tim Janik [Wed, 23 Nov 2005 12:37:20 +0000 (12:37 +0000)]
streamlined initialization code somewhat, removed GData node cache.

Wed Nov 23 13:35:31 2005  Tim Janik  <timj@gtk.org>

        * glib/gdataset.c: streamlined initialization code somewhat,
        removed GData node cache.

18 years agominor cleanups, implemented G_TYPE_HASH_TABLE.
Tim Janik [Wed, 23 Nov 2005 12:37:01 +0000 (12:37 +0000)]
minor cleanups, implemented G_TYPE_HASH_TABLE.

Wed Nov 23 13:36:02 2005  Tim Janik  <timj@gtk.org>

        * gboxed.[hc]: minor cleanups, implemented G_TYPE_HASH_TABLE.

18 years agoDocumentation improvements
Matthias Clasen [Wed, 23 Nov 2005 04:29:43 +0000 (04:29 +0000)]
Documentation improvements

18 years agoAvoid double locking in g_intern_string (#322133, Benedikt Meurer)
Matthias Clasen [Tue, 22 Nov 2005 15:34:09 +0000 (15:34 +0000)]
Avoid double locking in g_intern_string (#322133, Benedikt Meurer)

2005-11-22  Matthias Clasen  <mclasen@redhat.com>

Avoid double locking in g_intern_string (#322133,
Benedikt Meurer)

* glib/gdataset.c (g_quark_from_string_internal): New
internal function which factors out common parts of
g_quark_from[_static]_string.
(g_quark_from_string, g_quark_from_static_string):
Use g_quark_from_string_internal.
(g_intern_string, g_intern_static_string): Use
g_quark_from_string_internal, and only take the
lock once.
(g_quark_new): Don't store the strings shifted by -1
in the g_quarks array.
(g_quark_to_string): Adapt to the previous change.

18 years agog_hash_table_new_full(): create hash tables with a ref count of 1.
Tim Janik [Tue, 22 Nov 2005 13:16:58 +0000 (13:16 +0000)]
g_hash_table_new_full(): create hash tables with a ref count of 1.

Tue Nov 22 14:04:26 2005  Tim Janik  <timj@imendio.com>

        * glib/ghash.h:
        * glib/ghash.c:
        g_hash_table_new_full(): create hash tables with a ref count of 1.
        g_hash_table_ref(): atomically ref_count+=1
        g_hash_table_unref(): atomically ref_count-=1, destroys hash table
        when refcount reaches 0.
        g_hash_table_destroy(): just destroy keys and values, unref by 1.
        g_hash_table_insert():
        g_hash_table_replace(): assert ref_count>0.

        * glib/gatomic.h:
        * glib/gatomic.c: added 'volatile' qualifier to all atomic pointer and
        integer pointers.

18 years agoOops, copy-pasted Matthias's sig line!
Behdad Esfahbod [Mon, 21 Nov 2005 00:50:04 +0000 (00:50 +0000)]
Oops, copy-pasted Matthias's sig line!

2005-11-20  Behdad Esfahbod  <behdad@gnome.org>

        * glib/guniprop.c (g_unichar_get_mirror_char): Remove unused
        variables. (#321984, Andrew Paprocki)

18 years agoNew entries added.
Behdad Esfahbod [Mon, 21 Nov 2005 00:49:00 +0000 (00:49 +0000)]
New entries added.

18 years agoRemove unused variables. (#321984, Andrew Paprocki)
Matthias Clasen [Mon, 21 Nov 2005 00:47:54 +0000 (00:47 +0000)]
Remove unused variables. (#321984, Andrew Paprocki)

2005-11-18  Matthias Clasen  <mclasen@redhat.com>

        * glib/guniprop.c (g_unichar_get_mirror_char): Remove unused
        variables. (#321984, Andrew Paprocki)

18 years agoBump version
Matthias Clasen [Fri, 18 Nov 2005 14:01:59 +0000 (14:01 +0000)]
Bump version

18 years ago2.9.0 GLIB_2_9_0
Matthias Clasen [Fri, 18 Nov 2005 13:58:48 +0000 (13:58 +0000)]
2.9.0

18 years agoPrepare for 2.9.0
Matthias Clasen [Thu, 17 Nov 2005 21:33:07 +0000 (21:33 +0000)]
Prepare for 2.9.0

18 years agoUpdates
Matthias Clasen [Thu, 17 Nov 2005 19:05:59 +0000 (19:05 +0000)]
Updates

2005-11-17  Matthias Clasen  <mclasen@redhat.com>

* NEWS: Updates

* glib/gthread.c (g_thread_foreach): Mark as new api.

* README.in: Updates.

18 years agoAdd functions to set a date from a time_t and from a GTimeVal.
Matthias Clasen [Thu, 17 Nov 2005 17:51:59 +0000 (17:51 +0000)]
Add functions to set a date from a time_t and from a GTimeVal.

2005-11-17  Matthias Clasen  <mclasen@redhat.com>

* glib/glib.symbols:
* glib/gdate.h:
* glib/gdate.c (g_date_set_time_t):
(g_date_set_time_val): Add functions to set a date from
a time_t and from a GTimeVal.
(g_date_set_time): Deprecate.  (#314067, Roger Leigh)

18 years agoUnit tests for g_utf8_pointer_to_offset and g_utf8_offset_to_pointer.
Matthias Clasen [Thu, 17 Nov 2005 15:50:31 +0000 (15:50 +0000)]
Unit tests for g_utf8_pointer_to_offset and g_utf8_offset_to_pointer.

2005-11-17  Matthias Clasen  <mclasen@redhat.com>

* tests/Makefile.am:
* tests/utf8-pointer.c: Unit tests for g_utf8_pointer_to_offset
and g_utf8_offset_to_pointer.

* glib/gutf8.c (g_utf8_pointer_to_offset)
(g_utf8_offset_to_pointer): Handle negative offsets, and use
"stutter stepping" for going backwards. (#320638, Larry
Ewing)

18 years agoconst correctness fixes, found by Arjan van de Ven and gcc.
Matthias Clasen [Thu, 17 Nov 2005 13:17:22 +0000 (13:17 +0000)]
const correctness fixes, found by Arjan van de Ven and gcc.

2005-11-17  Matthias Clasen  <mclasen@redhat.com>

* glib/gbacktrace.c:
* glib/gdate.c:
* glib/gthread.c: const correctness fixes, found
by Arjan van de Ven and gcc.

18 years agoCorrect typo on mentioning @G_UNICODE_BREAK_UNKNOWN that should be
Behdad Esfahbod [Thu, 17 Nov 2005 03:39:47 +0000 (03:39 +0000)]
Correct typo on mentioning @G_UNICODE_BREAK_UNKNOWN that should be

2005-11-16  Behdad Esfahbod  <behdad@gnome.org>

        * docs/reference/glib/tmpl/unicode.sgml: Correct typo on mentioning
        @G_UNICODE_BREAK_UNKNOWN that should be #G_UNICODE_BREAK_UNKNOWN.

18 years agoUpdated Belarusian Translation
Ales Nyakhaychyk [Wed, 16 Nov 2005 10:53:05 +0000 (10:53 +0000)]
Updated Belarusian Translation

18 years agoUse bit hacks instead when checking a general category value against
Behdad Esfahbod [Thu, 10 Nov 2005 01:15:11 +0000 (01:15 +0000)]
Use bit hacks instead when checking a general category value against

2005-11-09  Behdad Esfahbod  <behdad@gnome.org>

        * glib/guniprop.c: Use bit hacks instead when checking a general
        category value against multiple values.

        * glib/gutf8.c: Change ISO10646 to Unicode in docs.

18 years agoAdded Tatar translation by Albert Fazlí
Simos Xenitellis [Thu, 10 Nov 2005 00:29:41 +0000 (00:29 +0000)]
Added Tatar translation by Albert Fazlí

18 years agoImprove GOnce docs
Matthias Clasen [Tue, 8 Nov 2005 14:30:29 +0000 (14:30 +0000)]
Improve GOnce docs

18 years agoDon't call g_warning(). (#320688) Instead set error and return failure.
Tor Lillqvist [Tue, 8 Nov 2005 08:46:57 +0000 (08:46 +0000)]
Don't call g_warning(). (#320688) Instead set error and return failure.

2005-11-05  Tor Lillqvist  <tml@novell.com>

* glib/giowin32.c (g_io_win32_set_flags): Don't call g_warning().
(#320688) Instead set error and return failure.

18 years agoDon't call cb_funcs->unref while holding the context lock. (#320886, Andy
Matthias Clasen [Mon, 7 Nov 2005 20:15:48 +0000 (20:15 +0000)]
Don't call cb_funcs->unref while holding the context lock. (#320886, Andy

2005-11-07  Matthias Clasen  <mclasen@redhat.com>

* glib/gmain.c (g_main_dispatch): Don't call cb_funcs->unref
while holding the context lock.  (#320886, Andy Wingo)

18 years agoAdd a missing reference to libglib in the LDADD for this test.
Billy Biggs [Mon, 7 Nov 2005 16:29:19 +0000 (16:29 +0000)]
Add a missing reference to libglib in the LDADD for this test.

2005-11-07  Billy Biggs <vektor@dumbterm.net>

* tests/refcount/Makefile.am: Add a missing reference to libglib
in the LDADD for this test.

18 years agoWe need to set n_preallocs to a nonzero value, otherwise GTK+ 2.8 breaks
Matthias Clasen [Mon, 7 Nov 2005 15:36:21 +0000 (15:36 +0000)]
We need to set n_preallocs to a nonzero value, otherwise GTK+ 2.8 breaks

2005-11-07  Matthias Clasen  <mclasen@redhat.com>

* glib/gmem.c (g_allocator_new): We need to set n_preallocs to a
nonzero value, otherwise GTK+ 2.8 breaks when compiled against
GLib 2.9.  (#320755, Luca Ferretti)

19 years agoForgotten file
Matthias Clasen [Sat, 5 Nov 2005 03:49:28 +0000 (03:49 +0000)]
Forgotten file

19 years agoApply a patch from Behdad Esfahbod to use a faster lookup table for
Matthias Clasen [Fri, 4 Nov 2005 22:27:04 +0000 (22:27 +0000)]
Apply a patch from Behdad Esfahbod to use a faster lookup table for

2005-11-04  Matthias Clasen  <mclasen@redhat.com>

* glib/Makefile.am: Apply a patch from Behdad Esfahbod to
use a faster lookup table for g_unichar_get_mirror_char().
* glib/gmirroringtable.h: The new table.
* glib/gunichartables.h: Remove bidi_mirroring_table.
* glib/gen-unicode-tables.pl: Don't generate the mirroring
table.
* glib/glib-mirroring-tab/*: Sources for the program
which generated gmirroringtable.h.

* glib/glist.c: Avoid some code duplication.

19 years agoAdd a generator for a mirroring table
Matthias Clasen [Fri, 4 Nov 2005 22:26:16 +0000 (22:26 +0000)]
Add a generator for a mirroring table

19 years agoExpand the docs. (#320466, Steffen Gutmann)
Matthias Clasen [Fri, 4 Nov 2005 20:33:34 +0000 (20:33 +0000)]
Expand the docs. (#320466, Steffen Gutmann)

2005-11-04  Matthias Clasen  <mclasen@redhat.com>

        * glib/gmain.c (g_child_watch_source_new): Expand
        the docs.  (#320466, Steffen Gutmann)

19 years agoInclude gdataset.h. (#320322)
Matthias Clasen [Fri, 4 Nov 2005 19:17:42 +0000 (19:17 +0000)]
Include gdataset.h. (#320322)

2005-11-04  Matthias Clasen  <mclasen@redhat.com>

        * glib/gscanner.h: Include gdataset.h.  (#320322)

19 years agoadd new GDebugFlag for fatal_criticals handle G_DEBUG=fatal_criticals, to
Matthias Clasen [Fri, 4 Nov 2005 19:05:30 +0000 (19:05 +0000)]
add new GDebugFlag for fatal_criticals handle G_DEBUG=fatal_criticals, to

2005-11-04  Matthias Clasen  <mclasen@redhat.com>

        * glib/gdebug.h: add new GDebugFlag for fatal_criticals
        * glib/gmessages.c: (_g_debug_init): handle G_DEBUG=fatal_criticals,
        to help find critical warnings in applications.  (#320017,
        Vincent Untz)

19 years agoUpdated Czech translation.
Miloslav Trmac [Wed, 2 Nov 2005 22:53:30 +0000 (22:53 +0000)]
Updated Czech translation.

2005-11-02  Miloslav Trmac  <mitr@volny.cz>

* cs.po: Updated Czech translation.

19 years agoRemove large amount of trailing whitespace from one line. Remove #ifdef
Tor Lillqvist [Tue, 1 Nov 2005 23:04:09 +0000 (23:04 +0000)]
Remove large amount of trailing whitespace from one line. Remove #ifdef

2005-11-02  Tor Lillqvist  <tml@novell.com>

* glib/glib.symbols: Remove large amount of trailing whitespace
from one line. Remove #ifdef G_UNDEFINED from around
g_hash_table_new and g_hash_table_new_full symbols, what was the
purpose of that? Add the g_slice functions.

19 years agoTranslation updated by Tino Meinen.
Vincent van Adrighem [Tue, 1 Nov 2005 20:16:05 +0000 (20:16 +0000)]
Translation updated by Tino Meinen.

2005-11-01  Vincent van Adrighem  <adrighem@gnome.org>

* nl.po: Translation updated by Tino Meinen.

19 years agoprepared deprecation of GMemChunk and GAllocator. added g_slice_*() API to
Tim Janik [Tue, 1 Nov 2005 18:10:31 +0000 (18:10 +0000)]
prepared deprecation of GMemChunk and GAllocator. added g_slice_*() API to

Tue Nov  1 16:24:20 2005  Tim Janik  <timj@imendio.com>

        * glib/gmem.[hc]: prepared deprecation of GMemChunk and GAllocator.
        added g_slice_*() API to allocate and cache small bits of memory.
        an actuall allocator implementation for g_slice_*() is still pending.

        * glib/gthread.[hc]: changes from a patch by Matthias Clasen.
        changed GRealThread list to use in-structure *next; fields instead
        of GSList, in order for thread iteration to not depenend on g_slice_*()
        indirectly.
        _g_thread_mem_private_get():
        _g_thread_mem_private_set(): added accessors for private memory,
        needed because the ordinary GPrivate implementation relies on GArray
        and GSList and therefore indirectly on working g_slice_*() allocations.

        * glib/gthread.[hc]:
        g_thread_foreach(): new public API function to loop over all existing threads.

        * glib/gdataset.c:
        * glib/gstring.c:
        * glib/gcache.c:
        * glib/garray.c:
        * glib/gqueue.c:
        * glib/gslist.c:
        * glib/glist.c:
        * glib/ghash.c:
        * glib/gtree.c:
        * glib/ghook.c:
        * glib/gmain.c:
        * glib/gnode.c:
        removed GAllocator and free list usages and accompanying locks.
        use g_slice_*() API to allocate and cache small bits of memory.

        * glib/ghook.h: removed GMemChunk field from public API.

        * glib/gslist.h:
        * glib/glist.h: deprecate allocator API, provide _free1() for consistency.

        * glib/gnode.h: deprecate allocator API.

        * glib/gmain.c: reordered GPollRec fields so g_slice_free_chain() can
        be used for poll rec lists.

        * glib/grel.c: removed mem chunk usage, and allocated tuples via g_slice_*().
        g_relation_destroy(): free all tuples from the all_tuples hash table,
        this effectively maintains the life time track keeping of tuples.
        g_relation_delete_tuple(): free tuples which are removed from the
        all_tuples hash table. this fixes a temporary leak that was present
        in the memchunk code until the destruction of the relation.

19 years agoAdd some tests for conversions between UTF-8, UCS-4 and UTF-16.
Matthias Clasen [Sun, 30 Oct 2005 03:05:21 +0000 (03:05 +0000)]
Add some tests for conversions between UTF-8, UCS-4 and UTF-16.

2005-10-29  Matthias Clasen  <mclasen@redhat.com>

* tests/convert-test.c: Add some tests for conversions between
UTF-8, UCS-4 and UTF-16.

* glib/gutf8.c (g_utf8_to_ucs4, g_utf8_to_utf16): Fix handling
of len == -1, noticed by Morten Welinder.

19 years agoAdded Kurdish translation
Erdal Ronahi [Thu, 27 Oct 2005 18:36:09 +0000 (18:36 +0000)]
Added Kurdish translation

19 years agoDocument g_value_set_instance(), (#319885, Milosz Derezynski)
Matthias Clasen [Thu, 27 Oct 2005 02:54:30 +0000 (02:54 +0000)]
Document g_value_set_instance(), (#319885, Milosz Derezynski)

2005-10-26  Matthias Clasen  <mclasen@redhat.com>

* gobject/gobject-sections.txt:
* gobject/tmpl/generic_values.sgml: Document g_value_set_instance(),
(#319885, Milosz Derezynski)

19 years agoUpdated Japanese translation and Fixed typos reported by
Takeshi AIHANA [Wed, 26 Oct 2005 14:21:31 +0000 (14:21 +0000)]
Updated Japanese translation and Fixed typos reported by

2005-10-26  Takeshi AIHANA <aihana@gnome.gr.jp>

        * ja.po: Updated Japanese translation and Fixed typos reported by kano@na.rim.or.jp.

19 years agoAdd a footnote about surrogate pairs. (#317683, Behdad Esfahbod)
Matthias Clasen [Wed, 26 Oct 2005 13:22:36 +0000 (13:22 +0000)]
Add a footnote about surrogate pairs. (#317683, Behdad Esfahbod)

2005-10-26  Matthias Clasen  <mclasen@redhat.com>

* glib/tmpl/unicode.sgml: Add a footnote about surrogate
pairs.  (#317683, Behdad Esfahbod)

19 years agoFix 319806
Matthias Clasen [Wed, 26 Oct 2005 13:10:55 +0000 (13:10 +0000)]
Fix 319806

19 years agoUpdated Simplified Chinese translation
Funda Wang [Tue, 25 Oct 2005 13:26:59 +0000 (13:26 +0000)]
Updated Simplified Chinese translation

19 years agoAdded Entry for Bengali (bn) Translation Updation:20/10
Runa Bhattacharjee [Thu, 20 Oct 2005 05:29:06 +0000 (05:29 +0000)]
Added Entry for Bengali (bn) Translation Updation:20/10

19 years agoUpdated Bengali(bn) Translation:20/10
Runa Bhattacharjee [Thu, 20 Oct 2005 05:28:18 +0000 (05:28 +0000)]
Updated Bengali(bn) Translation:20/10

19 years ago*** empty log message ***
Ignacio Casal Quinteiro [Wed, 19 Oct 2005 22:35:33 +0000 (22:35 +0000)]
*** empty log message ***

19 years agoUse AC_CHECK_FUNCS for _NSGetEnviron, to get the config.h symbol
Manish Singh [Wed, 19 Oct 2005 18:37:48 +0000 (18:37 +0000)]
Use AC_CHECK_FUNCS for _NSGetEnviron, to get the config.h symbol

2005-10-19  Manish Singh  <yosh@gimp.org>

        * configure.in: Use AC_CHECK_FUNCS for _NSGetEnviron, to get the
        config.h symbol automatically. Fixes bug #313731.

19 years agoReturn a g_strdup()ed copy of the value stored in the hash table, so that
Tor Lillqvist [Wed, 19 Oct 2005 15:38:44 +0000 (15:38 +0000)]
Return a g_strdup()ed copy of the value stored in the hash table, so that

2005-10-19  Tor Lillqvist  <tml@novell.com>

* glib/gwin32.c (g_win32_get_package_installation_directory):
Return a g_strdup()ed copy of the value stored in the hash table,
so that it can be g_free()d without leaving a dangling pointer in
the hash table. (#319232)

19 years agoTranslation updated by Ivar Smolin.
Priit Laes [Mon, 17 Oct 2005 12:34:36 +0000 (12:34 +0000)]
Translation updated by Ivar Smolin.

2005-10-17  Priit Laes  <plaes@cvs.gnome.org>

* et.po: Translation updated by Ivar Smolin.

19 years agoUpdated Traditional Chinese translation.
Chao-Hsiung Liao [Mon, 17 Oct 2005 06:29:04 +0000 (06:29 +0000)]
Updated Traditional Chinese translation.

2005-10-17 Chao-Hsiung Liao  <j_h_liau@yahoo.com.tw>

* zh_TW.po: Updated Traditional Chinese translation.

19 years agoUpdated Slovak translation.
Marcel Telka [Sun, 16 Oct 2005 17:31:43 +0000 (17:31 +0000)]
Updated Slovak translation.

2005-10-16  Marcel Telka  <marcel@telka.sk>

* sk.po: Updated Slovak translation.

19 years agoFix sorting of 0 sequences in filenames
Matthias Clasen [Fri, 7 Oct 2005 03:04:03 +0000 (03:04 +0000)]
Fix sorting of 0 sequences in filenames

19 years agoDocument gmodule-no-export-2.0
Matthias Clasen [Wed, 5 Oct 2005 20:45:50 +0000 (20:45 +0000)]
Document gmodule-no-export-2.0

2005-10-05  Matthias Clasen  <mclasen@redhat.com>

* glib/compiling.sgml: Document gmodule-no-export-2.0

19 years agoDoc addition
Matthias Clasen [Wed, 5 Oct 2005 20:11:25 +0000 (20:11 +0000)]
Doc addition

2005-10-05  Matthias Clasen  <mclasen@redhat.com>

* glib/gmarkup.c (g_markup_escape_text): Doc addition

19 years agoAdd Collation tests.
Matthias Clasen [Wed, 5 Oct 2005 17:37:46 +0000 (17:37 +0000)]
Add Collation tests.

2005-10-05  Matthias Clasen  <mclasen@redhat.com>

* Makefile.am: Add Collation tests.

* tests/collate/*: Inputs and expected outputs for collation tests.

* tests/run-collate-tests.sh: Script to run collation tests.

* tests/unicode-collate.c (main): Rework slightly to make
it usable in unit tests. Also test g_utf8_collate_key_for_filename().

19 years agoReally fix #314890.
Matthias Clasen [Mon, 3 Oct 2005 15:46:15 +0000 (15:46 +0000)]
Really fix #314890.

2005-10-03  Matthias Clasen  <mclasen@redhat.com>

* glib-mkenums.in: Really fix #314890.

19 years agoUpdated to Unicode 4.1. There are five new GUnicodeBreakType types. That
Behdad Esfahbod [Sat, 1 Oct 2005 12:34:21 +0000 (12:34 +0000)]
Updated to Unicode 4.1. There are five new GUnicodeBreakType types. That

2005-10-01  Behdad Esfahbod  <behdad@gnome.org>

        * docs/reference/glib/tmpl/unicode.sgml:
        * glib/gen-unicode-tables.pl:
        * glib/gunibreak.h:
        * glib/gunichartables.h:
        * glib/gunicode.h:
        * tests/casefold.txt:
        * tests/casemap.txt: Updated to Unicode 4.1.  There are five new
        GUnicodeBreakType types.  That may break some applications, like
        Pango <= 1.10.

19 years agoMinor documentation improvements for g_strchug, g_strchomp and g_strstrip.
Davyd Madeley [Sat, 1 Oct 2005 02:48:35 +0000 (02:48 +0000)]
Minor documentation improvements for g_strchug, g_strchomp and g_strstrip.

2005-10-01  Davyd Madeley  <davyd@fugro-fsi.com.au>

        * glib/tmpl/string_utils.sgml: Minor documentation improvements for           g_strchug, g_strchomp and g_strstrip. Brought forward from glib-2-8.

19 years agoUpdated Canadian English translation.
Adam Weinberger [Fri, 30 Sep 2005 20:30:33 +0000 (20:30 +0000)]
Updated Canadian English translation.

2005-09-30  Adam Weinberger  <adamw@gnome.org>

* en_CA.po: Updated Canadian English translation.

19 years agorevert last change, it breaks all users of G_IMPLEMENT_INTERFACE() inside
Michael Natterer [Tue, 27 Sep 2005 23:19:16 +0000 (23:19 +0000)]
revert last change, it breaks all users of G_IMPLEMENT_INTERFACE() inside

2005-09-28  Michael Natterer  <mitch@gimp.org>

* gtype.h (G_IMPLEMENT_INTERFACE): revert last change, it breaks
all users of G_IMPLEMENT_INTERFACE() inside
G_DEFINE_TYPE_WITH_CODE(), since apparently GCC doesn't like
commas enclosed in {}, not (), in nested macro calls.

19 years agoMoved the ChangeLog entry to the right ChangeLog
David Odin [Tue, 27 Sep 2005 19:01:53 +0000 (19:01 +0000)]
Moved the ChangeLog entry to the right ChangeLog

19 years agoinitialize all the fields of GInterfaceInfo in the G_IMPLEMENT_INTERFACE
David Odin [Mon, 26 Sep 2005 18:35:32 +0000 (18:35 +0000)]
initialize all the fields of GInterfaceInfo in the G_IMPLEMENT_INTERFACE

* gobject/gtype.h: initialize all the fields of GInterfaceInfo in the
  G_IMPLEMENT_INTERFACE macro, to shut up a warning when compiling at -W

19 years agoDon't hang on '{' following a trigraph comment in the same line. (#314890,
Matthias Clasen [Mon, 26 Sep 2005 15:19:24 +0000 (15:19 +0000)]
Don't hang on '{' following a trigraph comment in the same line. (#314890,

2005-09-26  Matthias Clasen  <mclasen@redhat.com>

* glib-mkenums.in: Don't hang on '{' following a trigraph comment
in the same line.  (#314890, Mathias Hasselmann)

19 years agoAdd details to the docs. (#314393, Matthew F. Barnes)
Matthias Clasen [Mon, 26 Sep 2005 14:44:01 +0000 (14:44 +0000)]
Add details to the docs. (#314393, Matthew F. Barnes)

2005-09-26  Matthias Clasen  <mclasen@redhat.com>

* glib/gstrfuncs.c (g_ascii_strtoull): Add details to the
docs.  (#314393, Matthew F. Barnes)