platform/upstream/glib.git
20 years agoImplement correctly also on Unix systems without lstat(). (#157038, Morten
Tor Lillqvist [Mon, 1 Nov 2004 19:58:52 +0000 (19:58 +0000)]
Implement correctly also on Unix systems without lstat(). (#157038, Morten

2004-11-01  Tor Lillqvist  <tml@iki.fi>

* glib/gstdio.c (g_lstat): Implement correctly also on Unix
systems without lstat(). (#157038, Morten Welinder)

20 years agodon't return an error if we come across a value with invalid utf8 or if we
Ray Strode [Mon, 1 Nov 2004 19:28:32 +0000 (19:28 +0000)]
don't return an error if we come across a value with invalid utf8 or if we

2004-11-01  Ray Strode <rstrode@redhat.com>

* glib/gkeyfile.c:
(g_key_file_get_locale_string): don't return an
error if we come across a value with invalid utf8 or
if we don't find a translated string. Just fallback
to the untranslated string (Mark McLoughlin, bug
#156790).

* glib/gkeyfile.c:
(g_key_file_init), (g_key_file_clear): track the
actual start GKeyFileGroup rather than just its name
(g_key_file_parse_group): allow add_group() to
update the start group.
(g_key_file_remove_group_node): update the start
group if it gets removed (Mark McLoughlin, bug
#156790).

* glib/gkeyfile.c:
(g_key_file_parse_string_as_value): Don't escape
tabs and spaces in the middle of key values.

20 years agoglib/gdebug.h glib/gutils.c gobject/gtype.c gthread/gthread-posix.c
Matthias Clasen [Mon, 1 Nov 2004 18:47:12 +0000 (18:47 +0000)]
glib/gdebug.h glib/gutils.c gobject/gtype.c gthread/gthread-posix.c

2004-11-01  Matthias Clasen  <mclasen@redhat.com>

* glib/gconvert.c:
* glib/gdebug.h
* glib/gutils.c
* gobject/gtype.c
* gthread/gthread-posix.c
* tests/timeloop-closure.c
* tests/timeloop.c: Fix sparse warnings.  (#157014, Kjartan Maraas)

20 years agoDocumentation updates.
Matthias Clasen [Mon, 1 Nov 2004 17:52:02 +0000 (17:52 +0000)]
Documentation updates.

20 years agoHandle conflicts between options in different groups. (#156808)
Matthias Clasen [Mon, 1 Nov 2004 17:40:09 +0000 (17:40 +0000)]
Handle conflicts between options in different groups. (#156808)

2004-11-01  Matthias Clasen  <mclasen@redhat.com>

Handle conflicts between options in different groups. (#156808)

* glib/goption.c (g_option_context_parse): When a long option does not
match exactly, try to parse it as --group-option.
(g_option_context_add_group): Warn if a group name conflict occurs.

* glib/goption.c (print_help): Print out the effective options, ie
don't print shadowed short options, and for long options print
--group-option instead of --option if appropriate.

20 years agoDocument G_WIN32_IS_NT_BASED, G_WIN32_HAVE_WIDECHAR_API.
Matthias Clasen [Sun, 31 Oct 2004 17:41:29 +0000 (17:41 +0000)]
Document G_WIN32_IS_NT_BASED, G_WIN32_HAVE_WIDECHAR_API.

2004-10-31  Matthias Clasen  <mclasen@redhat.com>

* glib/tmpl/windows.sgml: Document G_WIN32_IS_NT_BASED,
G_WIN32_HAVE_WIDECHAR_API.

* glib/glib-sections.txt: Add g_lstat

* glib/running.sgml: Document G_WIN32_PRETEND_WIN9X.

200

20 years agoDocument g_win32_get_windows_version().
Tor Lillqvist [Sun, 31 Oct 2004 16:31:41 +0000 (16:31 +0000)]
Document g_win32_get_windows_version().

2004-10-31  Tor Lillqvist  <tml@iki.fi>

* glib/gwin32.c: Document g_win32_get_windows_version().

20 years agoAdd g_lstat().
Tor Lillqvist [Sun, 31 Oct 2004 15:56:08 +0000 (15:56 +0000)]
Add g_lstat().

2004-10-31  Tor Lillqvist  <tml@iki.fi>

* glib/gstdio.[ch]: Add g_lstat().

20 years agoDoc additions.
Matthias Clasen [Sat, 30 Oct 2004 05:06:15 +0000 (05:06 +0000)]
Doc additions.

20 years agoConvert filenames to UTF-8 on Windows.
Matthias Clasen [Sat, 30 Oct 2004 03:20:31 +0000 (03:20 +0000)]
Convert filenames to UTF-8 on Windows.

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

* glib/goption.c (parse_arg): Convert filenames to UTF-8 on
Windows.

20 years agoupdated [and finally fixed my script to produce ready to go de-in(ed)
Hans Breuer [Fri, 29 Oct 2004 20:58:04 +0000 (20:58 +0000)]
updated [and finally fixed my script to produce ready to go de-in(ed)

2004-10-29  Hans Breuer  <hans@breuer.org>

* glibconfig.h */makefile.msc.in : updated [and finally fixed my
script to produce ready to go de-in(ed) files, w/o autotools]

* */*.rc.in : updated copyrights to 2004

* glib/gutils.c : some CSIDL_* defines lacking from older SDK;
use the same fallback mecahnism as on *NIX where ever applicable

20 years agoAdd G_OPTION_REMAINING
Matthias Clasen [Fri, 29 Oct 2004 20:27:01 +0000 (20:27 +0000)]
Add G_OPTION_REMAINING

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

* glib/glib-sections.txt: Add G_OPTION_REMAINING

20 years agoUpdate.
Matthias Clasen [Fri, 29 Oct 2004 20:26:19 +0000 (20:26 +0000)]
Update.

20 years agoAdd tests for the handling of non-option arguments, "--" and
Matthias Clasen [Fri, 29 Oct 2004 20:19:06 +0000 (20:19 +0000)]
Add tests for the handling of non-option arguments, "--" and

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

* tests/option-test.c: Add tests for the handling of
non-option arguments, "--" and G_OPTION_REMAINING.

* glib/goption.[hc]: #define G_OPTION_REMAINING, which is
a special long option name, which can be used for an option
in the main group which collects the non-option arguments.
It must be of type G_OPTION_ARG_STRING_ARRAY or
G_OPTION_ARG_FILENAME_ARRAY. If the main group doesn't contain
an option whose name is G_OPTION_REMAINING, the non-option
arguments are left behind in argv as before.

20 years agoDocument GOption
Matthias Clasen [Fri, 29 Oct 2004 18:43:34 +0000 (18:43 +0000)]
Document GOption

20 years agoMark g_assert_warning as G_GNUC_NORETURN, to avoid compiler warnings.
Matthias Clasen [Fri, 29 Oct 2004 02:20:02 +0000 (02:20 +0000)]
Mark g_assert_warning as G_GNUC_NORETURN, to avoid compiler warnings.

2004-10-28  Matthias Clasen  <mclasen@redhat.com>

* glib/gmessages.h: Mark g_assert_warning as G_GNUC_NORETURN,
to avoid compiler warnings.  (#156767, Owen Taylor)

20 years agoInclude also <direct.h> for mkdir() prototype with MSVC. [156727, Kazuki
Tor Lillqvist [Fri, 29 Oct 2004 02:04:28 +0000 (02:04 +0000)]
Include also <direct.h> for mkdir() prototype with MSVC. [156727, Kazuki

2004-10-29  Tor Lillqvist  <tml@iki.fi>

* glib/gstdio.c: Include also <direct.h> for mkdir() prototype
with MSVC. [156727, Kazuki IWAMOTO]

20 years agoRedefine also g_io_channel_new_file to the UTF-8 version on Win32.
Tor Lillqvist [Fri, 29 Oct 2004 02:00:05 +0000 (02:00 +0000)]
Redefine also g_io_channel_new_file to the UTF-8 version on Win32.

2004-10-29  Tor Lillqvist  <tml@iki.fi>

* glib/giochannel.h (g_io_channel_new_file): Redefine also
g_io_channel_new_file to the UTF-8 version on Win32. [156725,
Kazuki IWAMOTO)

20 years agofix whitespace in changelog entry
Ray Strode [Thu, 28 Oct 2004 22:11:48 +0000 (22:11 +0000)]
fix whitespace in changelog entry

20 years agoclean up a leak (#156652, Morten Welinder) (g_key_file_load_from_fd):
Ray Strode [Thu, 28 Oct 2004 22:10:06 +0000 (22:10 +0000)]
clean up a leak (#156652, Morten Welinder) (g_key_file_load_from_fd):

2004-10-28  Ray Strode  <rstrode@redhat.com>

* glib/gkeyfile.c
(find_file_in_data_dirs): clean up a leak (#156652,
        Morten Welinder)
        (g_key_file_load_from_fd): propagate fstat() error
        conditions and retry read on EAGAIN (#156647, Morten
        Welinder).  Return error if file is NOT regular, not if
        it is regular (bug introduced from last commited bug
        fix).
        (g_key_file_load_from_data_dirs): allocate enough space
        for the terminating NULL.

20 years agoDon't use S_ISREG macro (#156728, Kazuki IWAMOTO)
Ray Strode [Thu, 28 Oct 2004 18:42:46 +0000 (18:42 +0000)]
Don't use S_ISREG macro (#156728, Kazuki IWAMOTO)

2004-10-28  Ray Strode  <rstrode@redhat.com>

* glib/gkeyfile.c: Don't use S_ISREG macro (#156728,
Kazuki IWAMOTO)

20 years agoAdd some introductory notes.
Matthias Clasen [Thu, 28 Oct 2004 18:38:07 +0000 (18:38 +0000)]
Add some introductory notes.

2004-10-28  Matthias Clasen  <mclasen@redhat.com>

* glib/tmpl/keyfile.sgml: Add some introductory notes.

20 years agoFix credits.
Matthias Clasen [Thu, 28 Oct 2004 17:18:40 +0000 (17:18 +0000)]
Fix credits.

20 years agoInclude galias.h before glib.h (#156697, Christian Persch)
Matthias Clasen [Thu, 28 Oct 2004 14:16:06 +0000 (14:16 +0000)]
Include galias.h before glib.h (#156697, Christian Persch)

2004-10-28  Matthias Clasen  <mclasen@redhat.com>

* glib/gstdio.c: Include galias.h before glib.h (#156697,
Christian Persch)

20 years agoAdd a missing "Since: 2.6" comment.
Matthias Clasen [Thu, 28 Oct 2004 14:10:02 +0000 (14:10 +0000)]
Add a missing "Since: 2.6" comment.

2004-10-28  Matthias Clasen  <mclasen@redhat.com>

* glib/gkeyfile.c: Add a missing "Since: 2.6" comment.

20 years agoInclude glib.h early to get G_OS_WIN32. Include errno.h for errno.
Tor Lillqvist [Thu, 28 Oct 2004 03:43:48 +0000 (03:43 +0000)]
Include glib.h early to get G_OS_WIN32. Include errno.h for errno.

2004-10-28  Tor Lillqvist  <tml@iki.fi>

* glib/gstdio.c: Include glib.h early to get G_OS_WIN32. Include
errno.h for errno.

20 years agoInclude gstdio.h and use g_open().
Tor Lillqvist [Thu, 28 Oct 2004 03:04:10 +0000 (03:04 +0000)]
Include gstdio.h and use g_open().

2004-10-28  Tor Lillqvist  <tml@iki.fi>

* glib/gkeyfile.c: Include gstdio.h and use g_open().

20 years agoFix typo in bug number reference.
Tor Lillqvist [Thu, 28 Oct 2004 03:01:18 +0000 (03:01 +0000)]
Fix typo in bug number reference.

20 years agoMove file is regular check to load_from_file to use fstat() instead of
Ray Strode [Wed, 27 Oct 2004 21:22:01 +0000 (21:22 +0000)]
Move file is regular check to load_from_file to use fstat() instead of

2004-10-27  Ray Strode  <rstrode@redhat.com>

* glib/gkeyfile.c:
 (g_key_file_load_from_fd),
 (g_key_file_load_from_file):
 Move file is regular check to load_from_file to use
 fstat() instead of race prone g_file_test().  Don't
 clear/init until needed. Change error messages to be
 more consistent.
 (g_key_file_load_from_data),
 (g_key_file_load_from_data_dirs),
 (g_key_file_parse_data),
 (g_key_file_get_value),
 (g_key_file_get_string),
 (g_key_file_set_string),
 (g_key_file_get_string_list),
 (g_key_file_set_string_list),
 (g_key_file_set_locale_string),
 (g_key_file_get_locale_string),
 (g_key_file_set_locale_string_list),
 (g_key_file_get_boolean),
 (g_key_file_set_boolean),
 (g_key_file_get_boolean_list),
 (g_key_file_set_boolean_list),
 (g_key_file_get_integer),
 (g_key_file_get_integer_list),
 (g_key_file_set_integer_list),
 (g_key_file_remove_key):
 Add more g_return_*if_fail checks for public functions.

20 years agoBump version
Matthias Clasen [Wed, 27 Oct 2004 18:31:10 +0000 (18:31 +0000)]
Bump version

20 years ago2.5.4 GTK_2_5_4
Matthias Clasen [Wed, 27 Oct 2004 17:56:33 +0000 (17:56 +0000)]
2.5.4

20 years agoIntroduce the idea of a filename encoding, which is *literally* the
Matthias Clasen [Wed, 27 Oct 2004 16:46:29 +0000 (16:46 +0000)]
Introduce the idea of a filename encoding, which is *literally* the

2004-10-27  Matthias Clasen  <mclasen@redhat.com>

Introduce the idea of a filename encoding, which is
*literally* the filename encoding on Unix. On windows,
use the Unicode name converted to UTF-8. (#156325,
Tor Lillqvist, Owen Taylor)

* glib/gdir.[hc]:
* glib/gconvert.[hc]:
* glib/gfileutils.[hc]:
* glib/gutils.[hc]:
* glib/giowin32.c: On Windows, keep old ABI versions
of GLib pathname api for DLL ABI stability. Use different
names for the new-style UTF-8 versions. Hide this through
a #define.

* glib/gstdio.[hc]: New files containing wrappers for
POSIX pathname api.

* glib/glib.symbols: Add new symbols.

* glib/makegalias.pl: Drop Win32 specific .def syntax,
include gstdio.h

20 years agoUpdate Norwegian bokmål translation.
Kjartan Maraas [Wed, 27 Oct 2004 10:31:03 +0000 (10:31 +0000)]
Update Norwegian bokmål translation.

2004-10-27  Kjartan Maraas  <kmaraas@gnome.org>

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

20 years agoFix includes. (#156500, #156499, Kazuki IWAMOTO)
Matthias Clasen [Wed, 27 Oct 2004 05:12:27 +0000 (05:12 +0000)]
Fix includes. (#156500, #156499, Kazuki IWAMOTO)

2004-10-27  Matthias Clasen  <mclasen@redhat.com>

* glib/gkeyfile.c: Fix includes. (#156500, #156499,
Kazuki IWAMOTO)

20 years agoFix srcdir != builddir builds. (#156447, Thomas Fitzsimmons)
Matthias Clasen [Wed, 27 Oct 2004 04:42:51 +0000 (04:42 +0000)]
Fix srcdir != builddir builds. (#156447, Thomas Fitzsimmons)

2004-10-27  Matthias Clasen  <mclasen@redhat.com>

* Makefile.am (gobjectalias.h): Fix srcdir != builddir
builds.  (#156447, Thomas Fitzsimmons)

20 years agoAdd a missing include.
Matthias Clasen [Tue, 26 Oct 2004 18:48:55 +0000 (18:48 +0000)]
Add a missing include.

20 years agoAdd new symbols.
Matthias Clasen [Tue, 26 Oct 2004 16:41:43 +0000 (16:41 +0000)]
Add new symbols.

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

* glib/glib.symbols: Add new symbols.

* abicheck.sh: Don't include symbols which are just in the
symbols list for .defs file compatibility.

20 years agoconfigure.in: Added 'or' to ALL_LINGUAS.
Gora Mohanty [Tue, 26 Oct 2004 16:32:46 +0000 (16:32 +0000)]
configure.in: Added 'or' to ALL_LINGUAS.
po/or.po: Updated Oriya translation.

20 years agoAdd new symbols.
Matthias Clasen [Tue, 26 Oct 2004 16:19:40 +0000 (16:19 +0000)]
Add new symbols.

20 years agoAdd a 2.6 index.
Matthias Clasen [Tue, 26 Oct 2004 16:13:20 +0000 (16:13 +0000)]
Add a 2.6 index.

20 years agoDocumentation fixes.
Matthias Clasen [Tue, 26 Oct 2004 16:10:52 +0000 (16:10 +0000)]
Documentation fixes.

20 years agoMake the last change compile.
Matthias Clasen [Tue, 26 Oct 2004 14:24:27 +0000 (14:24 +0000)]
Make the last change compile.

20 years agoMake this function thread-safe in the GLib style.
Matthias Clasen [Tue, 26 Oct 2004 14:04:52 +0000 (14:04 +0000)]
Make this function thread-safe in the GLib style.

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

* glib/gwin32.c (g_win32_get_windows_version): Make this
function thread-safe in the GLib style.
* glib/gthreadinit.h:
* glib/gwin32.c (_g_win32_thread_init): New function to
initialize the version.
* glib/gthread.c (g_thread_init_glib): Call
_g_win32_thread_init() from here.

20 years agoAdd Matthias to "Written by" lines (GKeyFileGroup): add field to hold
Ray Strode [Tue, 26 Oct 2004 12:35:58 +0000 (12:35 +0000)]
Add Matthias to "Written by" lines (GKeyFileGroup): add field to hold

2004-10-26  Ray Strode  <rstrode@redhat.com>

* glib/gkeyfile.c: Add Matthias to "Written by" lines
 (GKeyFileGroup): add field to hold comments about groups
 (g_key_file_load_from_fd): return TRUE on success and
 FALSE on failure.  Don't close fd's opened by other
 parent function.
 (g_key_file_load_from_file): run FILE_IS_REGULAR test
 before trying to open file, to save an fd from being
 leaked (would probably be better to use fstat()). Close
 fd when done with it. Return TRUE on success and FALSE
 on failure.
 (g_key_file_load_from_data): Return TRUE on success and
 FALSE on failure.
 (g_key_file_load_from_data_dirs): remove superfluous
 const modifier.  Return TRUE on success and FALSE on
 failure.  Stop trying to load files when one succeeds.
 (g_key_file_parse_key_value_pair): don't validate input
 for UTF-8 until users uses a getter that does
 validation.  Don't leak copy of start_group_name.
 (g_key_file_to_data): serialize new comment field for
 groups.
 (g_key_file_get_keys): Remove convenience code to let
 NULL group mean start group.  Get rid of unneeded NULL
 check before g_strdup.
 (g_key_file_get_groups): Reverse groups list before
 sending to user because it is maintained in backward
 order internally.
 (g_key_file_get_value),
 (g_key_file_set_value): add g_return checks at top of
 public functions.
 (g_key_file_get_string),
 (g_key_file_get_string_list): validate key value is UTF-8.
 (g_key_file_[sg]et_*comment): new functions for
 setting/getting comments
 (g_key_file_remove_comment): new function to remove
 comment block
 (g_key_file_remove_key_value_pair_node): new function to
 pull a key-value pair out of the list and free it.
 (g_key_file_remove_group_node): call
 g_key_file_remove_key_value_pair_node instead of
 freeing the list immediately to get better statistics
 for approximate_size.
 (g_key_file_remove_group): use lookup_group_node instead
 of lookup_group to prevent a g_list_find call.
 (g_key_file_add_key): report group also when unable to
 find key.
 (g_key_file_lookup_group_node): new function to make
 getting the group node from a group name easier.
 (g_key_file_lookup_group): use lookup_group_node under
 the hood.
 (g_key_file_lookup_key_value_pair_node): new function to
 make getting the key-value pair from a group and key
 name eaiser.
 (g_key_file_parse_comment_as_value): new function to add '#' to the
 beginning of every line.
 (g_key_file_parse_value_as_comment): new function that
 attempts to be the inverse of comment as value.

20 years agoDon't include ctype.h needlessly. (#156424, Morten Welinder)
Matthias Clasen [Tue, 26 Oct 2004 05:23:40 +0000 (05:23 +0000)]
Don't include ctype.h needlessly. (#156424, Morten Welinder)

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

* glib/gutils.c:
* glib/gkeyfile.c: Don't include ctype.h needlessly.  (#156424,
Morten Welinder)

20 years agoDon't include ctype.h needlessly. (#156424, Morten Welinder)
Matthias Clasen [Tue, 26 Oct 2004 05:16:47 +0000 (05:16 +0000)]
Don't include ctype.h needlessly. (#156424, Morten Welinder)

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

* glib/gkeyfile.c: Don't include ctype.h needlessly.  (#156424,
Morten Welinder)

20 years agoImprove error reporting.
Matthias Clasen [Tue, 26 Oct 2004 04:16:02 +0000 (04:16 +0000)]
Improve error reporting.

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

* tests/strtod-test.c (test_string): Improve error reporting.

20 years agorm autom4te.cache, since it might interfere with differing autoconf
Manish Singh [Mon, 25 Oct 2004 22:08:37 +0000 (22:08 +0000)]
rm autom4te.cache, since it might interfere with differing autoconf

Mon Oct 25 15:05:18 2004  Manish Singh  <yosh@gimp.org>

        * autogen.sh: rm autom4te.cache, since it might interfere with
        differing autoconf versions.

        * tests/child-test.c: use GINT_TO_POINTER for g_child_watch_add
        user data.

        * glib/gfileutils.c: G_IS_DIR_SEPARATOR is defined in gutils.h now,
        don't redefine it here.

20 years agoAdd GKeyFile section, add index for 2.6 additions.
Matthias Clasen [Mon, 25 Oct 2004 13:56:25 +0000 (13:56 +0000)]
Add GKeyFile section, add index for 2.6 additions.

2004-10-25  Matthias Clasen  <mclasen@redhat.com>

* glib/glib-docs.sgml:  Add GKeyFile section, add
index for 2.6 additions.

20 years agoUpdate.
Kjartan Maraas [Mon, 25 Oct 2004 10:40:04 +0000 (10:40 +0000)]
Update.

2004-10-25  Kjartan Maraas  <kmaraas@gnome.org>

* nb.po: Update.

20 years agoDon't destroy the lookup map if it is NULL.
Matthias Clasen [Sun, 24 Oct 2004 05:49:14 +0000 (05:49 +0000)]
Don't destroy the lookup map if it is NULL.

2004-10-24  Matthias Clasen  <mclasen@redhat.com>

* glib/gkeyfile.c (g_key_file_remove_group_node): Don't
destroy the lookup map if it is NULL.

20

20 years agoApply a patch to fix sparse warnings. (#154696, Kjartan Maraas)
Matthias Clasen [Sun, 24 Oct 2004 01:37:42 +0000 (01:37 +0000)]
Apply a patch to fix sparse warnings. (#154696, Kjartan Maraas)

2004-10-23  Matthias Clasen  <mclasen@redhat.com>

* glib/gasyncqueue.c, glib/gatomic.c, glib/gdate.c,
glib/giochannel.c, glib/gmain.c, glib/gspawn.c,
glib/libcharset/localcharset.c: Apply a patch to fix
sparse warnings. (#154696, Kjartan Maraas)

20 years agoTypo fix.
Matthias Clasen [Sun, 24 Oct 2004 01:25:42 +0000 (01:25 +0000)]
Typo fix.

20 years agoRename first parameter to check_data, since apparently the system headers
Matthias Clasen [Sun, 24 Oct 2004 01:22:30 +0000 (01:22 +0000)]
Rename first parameter to check_data, since apparently the system headers

2004-10-23  Matthias Clasen  <mclasen@redhat.com>

* gtype.h (GTypeInterfaceCheckFunc): Rename first parameter to
check_data, since apparently the system headers on AIX leak a
macro named func_data.  (#155178, Andrea Campi)

20 years agoUndef libc functions before defining them, since they may also be macros.
Matthias Clasen [Sun, 24 Oct 2004 01:15:08 +0000 (01:15 +0000)]
Undef libc functions before defining them, since they may also be macros.

2004-10-23  Matthias Clasen  <mclasen@redhat.com>

* glib/gnulib/g-gnulib.h: Undef libc functions before defining
them, since they may also be macros.  (#155177, Andrea Campi)

20 years agoAdd GKeyFile section.
Matthias Clasen [Sat, 23 Oct 2004 06:23:18 +0000 (06:23 +0000)]
Add GKeyFile section.

2004-10-23  Matthias Clasen  <mclasen@redhat.com>

* glib/glib-sections.txt: Add GKeyFile section.

20 years agoAdd a parser for desktop entries and similar files with a .ini-like
Matthias Clasen [Sat, 23 Oct 2004 06:16:42 +0000 (06:16 +0000)]
Add a parser for desktop entries and similar files with a .ini-like

2004-10-23  Matthias Clasen  <mclasen@redhat.com>

* glib/gkeyfile.h:
* glib/gkeyfile.c: Add a parser for desktop entries and
similar files with a .ini-like syntax.  (#139974, Ray Strode)

* glib/glib.h: Include gkeyfile.h

* glib/Makefile.am (libglib_2_0_la_SOURCES): Add gkeyfile.c
(glibsubinclude_HEADERS): Add gkeyfile.h

* glib/gutils.c (_g_compute_locale_variants): Make this
non-static and use it in gkeyfile.c

20 years agoAdd some uri list tests.c.
Matthias Clasen [Fri, 22 Oct 2004 19:51:29 +0000 (19:51 +0000)]
Add some uri list tests.c.

2004-10-22  Matthias Clasen  <mclasen@redhat.com>

* tests/uri-test.c (run_uri_list_tests): Add some
uri list tests.c.

* glib/gconvert.h:
* glib/gconvert.c (g_uri_list_extract_uris): New function to
split a text/uri-list data into individual uris and strip comments.

20 years agoDon't return the wrong change. (#155856, Lucas Rocha)
Matthias Clasen [Wed, 20 Oct 2004 06:04:18 +0000 (06:04 +0000)]
Don't return the wrong change. (#155856, Lucas Rocha)

2004-10-20  Matthias Clasen  <mclasen@redhat.com>

* glib/goption.c (get_change): Don't return the wrong
change.  (#155856, Lucas Rocha)

20 years agoUpdated Albanian translation.
Laurent Dhima [Tue, 19 Oct 2004 14:53:23 +0000 (14:53 +0000)]
Updated Albanian translation.

2004-10-19  Laurent Dhima  <laurenti@alblinux.net>

* sq.po: Updated Albanian translation.

20 years agoMake public. (#155589, Tim-Philipp Müller)
Matthias Clasen [Sun, 17 Oct 2004 06:46:16 +0000 (06:46 +0000)]
Make public. (#155589, Tim-Philipp Müller)

2004-10-17  Matthias Clasen  <mclasen@redhat.com>

* glib/gutils.h (G_IS_DIR_SEPARATOR):
* glib/gutils.c: Make public.  (#155589, Tim-Philipp Müller)

20 years agoUpdated Serbian translation.
Danilo Šegan [Fri, 15 Oct 2004 20:28:25 +0000 (20:28 +0000)]
Updated Serbian translation.

20 years agoDocument that GLib supports only a single callback per pid. (#154828,
Matthias Clasen [Fri, 8 Oct 2004 14:20:56 +0000 (14:20 +0000)]
Document that GLib supports only a single callback per pid. (#154828,

2004-10-08  Matthias Clasen  <mclasen@redhat.com>

* glib/gmain.c (g_child_watch_add_full):
* glib/gmain.c (g_child_watch_add): Document that GLib supports only
a single callback per pid. (#154828, Gustavo Carneiro)

20 years agoFix some C99isms. (#154676, Kjartan Maraas)
Matthias Clasen [Wed, 6 Oct 2004 15:05:40 +0000 (15:05 +0000)]
Fix some C99isms. (#154676, Kjartan Maraas)

2004-10-06  Matthias Clasen  <mclasen@redhat.com>

* glib/gfileutils.c: Fix some C99isms.  (#154676, Kjartan Maraas)

20 years agoapplied patch from Jean-Yves Lefort <jylefort@brutele.be> to not access
4 [Wed, 6 Oct 2004 00:15:07 +0000 (00:15 +0000)]
applied patch from Jean-Yves Lefort <jylefort@brutele.be> to not access

Wed Oct  6 02:12:44 2004    <timj@birnet.org>

        * gtype.c (g_type_instance_get_private): applied patch from Jean-Yves
        Lefort <jylefort@brutele.be> to not access the instance_real_class_bsa
        pointer without holding the instance_real_class lock.

20 years agoAdd check for if argc is 0.
Anders Carlsson [Tue, 5 Oct 2004 20:04:18 +0000 (20:04 +0000)]
Add check for if argc is 0.

2004-10-05  Anders Carlsson  <andersca@gnome.org>

* glib/goption.c: (g_option_context_parse):
Add check for if argc is 0.

* tests/option-test.c: (empty_test3), (main):
Add test case.

20 years agoImprove the docs for g_object_get_property(). (#153424, Stefan Kost)
Matthias Clasen [Tue, 5 Oct 2004 19:44:33 +0000 (19:44 +0000)]
Improve the docs for g_object_get_property(). (#153424, Stefan Kost)

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

* gobject/tmpl/objects.sgml: Improve the docs for
g_object_get_property().  (#153424, Stefan Kost)

20 years agoUpdate
Matthias Clasen [Tue, 5 Oct 2004 18:12:25 +0000 (18:12 +0000)]
Update

20 years agoImprove the warning if G_SIGNAL_NO_HOOKS is set. (#154299, Nickolay V.
Matthias Clasen [Mon, 4 Oct 2004 20:20:05 +0000 (20:20 +0000)]
Improve the warning if G_SIGNAL_NO_HOOKS is set. (#154299, Nickolay V.

2004-10-04  Matthias Clasen  <mclasen@redhat.com>

* gsignal.c (g_signal_add_emission_hook): Improve the warning
if G_SIGNAL_NO_HOOKS is set.  (#154299, Nickolay V. Shmyrev)

20 years agoOnly set vtable_set if the vtable is set.
Matthias Clasen [Mon, 4 Oct 2004 20:19:30 +0000 (20:19 +0000)]
Only set vtable_set if the vtable is set.

20 years agoTranslation updated by Tino Meinen.
Vincent van Adrighem [Mon, 4 Oct 2004 12:27:10 +0000 (12:27 +0000)]
Translation updated by Tino Meinen.

2004-10-04  Vincent van Adrighem  <adrighem@gnome.org>

* nl.po: Translation updated by Tino Meinen.

20 years agoImprove docs for g_signal_add_emission_hook. (#154299, Nickolay V.
Matthias Clasen [Mon, 4 Oct 2004 02:36:14 +0000 (02:36 +0000)]
Improve docs for g_signal_add_emission_hook. (#154299, Nickolay V.

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

* gobject/tmpl/signals.sgml: Improve docs for
g_signal_add_emission_hook.  (#154299, Nickolay V. Shmyrev)

20 years agoUpdated British English translation.
David Lodge [Sun, 3 Oct 2004 21:49:47 +0000 (21:49 +0000)]
Updated British English translation.

2004-10-03  David Lodge <dave@cirt.net>

        * en_GB.po: Updated British English translation.

20 years agoSet arg_data on filenames. (Discovered by Mats-Ola Persson).
Anders Carlsson [Sun, 3 Oct 2004 19:34:19 +0000 (19:34 +0000)]
Set arg_data on filenames. (Discovered by Mats-Ola Persson).

2004-10-03  Anders Carlsson  <andersca@gnome.org>

* glib/goption.c: (parse_arg):
Set arg_data on filenames. (Discovered by Mats-Ola Persson).

* tests/option-test.c: (arg_test3), (ignore_test3), (main):
Add test for filename args.

20 years agoUpdated Czech translation.
Miloslav Trmac [Sun, 3 Oct 2004 00:45:49 +0000 (00:45 +0000)]
Updated Czech translation.

2004-10-03  Miloslav Trmac  <mitr@volny.cz>

* cs.po: Updated Czech translation.

20 years agoUpdated Japanese translation.
Ryoichi INAGAKI [Sat, 2 Oct 2004 15:38:42 +0000 (15:38 +0000)]
Updated Japanese translation.

2004-10-03  Ryoichi INAGAKI  <ryo1@bc.wakwak.com>

* ja.po: Updated Japanese translation.

20 years agoUse g_path_get_basename() instead of strrchr(), so that either slash is
Tor Lillqvist [Fri, 1 Oct 2004 20:12:50 +0000 (20:12 +0000)]
Use g_path_get_basename() instead of strrchr(), so that either slash is

2004-10-01  Tor Lillqvist  <tml@iki.fi>

* glib/goption.c (g_option_context_parse): Use
g_path_get_basename() instead of strrchr(), so that either slash
is accepted on Windows.

20 years agoConvert filenames to UTF-8 before putting them in GErrors. (#154078,
Matthias Clasen [Thu, 30 Sep 2004 04:03:16 +0000 (04:03 +0000)]
Convert filenames to UTF-8 before putting them in GErrors. (#154078,

2004-09-30  Matthias Clasen  <mclasen@redhat.com>

* glib/gfileutils.c: Convert filenames to UTF-8 before
putting them in GErrors.  (#154078, Morten Welinder)

20 years agoAdd g_assert_warning.
Matthias Clasen [Thu, 30 Sep 2004 02:02:00 +0000 (02:02 +0000)]
Add g_assert_warning.

2004-09-29  Matthias Clasen  <mclasen@redhat.com>

* glib/glib.symbols: Add g_assert_warning.

* glib/gmessages.h:
* glib/gmessages.c (g_assert_warning): Treat g_assert
in the same way as g_return_if_fail and move the string
constants into a helper function, which also takes
care of removing the "IA__" prefix from internal aliases.

20 years agoMove the declaration of g_return_if_fail_warning() out of the ifdefs, so
Matthias Clasen [Wed, 29 Sep 2004 22:14:49 +0000 (22:14 +0000)]
Move the declaration of g_return_if_fail_warning() out of the ifdefs, so

2004-09-29  Matthias Clasen  <mclasen@redhat.com>

* glib/gmessages.h: Move the declaration of
g_return_if_fail_warning() out of the ifdefs, so that
building with G_DISABLE_ASSERT works.

20 years agoRename g_context_option_error_quark() to g_option_error_quark(), because
Murray Cumming [Mon, 27 Sep 2004 18:16:39 +0000 (18:16 +0000)]
Rename g_context_option_error_quark() to g_option_error_quark(), because

2004-09-27  Murray Cumming  <murrayc@murrayc.com>

        * glib/goptions.[h|c], glib/glib.symbols: Rename
        g_context_option_error_quark() to g_option_error_quark(), because that
        is consistent with normal naming conventions, and what bindings expect.

20 years agoFix #153649, Hidetaka Iwai:
Matthias Clasen [Sun, 26 Sep 2004 04:16:31 +0000 (04:16 +0000)]
Fix #153649, Hidetaka Iwai:

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

Fix #153649, Hidetaka Iwai:

* glib/goption.c (parse_long_option): Don't forget to set parsed
to TRUE when parsing a long ARG_NONE option.
(free_changes_list): Fix the memory management for string
and filename arrays.

20 years agoReword my last ChangeLog entry a bit.
Tor Lillqvist [Sat, 25 Sep 2004 20:34:16 +0000 (20:34 +0000)]
Reword my last ChangeLog entry a bit.

20 years agoAdd reference to bug #151175.
Tor Lillqvist [Sat, 25 Sep 2004 20:28:42 +0000 (20:28 +0000)]
Add reference to bug #151175.

20 years agoUpdated Canadian English translation.
Adam Weinberger [Fri, 24 Sep 2004 17:37:48 +0000 (17:37 +0000)]
Updated Canadian English translation.

* en_CA.po: Updated Canadian English translation.

20 years ago[Win32] Add code to remove the bug-compatibility entries (see #134813, and
Tor Lillqvist [Wed, 22 Sep 2004 22:41:02 +0000 (22:41 +0000)]
[Win32] Add code to remove the bug-compatibility entries (see #134813, and

2004-09-22  Tor Lillqvist  <tml@iki.fi>

* Makefile.am (install-libtool-import-lib): [Win32] Add code to
remove the bug-compatibility entries (see #134813, and related
comments below) from the import library. The PRIVATE keyword in
the .def file is supposed to mean that, but it isn't implemented
yet by GNU ld.

* makegobjectalias.pl: In case the symbol is followed by some
stuff ("PRIVATE") that's intended for the .def file, use just the
actual symbol.

* gobject.symbols: For binary bug compatibility on Win32, add the
g_slist_remove_all and g_unichar_validate symbols inside #ifdef
INCLUDE_INTERNAL_SYMBOLS. (See #134813 and log entries from March
below.)

20 years agoAdd bug number to my last entry.
Tor Lillqvist [Wed, 22 Sep 2004 21:17:31 +0000 (21:17 +0000)]
Add bug number to my last entry.

20 years ago[Win32] Don't open a console window if standard output or standard error
Tor Lillqvist [Wed, 22 Sep 2004 21:15:35 +0000 (21:15 +0000)]
[Win32] Don't open a console window if standard output or standard error

2004-09-22  Tor Lillqvist  <tml@iki.fi>

* glib/gmessages.c: [Win32] Don't open a console window if
standard output or standard error are invalid (as they are for GUI
applications). These console windows that open up unexpectedly
have caused endless amounts of confusion among end-users.

Don't output the process id on Windows. Only output the program
name. If not set with g_set_prgname(), fetch the application
executable's name and use that.

20 years agoCorrect the docs for the default log handler wrt to which messages go to
Matthias Clasen [Mon, 20 Sep 2004 14:49:57 +0000 (14:49 +0000)]
Correct the docs for the default log handler wrt to which messages go to

2004-09-20  Matthias Clasen  <mclasen@redhat.com>

* glib/tmpl/messages.sgml: Correct the docs for the default log
handler wrt to which messages go to stderr. (#153041, Philippe Blain)

20 years agoAdd a note explaining how to convert UTF-16 byte stream of ambiguous
Matthias Clasen [Mon, 20 Sep 2004 04:38:38 +0000 (04:38 +0000)]
Add a note explaining how to convert UTF-16 byte stream of ambiguous

Mon Sep 20 00:35:14 2004  Matthias Clasen  <maclas@gmx.de>

* glib/gutf8.c (g_utf16_to_utf8): Add a note explaining how to
convert UTF-16 byte stream of ambiguous endianness.  (#152954,
Linus Walleij)

20 years agoDon't call g_set_error () with a NULL format. (#153103, Robert Ögren)
Matthias Clasen [Mon, 20 Sep 2004 04:18:40 +0000 (04:18 +0000)]
Don't call g_set_error () with a NULL format. (#153103, Robert Ögren)

Mon Sep 20 00:17:37 2004  Matthias Clasen  <maclas@gmx.de>

* tests/option-test.c (error_test3_post_parse):
* tests/option-test.c (error_test2_post_parse):
* tests/option-test.c (error_test1_post_parse): Don't call
g_set_error () with a NULL format.  (#153103, Robert Ögren)

20 years agoMake GOption remove long options completely. (#153113, Robert Ögren)
Matthias Clasen [Mon, 20 Sep 2004 04:15:38 +0000 (04:15 +0000)]
Make GOption remove long options completely. (#153113, Robert Ögren)

Mon Sep 20 00:13:48 2004  Matthias Clasen  <maclas@gmx.de>

Make GOption remove long options completely. (#153113, Robert Ögren)

* glib/goption.c (parse_long_option): Fix a wrong index.

* tests/option-test.c (ignore_test3): Test handling of unknown
options some more.

20 years agoCall error_func on error, not post_parse_func again. (#153107, Robert
Matthias Clasen [Mon, 20 Sep 2004 03:58:04 +0000 (03:58 +0000)]
Call error_func on error, not post_parse_func again. (#153107, Robert

Sun Sep 19 23:56:15 2004  Matthias Clasen  <maclas@gmx.de>

* glib/goption.c (g_option_context_parse): Call error_func
on error, not post_parse_func again.  (#153107, Robert Ögren)

20 years agoFix the types of some variables to be GLogLevelFlags instead of guint.
Matthias Clasen [Mon, 20 Sep 2004 03:53:39 +0000 (03:53 +0000)]
Fix the types of some variables to be GLogLevelFlags instead of guint.

Sun Sep 19 23:52:35 2004  Matthias Clasen  <maclas@gmx.de>

* glib/gmessages.c (mklevel_prefix):
* glib/gmessages.c (g_logv): Fix the types of some variables
to be GLogLevelFlags instead of guint.  (#153042, Philippe Blain)

20 years agoPoint to g_utf8_strreverse() for reversing UTF-8 strings. (#153091, Adam
Matthias Clasen [Mon, 20 Sep 2004 03:16:32 +0000 (03:16 +0000)]
Point to g_utf8_strreverse() for reversing UTF-8 strings. (#153091, Adam

Sun Sep 19 23:15:17 2004  Matthias Clasen  <maclas@gmx.de>

* glib/tmpl/patterns.sgml: Point to g_utf8_strreverse() for
reversing UTF-8 strings.  (#153091, Adam Hooper)

20 years agoBump version
Matthias Clasen [Sat, 18 Sep 2004 21:25:10 +0000 (21:25 +0000)]
Bump version

20 years ago2.5.3 GLIB_2_5_3
Matthias Clasen [Sat, 18 Sep 2004 21:03:46 +0000 (21:03 +0000)]
2.5.3

20 years agoMore updates.
Matthias Clasen [Fri, 17 Sep 2004 19:35:44 +0000 (19:35 +0000)]
More updates.

20 years agoshut up cvs
Manish Singh [Fri, 17 Sep 2004 01:41:39 +0000 (01:41 +0000)]
shut up cvs

20 years agodon't hardcode lengths for cut, instead split on the third field.
Manish Singh [Fri, 17 Sep 2004 01:41:30 +0000 (01:41 +0000)]
don't hardcode lengths for cut, instead split on the third field.

Thu Sep 16 18:42:46 2004  Manish Singh  <yosh@gimp.org>

        * abicheck.sh: don't hardcode lengths for cut, instead split on
        the third field.