platform/upstream/glib.git
17 years agoMake g_slice_debug_tree_statistics() debug-only functionality again.
Matthias Clasen [Tue, 15 May 2007 03:32:29 +0000 (03:32 +0000)]
Make g_slice_debug_tree_statistics() debug-only functionality again.

2007-05-14  Matthias Clasen  <mclasen@redhat.com>

        * glib/gslice.h:
        * glib/gslice.c:
        * glib/glib.symbols: Make g_slice_debug_tree_statistics()
        debug-only functionality again.

svn path=/trunk/; revision=5492

17 years agoImprove g_strerror and g_strsignal docs. Bug #438293.
Christian Persch [Mon, 14 May 2007 17:14:11 +0000 (17:14 +0000)]
Improve g_strerror and g_strsignal docs. Bug #438293.

2007-05-14  Christian Persch  <chpe@gnome.org>

* docs/reference/glib/tmpl/string_utils.sgml: Improve g_strerror and
g_strsignal docs. Bug #438293.

svn path=/trunk/; revision=5491

17 years agoDrop the pipe() macro. Defining macros outside of its namespace that look
Tor Lillqvist [Sun, 13 May 2007 20:46:59 +0000 (20:46 +0000)]
Drop the pipe() macro. Defining macros outside of its namespace that look

2007-05-13  Tor Lillqvist  <tml@novell.com>

* glib/gwin32.h: Drop the pipe() macro. Defining macros outside of
its namespace that look like POSIX functions is not GLib's
business in my opinion. This means pipe()-using code that has
relied on this definition will need changing to call _pipe() on
Windows, and make the decision itself on what size pipe buffer to
use, and whether to use text or binary mode, and whether the pipe
handles should be inheritable or not.

* glib/gspawn-win32.c (make_pipe): Use _pipe() instead of pipe().

svn path=/trunk/; revision=5490

17 years agoOccitan translation update
Yannig MARCHEGAY [Sun, 13 May 2007 12:58:52 +0000 (12:58 +0000)]
Occitan translation update

svn path=/trunk/; revision=5489

17 years agoOccitan first translation
Yannig MARCHEGAY [Sun, 13 May 2007 12:53:51 +0000 (12:53 +0000)]
Occitan first translation

svn path=/trunk/; revision=5488

17 years agoAllow G_OPTION_ARG_CALLBACK for G_OPTION_REMAINING. (#437297, Dave Benson)
Matthias Clasen [Fri, 11 May 2007 18:53:57 +0000 (18:53 +0000)]
Allow G_OPTION_ARG_CALLBACK for G_OPTION_REMAINING. (#437297, Dave Benson)

2007-05-11  Matthias Clasen  <mclasen@redhat.com>

        * glib/goption.c: Allow G_OPTION_ARG_CALLBACK for
        G_OPTION_REMAINING.  (#437297, Dave Benson)

        * tests/option-test.c: Add a test for this.

svn path=/trunk/; revision=5487

17 years agoUpdated Norwegian bokmål translation.
Kjartan Maraas [Sun, 6 May 2007 18:04:10 +0000 (18:04 +0000)]
Updated Norwegian bokmål translation.

2007-05-06  Kjartan Maraas  <kmaraas@gnome.org>

* nb.po: Updated Norwegian bokmål translation.

svn path=/trunk/; revision=5486

17 years agoUpdated Belarusian Latin translation.
Ihar Hrachyshka [Sun, 6 May 2007 12:59:57 +0000 (12:59 +0000)]
Updated Belarusian Latin translation.

svn path=/trunk/; revision=5485

17 years agoDocument the error return values rather than calling them undefined.
Dan Winship [Fri, 4 May 2007 19:14:47 +0000 (19:14 +0000)]
Document the error return values rather than calling them undefined.

* glib/gkeyfile.c (g_key_file_get_boolean)
(g_key_file_get_boolean_list, g_key_file_get_integer)
(g_key_file_get_integer_list, g_key_file_get_double)
(g_key_file_get_double_list): Document the error return values
rather than calling them undefined. #435885.

svn path=/trunk/; revision=5484

17 years agoOops.
Behdad Esfahbod [Thu, 3 May 2007 23:42:41 +0000 (23:42 +0000)]
Oops.

2007-05-03  Behdad Esfahbod  <behdad@gnome.org>

        * glib/glib.symbols:
        * glib/gunicode.h:
        * glib/guniprop.c (g_unichar_ismark):
        Add g_unichar_ismark(). Patch from Yevgen Muntyan. Fixes #339991.

svn path=/trunk/; revision=5483

17 years agosvn path=/trunk/; revision=5482
Behdad Esfahbod [Thu, 3 May 2007 23:42:05 +0000 (23:42 +0000)]
svn path=/trunk/; revision=5482

2007-05-03  Behdad Esfahbod  <behdad@gnome.org>

        * configure.in:
        * glib/glib.symbols:
        * glib/gthread.h:
        * glib/gunicode.h:
        * glib/guniprop.c (g_unichar_ismark):

svn path=/trunk/; revision=5482

17 years agoUpdated Spanish translation
Jorge Gonzalez Gonzalez [Thu, 3 May 2007 19:02:43 +0000 (19:02 +0000)]
Updated Spanish translation

svn path=/trunk/; revision=5481

17 years agoBump version
Matthias Clasen [Thu, 3 May 2007 05:11:38 +0000 (05:11 +0000)]
Bump version

svn path=/trunk/; revision=5480

17 years ago2.13.1 GLIB_2_13_1
Matthias Clasen [Thu, 3 May 2007 05:09:20 +0000 (05:09 +0000)]
2.13.1

svn path=/trunk/; revision=5478

17 years agoStop unused threads before the last test, to make the test terminate
Matthias Clasen [Thu, 3 May 2007 04:48:10 +0000 (04:48 +0000)]
Stop unused threads before the last test, to make the test terminate

        * tests/threadpool-test.c: Stop unused threads before
        the last test, to make the test terminate reliably.

svn path=/trunk/; revision=5477

17 years agoUpdates
Matthias Clasen [Thu, 3 May 2007 02:45:02 +0000 (02:45 +0000)]
Updates

svn path=/trunk/; revision=5476

17 years agoUpdated Arabic Translation by Djihed Afifi.
Djihed Afifi [Wed, 2 May 2007 15:46:41 +0000 (15:46 +0000)]
Updated Arabic Translation by Djihed Afifi.

svn path=/trunk/; revision=5475

17 years agoMade more clear that the string passed to the match functions cannot be
Marco Barisione [Wed, 2 May 2007 10:39:23 +0000 (10:39 +0000)]
Made more clear that the string passed to the match functions cannot be

2007-05-02  Marco Barisione <marco@barisione.org>

* glib/gregex.c: Made more clear that the string passed to the match
functions cannot be freed before using g_match_info_fetch() and
similar functions, and fixed a typo.

svn path=/trunk/; revision=5474

17 years agoAdd g_regex_get_max_backref() and g_regex_get_capture_count(). (#419371,
Matthias Clasen [Mon, 30 Apr 2007 16:37:38 +0000 (16:37 +0000)]
Add g_regex_get_max_backref() and g_regex_get_capture_count(). (#419371,

2007-04-30  Matthias Clasen  <mclasen@redhat.com>

        * glib/glib.symbols:
        * glib/gregex.[hc]: Add g_regex_get_max_backref() and
        g_regex_get_capture_count().  (#419371, Marco Barisione)

svn path=/trunk/; revision=5469

17 years agoSplit GRegex into GRegex and GMatchInfo. (#419368, Marco Barisione)
Matthias Clasen [Mon, 30 Apr 2007 16:02:26 +0000 (16:02 +0000)]
Split GRegex into GRegex and GMatchInfo. (#419368, Marco Barisione)

2007-04-30  Matthias Clasen  <mclasen@redhat.com>

        * glib/glib.symbols:
        * glib/gregex.[hc]: Split GRegex into GRegex and GMatchInfo.
        (#419368, Marco Barisione)

        * tests/regex-test.c: Adapt.

svn path=/trunk/; revision=5468

17 years agoInclude the gshell.h header file (to define g_shell_[un]quote) and correct
Chris Wilson [Mon, 30 Apr 2007 11:30:47 +0000 (11:30 +0000)]
Include the gshell.h header file (to define g_shell_[un]quote) and correct

2007-04-30  Chris Wilson  <chris@chris-wilson.co.uk>

    * glib/gbookmarkfile.c (g_bookmark_file_get_app_info):
    Include the gshell.h header file (to define g_shell_[un]quote)
    and correct the order of the arguments to g_propagate_error(), as
    spotted by gcc.

svn path=/trunk/; revision=5467

17 years agoQuote the passed command line...
Emmanuele Bassi [Sun, 29 Apr 2007 11:48:40 +0000 (11:48 +0000)]
Quote the passed command line...

2007-04-29  Emmanuele Bassi  <ebassi@gnome.org>

* glib/gbookmarkfile.c:
(g_bookmark_file_set_app_info): Quote the passed command line...

(g_bookmark_file_get_app_info): ... and unquote it when giving it
back. (#432274)

svn path=/trunk/; revision=5466

17 years agosmall cleanup
Matthias Clasen [Fri, 27 Apr 2007 22:37:49 +0000 (22:37 +0000)]
small cleanup

svn path=/trunk/; revision=5465

17 years agoRemove trailing comma at end of enumerator list.
Chris Wilson [Fri, 27 Apr 2007 17:43:01 +0000 (17:43 +0000)]
Remove trailing comma at end of enumerator list.

2007-04-27  Chris Wilson  <chris@chris-wilson.co.uk>

    * glib/gregex.h: Remove trailing comma at end of enumerator list.

svn path=/trunk/; revision=5464

17 years agoDocument that the mode argument is ignored on Windows (g_stat): Document
Tor Lillqvist [Thu, 26 Apr 2007 23:24:06 +0000 (23:24 +0000)]
Document that the mode argument is ignored on Windows (g_stat): Document

2007-04-27  Tor Lillqvist  <tml@novell.com>

* glib/gstdio.c (g_mkdir): Document that the mode argument is
ignored on Windows
(g_stat): Document that st_mode is mostly useless on Windows.

svn path=/trunk/; revision=5463

17 years agotypo
Paolo Borelli [Wed, 25 Apr 2007 18:44:53 +0000 (18:44 +0000)]
typo

svn path=/trunk/; revision=5461

17 years agosmall cleanup. (#433387)
Paolo Borellki [Wed, 25 Apr 2007 18:43:44 +0000 (18:43 +0000)]
small cleanup. (#433387)

2007-04-25  Paolo Borellki  <pborelli@katamail.com>

* glib/gstrfuncs.c (g_strsplit): small cleanup. (#433387)

svn path=/trunk/; revision=5460

17 years agoalso clear the NOCOPY_CONTENTS flag when replacing NULL with the empty
Michael Natterer [Wed, 25 Apr 2007 08:48:46 +0000 (08:48 +0000)]
also clear the NOCOPY_CONTENTS flag when replacing NULL with the empty

2007-04-25  Michael Natterer  <mitch@imendio.com>

* gparamspecs.c (param_string_validate): also clear the
NOCOPY_CONTENTS flag when replacing NULL with the empty string.

svn path=/trunk/; revision=5458

17 years agoRevert an accidental commit
Matthias Clasen [Wed, 25 Apr 2007 04:21:16 +0000 (04:21 +0000)]
Revert an accidental commit

svn path=/trunk/; revision=5457

17 years agoNew function to get the formatted help string. (#336089, Dom Lachowicz)
Matthias Clasen [Wed, 25 Apr 2007 03:53:30 +0000 (03:53 +0000)]
New function to get the formatted help string. (#336089, Dom Lachowicz)

2007-04-24  Matthias Clasen  <mclasen@redhat.com>

        * glib/glib.symbols:
        * glib/goption.h:
        * glib/goption.c (g_option_context_get_help): New function to
        get the formatted help string.  (#336089, Dom Lachowicz)

svn path=/trunk/; revision=5456

17 years agodon't free or modify static strings, dup them when needed and clear the
Michael Natterer [Tue, 24 Apr 2007 13:36:58 +0000 (13:36 +0000)]
don't free or modify static strings, dup them when needed and clear the

2007-04-24  Michael Natterer  <mitch@imendio.com>

* gobject/gparamspecs.c (param_string_validate): don't free or
modify static strings, dup them when needed and clear the
G_VALUE_NOCOPY_CONTENTS flag. Fixes bug #432895.

* tests/gobject/paramspec-test.c: test all GParamSpecString
validations with static and allocated strings.

svn path=/trunk/; revision=5454

17 years agoAdd g_key_file_load_from_dirs for looking through a search path for a
William Jon McCann [Thu, 19 Apr 2007 20:48:22 +0000 (20:48 +0000)]
Add g_key_file_load_from_dirs for looking through a search path for a

2007-04-19  William Jon McCann  <mccann@jhu.edu>

* glib/gkeyfile.[ch]: (find_file_in_data_dirs),
(g_key_file_load_from_dirs), (g_key_file_load_from_data_dirs):
Add g_key_file_load_from_dirs for looking through a search
path for a key-file. (#355334)

svn path=/trunk/; revision=5453

17 years agoMakefile.am Add the references to build back.
Tor Lillqvist [Sun, 15 Apr 2007 11:44:41 +0000 (11:44 +0000)]
Makefile.am Add the references to build back.

2007-04-15  Tor Lillqvist  <tml@novell.com>

* Makefile.am
* configure: Add the references to build back.

svn path=/trunk/; revision=5451

17 years agoInclude the build module using the svn:externals mechanism.
Tor Lillqvist [Sun, 15 Apr 2007 11:30:43 +0000 (11:30 +0000)]
Include the build module using the svn:externals mechanism.

2007-04-15  Tor Lillqvist  <tml@novell.com>

* build: Include the build module using the svn:externals
mechanism.

svn path=/trunk/; revision=5450

17 years agoUpdated Simplified Chinese translation from Yang Zhang.
Funda Wang [Sun, 15 Apr 2007 09:42:59 +0000 (09:42 +0000)]
Updated Simplified Chinese translation from Yang Zhang.

svn path=/trunk/; revision=5449

17 years agoFix a doc typo. (#427285, Jochen Baier)
Matthias Clasen [Wed, 11 Apr 2007 13:54:45 +0000 (13:54 +0000)]
Fix a doc typo. (#427285, Jochen Baier)

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

        * glib/gspawn.c (g_spawn_async): Fix a doc typo.  (#427285,
        Jochen Baier)

svn path=/trunk/; revision=5446

17 years agoAdd new hash functions.
Emmanuele Bassi [Wed, 11 Apr 2007 13:09:55 +0000 (13:09 +0000)]
Add new hash functions.

2007-04-11  Emmanuele Bassi  <ebassi@gnome.org>

* glib/glib-sections.txt: Add new hash functions.

svn path=/trunk/; revision=5445

17 years agoAdd g_hash_table_get_keys() and g_hash_table_get_values(), API to retrieve
Emmanuele Bassi [Wed, 11 Apr 2007 13:09:38 +0000 (13:09 +0000)]
Add g_hash_table_get_keys() and g_hash_table_get_values(), API to retrieve

2007-04-11  Emmanuele Bassi  <ebassi@gnome.org>

* glib/ghash.[ch]: Add g_hash_table_get_keys() and
g_hash_table_get_values(), API to retrieve the keys
and values inside an hash table in list form. (#413133)

* glib/glib.symbols: Update symbols.

* tests/hash-test.c: Exercise newly added functions.

svn path=/trunk/; revision=5444

17 years agoUse CFLAGS/LDFLAGS in addition to PCRE_CFLAGS/PCRE_LIBS when checking
Matthias Clasen [Wed, 11 Apr 2007 12:39:05 +0000 (12:39 +0000)]
Use CFLAGS/LDFLAGS in addition to PCRE_CFLAGS/PCRE_LIBS when checking

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

        * configure.in: Use CFLAGS/LDFLAGS in addition to
        PCRE_CFLAGS/PCRE_LIBS when checking system PCRE.  (#421607,
        Paul Jarc)

svn path=/trunk/; revision=5443

17 years agoinvoke GObjectClass.constructed() only for newly constructed objects, and
Ryan Lortie [Tue, 3 Apr 2007 10:44:30 +0000 (10:44 +0000)]
invoke GObjectClass.constructed() only for newly constructed objects, and

Tue Apr  3 12:34:14 2007  Tim Janik  <timj@gtk.org>

        * gobject.[hc]: invoke GObjectClass.constructed() only for newly
        constructed objects, and invoke it while the notify queue is
        still being frozen, after all CONSTRUCT* properties have been
        set and before random other properties are being set.

        * applied modified patch from Ryan Lortie to implement
        GObjectClass.constructed() to fix #425324.

2007-04-02  Ryan Lortie  <desrt@desrt.ca>

        * gobject/gobject.h: Add 'constructed' vcall to GObjectClass.
        * gobject/gobject.c (g_object_newv): call ->constructed() as last
        step of object construction.

svn path=/trunk/; revision=5441

17 years agoDocument ->constructed().
Ryan Lortie [Tue, 3 Apr 2007 10:44:14 +0000 (10:44 +0000)]
Document ->constructed().

2007-04-02  Ryan Lortie  <desrt@desrt.ca>

        * gobject/tmpl/objects.sgml: Document ->constructed().

svn path=/trunk/; revision=5440

17 years agoRemove old comment and forward declaration of struct tm: gdate.h includes
Emmanuele Bassi [Tue, 27 Mar 2007 15:16:18 +0000 (15:16 +0000)]
Remove old comment and forward declaration of struct tm: gdate.h includes

2007-03-27  Emmanuele Bassi  <ebassi@gnome.org>

* glib/gdate.h: Remove old comment and forward declaration of
struct tm: gdate.h includes time.h now.

svn path=/trunk/; revision=5438

17 years agoHandle missing $RANDOM
Matthias Clasen [Fri, 23 Mar 2007 06:27:58 +0000 (06:27 +0000)]
Handle missing $RANDOM

svn path=/trunk/; revision=5435

17 years agoFix corner-cases of upper/lowercase conversion. (#418217, Denis Jacquerye)
Matthias Clasen [Fri, 23 Mar 2007 00:17:10 +0000 (00:17 +0000)]
Fix corner-cases of upper/lowercase conversion. (#418217, Denis Jacquerye)

2007-03-22  Matthias Clasen  <mclasen@redhat.com>

        * glib/guniprop.c: Fix corner-cases of upper/lowercase conversion.
        (#418217, Denis Jacquerye)

svn path=/trunk/; revision=5433

17 years agoTrack whether the last key=value pair in a group is a blank line and
Chris Wilson [Thu, 22 Mar 2007 08:58:59 +0000 (08:58 +0000)]
Track whether the last key=value pair in a group is a blank line and

2007-03-22  Chris Wilson  <chris@chris-wilson.co.uk>

* glib/gkeyfile.c: Track whether the last key=value pair in a group
is a blank line and during to_data() only insert a new blank line
betweens group in its absence. This allows the beautification of the
GKeyFile and prevents newlines being inserted indefinitely. (#420686)

* tests/keyfile-test.c (test_reload_idempotency): Test that after a
single beautification pass, g_key_file_to_data() does not alter its
input data.

svn path=/trunk/; revision=5431

17 years agoFix #419900
Matthias Clasen [Wed, 21 Mar 2007 16:49:35 +0000 (16:49 +0000)]
Fix #419900

svn path=/trunk/; revision=5430

17 years agoCleanups
Matthias Clasen [Mon, 19 Mar 2007 03:47:05 +0000 (03:47 +0000)]
Cleanups

svn path=/trunk/; revision=5428

17 years agoremove unneeded checks.
Paolo Borelli [Sun, 18 Mar 2007 23:20:35 +0000 (23:20 +0000)]
remove unneeded checks.

2007-03-19  Paolo Borelli  <pborelli@katamail.com>

* glib/gutf8.c (fast_validate_len): remove unneeded checks.

svn path=/trunk/; revision=5427

17 years agoCosmetic fixes
Matthias Clasen [Sun, 18 Mar 2007 05:18:12 +0000 (05:18 +0000)]
Cosmetic fixes

svn path=/trunk/; revision=5426

17 years agoAdd forgotten files
Marco Barisione [Sat, 17 Mar 2007 14:25:14 +0000 (14:25 +0000)]
Add forgotten files

2007-03-17  Marco Barisione <marco@barisione.org>

* glib/update-pcre/table-reduction.patch:
* glib/update-pcre/make_utt.py:
* glib/update-pcre/utt.patch: Add forgotten files

* glib/update-pcre/update.sh: Call python directly instead of relying
on shebang. Also copy the changes from glib/pcre/makefile.msc to this
file

svn path=/trunk/; revision=5425

17 years agoRemoved a conflict delimiter (">>>>>>> .r5422")
Marco Barisione [Sat, 17 Mar 2007 14:01:24 +0000 (14:01 +0000)]
Removed a conflict delimiter (">>>>>>> .r5422")

svn path=/trunk/; revision=5424

17 years agodefine PCRE_STATIC to reflect the inclusion of pcre as LIB, not
Hans Breuer [Sat, 17 Mar 2007 09:49:09 +0000 (09:49 +0000)]
define PCRE_STATIC to reflect the inclusion of pcre as LIB, not

2007-03-17  Hans Breuer  <hans@breuer.org>

* glib/makefile.msc.in glib/pcre/makefile.msc
  glib/update-pcre/update.sh : define PCRE_STATIC to reflect the
inclusion of pcre as LIB, not stand-alone DLL. Also set NEWLINE=-1
to match any newline by default, use of ../../build/win32/make.msc

* glib/gregex.h : minimal includes of <glib/*.H> instead of <glib.h>

* glib/gnulib/makefile.msc : make use of ../../build/win32/make.msc

* tests/regex-test.c(verbose): don't pass a string containing '%'
as first parameter to g_print ()
(test_match) : for the unexpected case output pattern and string
escaped

* tests/child-test.c tests/slice-color.c : fix c99ism
* tests/slice-test.c : fix c99ism and gccism
* tests/mapping-test.c tests/base-64-tests.c : don't
#include <unistd.h> unconditionally
* tests/option-test.c : use G_GINT64_CONSTANT() instead of direct LL

* tests/makefile.msc.in : more tests build

svn path=/trunk/; revision=5423

17 years agoDon't export the consistency check function
Matthias Clasen [Sat, 17 Mar 2007 04:25:40 +0000 (04:25 +0000)]
Don't export the consistency check function

svn path=/trunk/; revision=5422

17 years agoBump version
Matthias Clasen [Fri, 16 Mar 2007 22:15:03 +0000 (22:15 +0000)]
Bump version

svn path=/trunk/; revision=5421

17 years ago2.13.0 GLIB_2_13_0
Matthias Clasen [Fri, 16 Mar 2007 22:11:15 +0000 (22:11 +0000)]
2.13.0

svn path=/trunk/; revision=5419

17 years agoWarn if the input is too short. (#418862, Halton Huo)
Matthias Clasen [Fri, 16 Mar 2007 19:50:14 +0000 (19:50 +0000)]
Warn if the input is too short. (#418862, Halton Huo)

2007-03-16  Matthias Clasen  <mclasen@redhat.com>

        * glib/gbase64.c (g_base64_decode): Warn if the input
        is too short.  (#418862, Halton Huo)

svn path=/trunk/; revision=5417

17 years agosome fixups, mention that changing scanner config during the parsing phase
Tim Janik [Fri, 16 Mar 2007 15:02:14 +0000 (15:02 +0000)]
some fixups, mention that changing scanner config during the parsing phase

Fri Mar 16 16:04:42 2007  Tim Janik  <timj@gtk.org>

        * glib/tmpl/scanner.sgml: some fixups, mention that changing scanner
        config during the parsing phase is supported behavior.

svn path=/trunk/; revision=5416

17 years agoreverted premature commit which broke GScanner ABI and API, #415323.
Tim Janik [Fri, 16 Mar 2007 10:28:13 +0000 (10:28 +0000)]
reverted premature commit which broke GScanner ABI and API, #415323.

Fri Mar 16 11:24:51 2007  Tim Janik  <timj@imendio.com>

        * glib/gscanner.[hc]: reverted premature commit which broke
        GScanner ABI and API, #415323.

svn path=/trunk/; revision=5415

17 years agoConvert to GSlice and check for redundant clears. (#418637)
Chris Wilson [Fri, 16 Mar 2007 01:16:56 +0000 (01:16 +0000)]
Convert to GSlice and check for redundant clears. (#418637)

2007-03-16  Chris Wilson  <chris@chris-wilson.co.uk>

* glib/gkeyfile.c: Convert to GSlice and check for redundant
clears. (#418637)

svn path=/trunk/; revision=5413

17 years agoFix a typo in the last commit. (#415323, Richard Hult)
Matthias Clasen [Thu, 15 Mar 2007 20:41:12 +0000 (20:41 +0000)]
Fix a typo in the last commit. (#415323, Richard Hult)

2007-03-15  Matthias Clasen  <mclasen@redhat.com>

        * glib/gscanner.c (g_scanner_get_token_ll): Fix a typo
        in the last commit.  (#415323, Richard Hult)

svn path=/trunk/; revision=5412

17 years agofix typo
Matthias Clasen [Thu, 15 Mar 2007 18:18:08 +0000 (18:18 +0000)]
fix typo

svn path=/trunk/; revision=5411

17 years agoAdd -I$(top_srcdir)/glib so that gregex.h finds <glib.h>.
Tor Lillqvist [Thu, 15 Mar 2007 15:17:17 +0000 (15:17 +0000)]
Add -I$(top_srcdir)/glib so that gregex.h finds <glib.h>.

2007-03-15  Tor Lillqvist  <tml@novell.com>

* glib/gnulib/Makefile.am (INCLUDES): Add -I$(top_srcdir)/glib so
that gregex.h finds <glib.h>.

* glib/update-pcre/Makefille.am-1: Add -DGLIB_COMPILATION so that
we don't think g_ascii_table is dllimport.

* glib/pcre/Makefile.am: Corresponding change.

* glib/update-pcre/notdll.patch: New file. Drop
dllimport/dllexport magic for the pcre symbols.

* glib/update-pcre/Makefile.am: Dist it.

* glib/update-pcre/update.sh: Apply notdll.patch.

* glib/pcre/pcre.h: Corresponding change.

2007-03-15  Tor Lillqvist  <tml@novell.com>

* glib/gtypes.h: Add comment to avoid misleading people with the
large number of digits in G_PI etc. (#404338)

svn path=/trunk/; revision=5410

17 years agoUpdate to match what configure produces.
Tor Lillqvist [Thu, 15 Mar 2007 14:41:24 +0000 (14:41 +0000)]
Update to match what configure produces.

2007-03-15  Tor Lillqvist  <tml@novell.com>

* config.h.win32.in: Update to match what configure produces.

svn path=/trunk/; revision=5409

17 years agoAdd GRegex for regular expression matching. (#50075)
Marco Barisione [Thu, 15 Mar 2007 13:01:31 +0000 (13:01 +0000)]
Add GRegex for regular expression matching. (#50075)

2007-03-15  Marco Barisione <marco@barisione.org>

Add GRegex for regular expression matching.  (#50075)

* configure.in: Handle GRegex compilation.

* glib/gregex.c:
* glib/gregex.h: Code for GRegex.

* glib/Makefile.am:
* glib/makefile.msc.in: Updated makefiles.

* glib/pcre/*: Internal copy of PCRE.

* glib/update-pcre/*: Stuff to automatically update the internal PCRE
to a newer version.

* tests/regex-test.c:
* tests/Makefile.am:
* tests/makefile.msc.in: Add tests for GRegex.

svn path=/trunk/; revision=5408

17 years agoReplace a g_slist_prepend/g_slist_remove pair with an on-stack link and
Chris Wilson [Thu, 15 Mar 2007 08:47:28 +0000 (08:47 +0000)]
Replace a g_slist_prepend/g_slist_remove pair with an on-stack link and

2007-03-15  Chris Wilson  <chris@chris-wilson.co.uk>

* glib/gmain.c (g_main_dispatch): Replace a
g_slist_prepend/g_slist_remove pair with an on-stack link
and open coding. (#416094)

svn path=/trunk/; revision=5407

17 years agoUse g_slice. (#404430, Chris Wilson)
Matthias Clasen [Thu, 15 Mar 2007 05:01:20 +0000 (05:01 +0000)]
Use g_slice. (#404430, Chris Wilson)

2007-03-15  Matthias Clasen  <mclasen@redhat.com>

        * gvaluearray.c: Use  g_slice.  (#404430, Chris Wilson)

svn path=/trunk/; revision=5406

17 years agoSome optimizations, use a lookup table for character classes, pre-allocate
Matthias Clasen [Thu, 15 Mar 2007 04:54:03 +0000 (04:54 +0000)]
Some optimizations, use a lookup table for character classes, pre-allocate

2007-03-15  Matthias Clasen  <mclasen@redhat.com>

        * glib/gscanner.[hc]: Some optimizations, use a lookup
        table for character classes, pre-allocate GStrings with
        reasonable sizes.  (#415323, Charlie Brej)

svn path=/trunk/; revision=5405

17 years agoFix a small typo. (#417947, Bobby Jack)
Matthias Clasen [Thu, 15 Mar 2007 03:08:08 +0000 (03:08 +0000)]
Fix a small typo. (#417947, Bobby Jack)

2007-03-14  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c (g_key_file_get_double): Fix a
        small typo.  (#417947, Bobby Jack)

svn path=/trunk/; revision=5404

17 years agoReadd docs for G_PARAM_STATIC_NICK and add docs for new
Stefan Kost [Wed, 14 Mar 2007 19:09:49 +0000 (19:09 +0000)]
Readd docs for G_PARAM_STATIC_NICK and add docs for new

* gobject/tmpl/gparamspec.sgml:
Readd docs for G_PARAM_STATIC_NICK and add docs for new
G_PARAM_STATIC_STRINGS (fixes #418021).

svn path=/trunk/; revision=5403

17 years agoAdd G_PARAM_STATIC_STRINGS define (fixes #418021).
Stefan Kost [Wed, 14 Mar 2007 19:09:33 +0000 (19:09 +0000)]
Add G_PARAM_STATIC_STRINGS define (fixes #418021).

* gparam.h:
Add G_PARAM_STATIC_STRINGS define (fixes #418021).

svn path=/trunk/; revision=5402

17 years agomarked purely functional g_type accessors as PURE or CONST, closes
Tim Janik [Mon, 12 Mar 2007 12:28:56 +0000 (12:28 +0000)]
marked purely functional g_type accessors as PURE or CONST, closes

Mon Mar 12 13:30:20 2007  Tim Janik  <timj@gtk.org>

        * gtype.h: marked purely functional g_type accessors as PURE or CONST,
        closes #305100.

svn path=/trunk/; revision=5400

17 years agoUpdated Serbian translation
Goran Rakic [Sun, 11 Mar 2007 18:11:04 +0000 (18:11 +0000)]
Updated Serbian translation

svn path=/trunk/; revision=5398

17 years agoUpdated Romanian translation by Mişu Moldovan <dumol@gnome.ro>
Mugurel Tudor [Sat, 10 Mar 2007 23:00:17 +0000 (23:00 +0000)]
Updated Romanian translation by Mişu Moldovan <dumol@gnome.ro>

2007-03-11  Mugurel Tudor  <mugurelu@gnome.ro>

* ro.po: Updated Romanian translation by
Mişu Moldovan <dumol@gnome.ro>

svn path=/trunk/; revision=5395

17 years agoReturn negative values. (#416062)
Matthias Clasen [Fri, 9 Mar 2007 03:40:43 +0000 (03:40 +0000)]
Return negative values. (#416062)

2007-03-08  Matthias Clasen  <mclasen@redhat.com>

        * glib/gstrfuncs.c (g_strtoll): Return negative values.
        (#416062)

        * tests/strtoll-test.c: Add more testcases.

svn path=/trunk/; revision=5390

17 years agoUpdated Bulgarian translation by Alexander Shopov <ash@contact.bg>
Alexander Shopov [Thu, 8 Mar 2007 06:50:42 +0000 (06:50 +0000)]
Updated Bulgarian translation by Alexander Shopov <ash@contact.bg>

2007-03-08  Alexander Shopov  <ash@contact.bg>

* bg.po: Updated Bulgarian translation by
Alexander Shopov <ash@contact.bg>

svn path=/trunk/; revision=5387

17 years agoDocument errorchecking mutexes
Matthias Clasen [Tue, 6 Mar 2007 19:44:19 +0000 (19:44 +0000)]
Document errorchecking mutexes

svn path=/trunk/; revision=5381

17 years agoFix a typo in the docs for g_node_first_child(). (#409395, Vincent Untz)
Matthias Clasen [Tue, 6 Mar 2007 19:29:54 +0000 (19:29 +0000)]
Fix a typo in the docs for g_node_first_child(). (#409395, Vincent Untz)

2007-03-06  Matthias Clasen  <mclasen@redhat.com>

        * glib/tmpl/trees-nary.sgml: Fix a typo in the docs for
        g_node_first_child().  (#409395, Vincent Untz)

svn path=/trunk/; revision=5380

17 years agoClarify docs. (#364026, Bastian Nocera)
Matthias Clasen [Tue, 6 Mar 2007 19:27:20 +0000 (19:27 +0000)]
Clarify docs. (#364026, Bastian Nocera)

2007-03-06  Matthias Clasen  <mclasen@redhat.com>

        * glib/gstring.c (g_str_equal): Clarify docs.  (#364026,
        Bastian Nocera)

svn path=/trunk/; revision=5379

17 years agoAdd G_QUEUE_INIT, g_queue_init(), and g_queue_clear() to better support
Matthew Barnes [Tue, 6 Mar 2007 18:43:10 +0000 (18:43 +0000)]
Add G_QUEUE_INIT, g_queue_init(), and g_queue_clear() to better support

2007-03-06  Matthew Barnes  <mbarnes@redhat.com>

* glib/gqueue.h:
* glib/gqueue.c: Add G_QUEUE_INIT, g_queue_init(), and
g_queue_clear() to better support statically allocated
queues.  (#413244)

svn path=/trunk/; revision=5378

17 years ago2007-03-06 Jovan Naumovski <jovanna@svn.gnome.org> *mk.po: Updated Macedonian transla...
Jovan Naumovski [Tue, 6 Mar 2007 10:20:48 +0000 (10:20 +0000)]
2007-03-06 Jovan Naumovski <jovanna@svn.gnome.org> *mk.po: Updated Macedonian translation.

svn path=/trunk/; revision=5376

17 years agoRemove a NULL check that didn't do any good. (#360904, Paolo Borelli)
Matthias Clasen [Tue, 6 Mar 2007 07:22:04 +0000 (07:22 +0000)]
Remove a NULL check that didn't do any good. (#360904, Paolo Borelli)

2007-03-06  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c (g_key_file_parse_value_as_boolean):
        Remove a NULL check that didn't do any good.  (#360904,
        Paolo Borelli)

svn path=/trunk/; revision=5375

17 years agoReport more accurate position for invalid UTF-8. (#350802, Simon Budig)
Matthias Clasen [Tue, 6 Mar 2007 07:12:50 +0000 (07:12 +0000)]
Report more accurate position for invalid UTF-8. (#350802, Simon Budig)

2007-03-06  Matthias Clasen  <mclasen@redhat.com>

        * glib/gmarkup.c (g_markup_parse_context_parse): Report
        more accurate position for invalid UTF-8.  (#350802,
        Simon Budig)

svn path=/trunk/; revision=5373

17 years agoAdd NULL checks to the base64 functions that take pointers. (#399611,
Matthias Clasen [Tue, 6 Mar 2007 05:36:57 +0000 (05:36 +0000)]
Add NULL checks to the base64 functions that take pointers. (#399611,

2007-03-06  Matthias Clasen  <mclasen@redhat.com>

        * glib/gbase64.c: Add NULL checks to the base64
        functions that take pointers.  (#399611, Martyn Russell)

svn path=/trunk/; revision=5371

17 years agoWork with Solaris gettext (#341988, Laszlo Peter)
Matthias Clasen [Tue, 6 Mar 2007 05:23:26 +0000 (05:23 +0000)]
Work with Solaris gettext (#341988, Laszlo Peter)

2007-03-06  Matthias Clasen  <mclasen@redhat.com>

        Work with Solaris gettext (#341988, Laszlo Peter)

        * m4macros/glib-gettext.m4: Make GLIB_WITH_NLS define
        MSGFMT_OPTS if msgfmt supports -c.

        * po/Makefile.in.in: Use MSGFMT_OPTS when calling
        msgfmt.

svn path=/trunk/; revision=5369

17 years agoApply a patch by Loïc Minier to fix building with -Wl,-z,defs. (#149144)
Matthias Clasen [Tue, 6 Mar 2007 05:01:45 +0000 (05:01 +0000)]
Apply a patch by Loïc Minier to fix building with -Wl,-z,defs. (#149144)

2007-03-06  Matthias Clasen  <mclasen@Redhat.com>

        * tests/Makefile.am: Apply a patch by Loïc Minier
        to fix building with -Wl,-z,defs.  (#149144)

svn path=/trunk/; revision=5367

17 years agoAdded Malagasy translation. Added Malagasy 'mg' to ALL_LINGUAS
Thierry Randrianiriana [Sun, 4 Mar 2007 05:36:20 +0000 (05:36 +0000)]
Added Malagasy translation. Added Malagasy 'mg' to ALL_LINGUAS

 * po/mg.po: Added Malagasy translation.
 * configure.in: Added Malagasy 'mg' to ALL_LINGUAS

svn path=/trunk/; revision=5362

17 years agoAdded Belarusian Latin transtaion.
Ihar Hrachyshka [Thu, 1 Mar 2007 19:31:16 +0000 (19:31 +0000)]
Added Belarusian Latin transtaion.

svn path=/trunk/; revision=5353

17 years agoUpdated traditional Chinese translation
Kwok-Koon Cheung [Tue, 27 Feb 2007 18:08:46 +0000 (18:08 +0000)]
Updated traditional Chinese translation

svn path=/trunk/; revision=5352

17 years agoUpdated Lithuanian translation.
Gintautas Miliauskas [Tue, 27 Feb 2007 14:40:51 +0000 (14:40 +0000)]
Updated Lithuanian translation.

2007-02-27  Gintautas Miliauskas  <gintas@akl.lt>

* lt.po: Updated Lithuanian translation.

svn path=/trunk/; revision=5349

17 years agoUpdated Lithuanian translation.
Gintautas Miliauskas [Wed, 21 Feb 2007 23:54:36 +0000 (23:54 +0000)]
Updated Lithuanian translation.

2007-02-22  Gintautas Miliauskas  <gintas@akl.lt>

* lt.po: Updated Lithuanian translation.

svn path=/trunk/; revision=5347

17 years agoUpdated Norwegian bokmål translation.
Kjartan Maraas [Sat, 17 Feb 2007 14:56:07 +0000 (14:56 +0000)]
Updated Norwegian bokmål translation.

2007-02-17  Kjartan Maraas  <kmaraas@gnome.org>

* nb.po: Updated Norwegian bokmål translation.

svn path=/trunk/; revision=5341

17 years agoNew Win32-only function. Use the wide character Win32 API to do the work
Tor Lillqvist [Sat, 17 Feb 2007 08:51:12 +0000 (08:51 +0000)]
New Win32-only function. Use the wide character Win32 API to do the work

2007-02-17  Tor Lillqvist  <tml@novell.com>

* glib/gdate.c (win32_strftime_helper): New Win32-only
function. Use the wide character Win32 API to do the work of
strftime(): GetThreadLocale(), GetLocaleInfoW(), GetDateFormatW()
and GetTimeFormatW().
(g_date_strftime): On Windows use win32_strftime_helper()
instead of strftime() to avoid codepage issues with strftime().
Unfortunately using wcsftime() would not help either. (#404832)

svn path=/trunk/; revision=5339

17 years agoFor move, test moving between two sequences. Add test for swap.
Soren Sandmann [Fri, 16 Feb 2007 06:00:08 +0000 (06:00 +0000)]
For move, test moving between two sequences. Add test for swap.

2007-02-16  Soren Sandmann <sandmann@redhat.com>

* tests/sequence-test.c: For move, test moving between two
sequences. Add test for swap.

* glib/gsequence.c: Replace splay tree with a treap.
(check_node): Add checks for the treap invariants.

svn path=/trunk/; revision=5337

17 years agoAdd comment about dup(0) and lack of /dev/stdin on Win32. (#407431)
Tor Lillqvist [Tue, 13 Feb 2007 20:19:09 +0000 (20:19 +0000)]
Add comment about dup(0) and lack of /dev/stdin on Win32. (#407431)

2007-01-02  Tor Lillqvist  <tml@novell.com>

* glib-genmarshal.c (main): Add comment about dup(0) and
lack of /dev/stdin on Win32. (#407431)

svn path=/trunk/; revision=5335

17 years agoFormat XML to be more editable. Describe Interfaces better. Add a footnote
Stefan Kost [Sat, 10 Feb 2007 22:08:42 +0000 (22:08 +0000)]
Format XML to be more editable. Describe Interfaces better. Add a footnote

* gobject/tut_gobject.xml:
* gobject/tut_gsignal.xml:
* gobject/tut_gtype.xml:
* gobject/tut_howto.xml:
* gobject/tut_intro.xml:
* gobject/tut_tools.xml:
Format XML to be more editable. Describe Interfaces better. Add a
footnote at first occurance of 'maman_'.

svn path=/trunk/; revision=5334

17 years agoadded gsequence.obj
Hans Breuer [Sat, 10 Feb 2007 18:30:40 +0000 (18:30 +0000)]
added gsequence.obj

2007-02-10  Hans Breuer  <hans@breuer.org>

* glib/makefile.msc.in : added gsequence.obj

svn path=/trunk/; revision=5333

17 years agoRemove assertion. Return TRUE if the iter doesn't have a parent. Fix
Søren Sandmann [Fri, 9 Feb 2007 22:53:42 +0000 (22:53 +0000)]
Remove assertion. Return TRUE if the iter doesn't have a parent. Fix

Fri Feb  9 17:46:18 2007  Søren Sandmann  <sandmann@redhat.com>

       * glib/gsequence.c (g_sequence_get_end_iter): Remove assertion.
       * glib/gsequence.c (is_end): Return TRUE if the iter doesn't have
       a parent.
       * glib/gsequence.c: Fix grammar of comment.
       * glib/gsequence.c (node_update_fields): Use a temporary variable
       for the n_nodes.

svn path=/trunk/; revision=5331

17 years agoForce an arbitrary order on otherwise identical items.
Soren Sandmann [Thu, 8 Feb 2007 02:22:52 +0000 (02:22 +0000)]
Force an arbitrary order on otherwise identical items.

2007-02-07  Soren Sandmann <sandmann@daimi.au.dk>

* tests/sequence-test.c (compare_items): Force an arbitrary order
on otherwise identical items.

* glib/gsequence.c: Add comment discussing splay trees vs. other trees.
* glib/gsequence.c (is_end): Add fast path for the common case
when the node is not actually the end node.

svn path=/trunk/; revision=5328

17 years agoUnify spelling of GObject and GType. Improve some wording. Update the
Stefan Kost [Wed, 7 Feb 2007 22:15:34 +0000 (22:15 +0000)]
Unify spelling of GObject and GType. Improve some wording. Update the

* gobject/tut_gobject.xml:
* gobject/tut_gsignal.xml:
* gobject/tut_gtype.xml:
* gobject/tut_howto.xml:
* gobject/tut_tools.xml:
Unify spelling of GObject and GType. Improve some wording. Update the
usage of private data. Make tables use row-spans and add id's to them.

svn path=/trunk/; revision=5327

17 years agoDon't prohibit access until after the g_sequence_move_range() call. Bug
Soren Sandmann [Tue, 6 Feb 2007 04:49:41 +0000 (04:49 +0000)]
Don't prohibit access until after the g_sequence_move_range() call. Bug

2007-02-05  Soren Sandmann <sandmann@daimi.au.dk>

* glib/gsequence.c (g_sequence_sort_iter): Don't prohibit access
until after the g_sequence_move_range() call.  Bug 404759,
Christian Persch.

       * tests/sequence-test.c: Formatting fix.

svn path=/trunk/; revision=5325