platform/upstream/glib.git
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.

20 years agodon't hardcode lengths for cut, instead split on the third field.
Manish Singh [Fri, 17 Sep 2004 01:41:18 +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>

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

20 years agoMake it take a guint for number of characters, instead of a gsize.
Manish Singh [Fri, 17 Sep 2004 01:14:10 +0000 (01:14 +0000)]
Make it take a guint for number of characters, instead of a gsize.

Thu Sep 16 18:15:32 2004  Manish Singh  <yosh@gimp.org>

        * glib/gstrfuncs.c (g_strncasecmp): Make it take a guint for number
        of characters, instead of a gsize. Technically this is incorrect,
        but this makes it match the prototype, and this is a deprecated
        function anyway.

20 years agoImplement the same PLT reduction technique used in GTK+:
Matthias Clasen [Thu, 16 Sep 2004 18:52:40 +0000 (18:52 +0000)]
Implement the same PLT reduction technique used in GTK+:

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

Implement the same PLT reduction technique used in GTK+:

* Makefile.am: Generate gobjectalias.h from gobject.symbols.
(BUILT_SOURCES): Add gobjectalias.h.

* makegobjectalias.pl: Script to generate gobjectalias.h.

* *.c: Include gobjectalias.h

20 years agoAdd ABI control using the same technique that is used in GTK+.
Matthias Clasen [Thu, 16 Sep 2004 18:33:02 +0000 (18:33 +0000)]
Add ABI control using the same technique that is used in GTK+.

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

Add ABI control using the same technique that is used in GTK+.

* gobject.symbols: Master list of symbols.

* gobject.def: Removed. It is now generated from gobject.symbols.

* Makefile.am (gobject.def): Generate from gobject.symbols.
(TESTS): Add abicheck.sh
(EXTRA_DIST): Add abicheck.sh
(export_symbols): Don't export _-prefixed symbols.

* gtype.h:
* gtype.c: Move the declarations of the various _init() functions
to the header, and mark them as G_GNUC_INTERNAL.

20 years agoAdd abicheck.sh
Matthias Clasen [Thu, 16 Sep 2004 14:23:18 +0000 (14:23 +0000)]
Add abicheck.sh

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

* glib/Makefile.am (EXTRA_DIST): Add abicheck.sh

20 years agoIgnore galias.h
Matthias Clasen [Thu, 16 Sep 2004 14:16:18 +0000 (14:16 +0000)]
Ignore galias.h

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

* glib/Makefile.am: Ignore galias.h

* glib/glib-sections.txt: Updates.

20 years agoImplement the same PLT reduction technique used in GTK+:
Matthias Clasen [Thu, 16 Sep 2004 06:05:53 +0000 (06:05 +0000)]
Implement the same PLT reduction technique used in GTK+:

Thu Sep 16 02:03:15 2004  Matthias Clasen  <maclas@gmx.de>

Implement the same PLT reduction technique used in GTK+:

20 years agoCommit accumulated changes.
Matthias Clasen [Thu, 16 Sep 2004 03:16:57 +0000 (03:16 +0000)]
Commit accumulated changes.

20 years agoConvert message to UTF-8. Technically this breaks API, but the actual use
Tor Lillqvist [Wed, 15 Sep 2004 19:12:19 +0000 (19:12 +0000)]
Convert message to UTF-8. Technically this breaks API, but the actual use

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

* glib/gwin32.c (g_win32_error_message): Convert message to
UTF-8. Technically this breaks API, but the actual use cases in
gdk/win32 have assumed it is UTF-8 anyway. Fix
documentation. (#152618, Kazuki Iwamoto)

* glib/gwin32.h: Don't define ftruncate as a macro. Was never a
good idea, and it clashes with newest mingw headers, which have a
ftruncate implementation as an inline function. Thanks to Dominik R.

* glib/gwin32.c (g_win32_ftruncate): Simplify implementation, just
call _chsize() in the C library.

20 years agoUpdates
Matthias Clasen [Wed, 15 Sep 2004 17:12:21 +0000 (17:12 +0000)]
Updates

20 years ago*** empty log message ***
Ivan Stojmirov [Sat, 11 Sep 2004 20:31:43 +0000 (20:31 +0000)]
*** empty log message ***

20 years agoStrip the prefix "IA__" from function names, since that is what GTK+ uses
Matthias Clasen [Thu, 9 Sep 2004 19:41:23 +0000 (19:41 +0000)]
Strip the prefix "IA__" from function names, since that is what GTK+ uses

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

* glib/gmessages.c (g_return_if_fail_warning): Strip the
prefix "IA__" from function names, since that is what
GTK+ uses for the PLT-reduction aliases.

20 years agoInclude implementation of g_return_if_fail_internal().
Owen Taylor [Thu, 9 Sep 2004 17:55:05 +0000 (17:55 +0000)]
Include implementation of g_return_if_fail_internal().

Thu Sep  9 13:52:26 2004  Owen Taylor  <otaylor@redhat.com>

        * glib/gmessages.c (g_return_if_fail_warning):
        Include implementation of g_return_if_fail_internal().

20 years agoUse a helper function to reduce code size; omit FILE/LINE when we have
Owen Taylor [Thu, 9 Sep 2004 14:42:00 +0000 (14:42 +0000)]
Use a helper function to reduce code size; omit FILE/LINE when we have

Thu Sep  9 10:37:41 2004  Owen Taylor  <otaylor@redhat.com>

        * glib/gmessages.h (g_return_[val_]if_fail): Use
        a helper function to reduce code size; omit FILE/LINE
        when we have __PRETTY_FUNCTION__.

20 years agoClarify the relation of g_get_home_dir() and $HOME.
Matthias Clasen [Thu, 9 Sep 2004 14:06:20 +0000 (14:06 +0000)]
Clarify the relation of g_get_home_dir() and $HOME.

20 years agoAdd a function to calculate the length of a NULL-terminated string array.
Matthias Clasen [Thu, 9 Sep 2004 04:12:19 +0000 (04:12 +0000)]
Add a function to calculate the length of a NULL-terminated string array.

Thu Sep  9 00:10:40 2004  Matthias Clasen  <maclas@gmx.de>

* glib/gstrfuncs.h:
* glib/gstrfuncs.c (g_strv_length): Add a function to
calculate the length of a NULL-terminated string
array.  (#150455, Tim-Philipp Müller)

* tests/strfunc-test.c (main): Add a test for g_strv_length().

20 years agoOn Win32, as last resort call g_win32_getlocale() to get the current
Tor Lillqvist [Wed, 8 Sep 2004 22:44:22 +0000 (22:44 +0000)]
On Win32, as last resort call g_win32_getlocale() to get the current

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

* glib/gutils.c (guess_category_value): On Win32, as last resort
call g_win32_getlocale() to get the current thread locale. There
usually aren't any POSIXish LANG or LC_* environment variables
present on Windows machines.

* glib/glib.def: Add g_get_language_names.

20 years agoAdd a function to return a list of applicable locale names. (#95587,
Matthias Clasen [Tue, 7 Sep 2004 18:37:10 +0000 (18:37 +0000)]
Add a function to return a list of applicable locale names. (#95587,

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

* glib/gutils.h:
* glib/gutils.c (g_get_language_names): Add a function to
return a list of applicable locale names.  (#95587,
Hidetoshi Tajima)
(guess_category_value, compute_locale_variants):
(explode_locale, unalias_lang, read_aliases): Helper
functions for g_get_language_names()

* tests/testglib.c (main): Show the results of
g_get_language_names()

20 years agoUpdated Norwegian Nynorsk translation.
Åsmund Skjæveland [Mon, 6 Sep 2004 19:30:58 +0000 (19:30 +0000)]
Updated Norwegian Nynorsk translation.

2004-09-06  Åsmund Skjæveland <aasmunds@fys.uio.no>

* nn.po: Updated Norwegian Nynorsk translation.

20 years agoRemove excess markup and fix a markup error.
Matthias Clasen [Mon, 6 Sep 2004 05:56:47 +0000 (05:56 +0000)]
Remove excess markup and fix a markup error.

Mon Sep  6 01:56:13 2004  Matthias Clasen  <maclas@gmx.de>

* glib/tmpl/messages.sgml: Remove excess markup and fix a markup
error.

20 years agoupdated by Misu Moldovan
Marius Andreiana [Sun, 5 Sep 2004 09:38:35 +0000 (09:38 +0000)]
updated by Misu Moldovan

2004-09-05  Marius Andreiana <marius galuna.ro>

        * ro.po: updated by Misu Moldovan

20 years agoNew function to install an alternate default log handler. (#66387, Darin
Matthias Clasen [Sun, 5 Sep 2004 05:46:33 +0000 (05:46 +0000)]
New function to install an alternate default log handler. (#66387, Darin

Sun Sep  5 01:46:11 2004  Matthias Clasen  <maclas@gmx.de>

* glib/glib.def:
* glib/gmessages.h:
* glib/gmessages.c (g_log_set_default_handler): New
function to install an alternate default log
handler.  (#66387, Darin Adler)

20 years agoUpdate.
Tor Lillqvist [Fri, 3 Sep 2004 20:23:39 +0000 (20:23 +0000)]
Update.

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

* glib/glib.def: Update.

20 years agoAdd g_date_get_iso8601_week_of_year.
Matthias Clasen [Thu, 2 Sep 2004 00:28:33 +0000 (00:28 +0000)]
Add g_date_get_iso8601_week_of_year.

Wed Sep  1 20:27:59 2004  Matthias Clasen  <maclas@gmx.de>

* glib/glib-sections.txt: Add g_date_get_iso8601_week_of_year.

20 years agoAdd a function to calculate the ISO 8601 week number of a date. (#92579,
Matthias Clasen [Thu, 2 Sep 2004 00:27:27 +0000 (00:27 +0000)]
Add a function to calculate the ISO 8601 week number of a date. (#92579,

Wed Sep  1 20:22:39 2004  Matthias Clasen  <maclas@gmx.de>

* glib/gdate.h:
* glib/gdate.c (g_date_get_iso8601_week_of_year): Add
a function to calculate the ISO 8601 week number of
a date.  (#92579, Niklas Lundell)

20 years agoSet program name before calling the pre-parse hooks.
Anders Carlsson [Wed, 1 Sep 2004 17:35:59 +0000 (17:35 +0000)]
Set program name before calling the pre-parse hooks.

2004-09-01  Anders Carlsson  <andersca@gnome.org>

* glib/goption.c: (g_option_context_parse):
Set program name before calling the pre-parse hooks.

20 years agoHandle option contexts without a main group.
Anders Carlsson [Wed, 1 Sep 2004 17:31:43 +0000 (17:31 +0000)]
Handle option contexts without a main group.

2004-09-01  Anders Carlsson  <andersca@gnome.org>

* glib/goption.c: (g_option_context_free), (print_help),
(g_option_context_parse):
Handle option contexts without a main group.

* tests/option-test.c: (empty_test2), (main):
Add test case for that.

20 years agoUpdated Spanish translation.
Francisco Javier F. Serrador [Tue, 31 Aug 2004 21:37:05 +0000 (21:37 +0000)]
Updated Spanish translation.

2004-08-31  Francisco Javier F. Serrador  <serrador@cvs.gnome.org>

* es.po: Updated Spanish translation.

20 years agoSet prgname to <unknown> if argc and argv are NULL.
Anders Carlsson [Mon, 30 Aug 2004 20:40:52 +0000 (20:40 +0000)]
Set prgname to <unknown> if argc and argv are NULL.

2004-08-30  Anders Carlsson  <andersca@gnome.org>

* glib/goption.c: (g_option_context_parse):
Set prgname to <unknown> if argc and argv are NULL.

* tests/option-test.c: (empty_test1), (main):
Add test case for that.

20 years agoPoint to g_hash_table_lookup_extended() for differentiation between
Matthias Clasen [Mon, 30 Aug 2004 03:59:59 +0000 (03:59 +0000)]
Point to g_hash_table_lookup_extended() for differentiation between

Sun Aug 29 23:58:38 2004  Matthias Clasen  <maclas@gmx.de>

* glib/ghash.c (g_hash_table_lookup): Point to
g_hash_table_lookup_extended() for differentiation between
not-found and value-is-NULL.  (#150960, Morten Welinder)

20 years agoFix a typo. (#151109, Stepan Kasal)
Matthias Clasen [Mon, 30 Aug 2004 03:54:01 +0000 (03:54 +0000)]
Fix a typo. (#151109, Stepan Kasal)

Sun Aug 29 23:50:45 2004  Matthias Clasen  <maclas@gmx.de>

* glib/tmpl/fileutils.sgml: Fix a typo.  (#151109, Stepan Kasal)

20 years agoFix #151193, Stepan Kasal:
Matthias Clasen [Fri, 27 Aug 2004 14:57:34 +0000 (14:57 +0000)]
Fix #151193, Stepan Kasal:

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

Fix #151193, Stepan Kasal:

* glib/gfileutils.c (g_file_error_from_errno):
* glib/gfileutils.h (enum GFileError): Add G_FILE_ERROR_NOSYS.

20 years agoSet the program name from argv[0], noticed by Masatake YAMATO.
Matthias Clasen [Fri, 27 Aug 2004 04:49:02 +0000 (04:49 +0000)]
Set the program name from argv[0], noticed by Masatake YAMATO.

Fri Aug 27 00:45:41 2004  Matthias Clasen  <maclas@gmx.de>

* glib/goption.c (g_option_context_parse): Set the program name
from argv[0], noticed by Masatake YAMATO.

20 years agoTest the new XDG basedir functions.
Tor Lillqvist [Thu, 26 Aug 2004 00:08:46 +0000 (00:08 +0000)]
Test the new XDG basedir functions.

2004-08-26  Tor Lillqvist  <tml@iki.fi>

* tests/testglib.c (main): Test the new XDG basedir functions.

20 years agoNew function. Returns the Windows version code like GetVersion(), except
Tor Lillqvist [Wed, 25 Aug 2004 15:32:50 +0000 (15:32 +0000)]
New function. Returns the Windows version code like GetVersion(), except

2004-08-25  Tor Lillqvist  <tml@iki.fi>

* glib/gwin32.c (g_win32_get_windows_version): New
function. Returns the Windows version code like GetVersion(),
except that one can pretend to be running on Win9x by setting the
G_WIN32_PRETEND_WIN9X environment variable. This is mainly for
debugging purposed.

* glib/gwin32.h: Declare it. Define macros G_WIN32_WINDOWS_IS_NT_BASED
and G_WIN32_HAVE_WIDECHAR_API to test Windows features at run-time.

20 years agoVersion bump.
Matthias Clasen [Wed, 25 Aug 2004 05:26:59 +0000 (05:26 +0000)]
Version bump.

20 years ago2.5.2 GLIB_2_5_2
Matthias Clasen [Wed, 25 Aug 2004 05:02:57 +0000 (05:02 +0000)]
2.5.2

20 years agoUpdate for 2.5.2
Matthias Clasen [Wed, 25 Aug 2004 04:30:09 +0000 (04:30 +0000)]
Update for 2.5.2

20 years agoWin32 equivalences of the XDG folders
Tor Lillqvist [Wed, 25 Aug 2004 00:39:13 +0000 (00:39 +0000)]
Win32 equivalences of the XDG folders

2004-08-25  Tor Lillqvist  <tml@iki.fi>

Win32 equivalences of the XDG folders

* glib/gutils.c (get_special_folder): New function, calls
SHGetSpecialFolderLocation() to get path to places like the My
Documents folder.
(g_get_any_init): Use CSIDL_PROFILE as HOME if not
overridden by env vars.
(g_get_user_data_dir): Use CSIDL_PERSONAL.
(g_get_user_config_dir): Use CSIDL_APPDATA.
(g_get_user_cache_dir): Use CSIDL_INTERNET_CACHE. Debatable...
(g_get_system_data_dirs): Use CSIDL_COMMON_APPDATA and
CSIDL_COMMON_DOCUMENTS.
(g_get_system_config_dirs): Use CSIDL_COMMON_APPDATA.

* configure.in: Add -lole32 to G_LIBS_EXTRA for mingw.

* glib/glib.def: Add the new functions.

20 years agoUpdated Nepali Translation
Pawan Chitrakar [Tue, 24 Aug 2004 10:20:25 +0000 (10:20 +0000)]
Updated Nepali Translation

2004-08-23  Pawan Chitrakar  <pawan@nplinux.org>

* ne.po: Updated Nepali Translation

20 years agoremove unused variable.
Manish Singh [Mon, 23 Aug 2004 23:15:08 +0000 (23:15 +0000)]
remove unused variable.

Mon Aug 23 16:16:35 2004  Manish Singh  <yosh@gimp.org>

        * glib/goption.c (g_option_group_add_entries): remove unused
        variable.

20 years agoAdd an example for g_on_error_query() usage. (#148716, Christian Persch)
Matthias Clasen [Mon, 23 Aug 2004 17:56:35 +0000 (17:56 +0000)]
Add an example for g_on_error_query() usage. (#148716, Christian Persch)

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

* glib/tmpl/warnings.sgml: Add an example for
g_on_error_query() usage.  (#148716, Christian Persch)

20 years agoUpdated Basque translation.
Iñaki Larrañaga [Mon, 23 Aug 2004 11:30:51 +0000 (11:30 +0000)]
Updated Basque translation.

2004-08-23  Iñaki Larrañaga  <dooteo@euskalgnu.org>

        * eu.po: Updated Basque translation.

20 years agoDon't call g_get_home_dir() while holding the g_utils_global lock, simply
Matthias Clasen [Mon, 23 Aug 2004 05:36:48 +0000 (05:36 +0000)]
Don't call g_get_home_dir() while holding the g_utils_global lock, simply

Mon Aug 23 01:35:18 2004  Matthias Clasen  <maclas@gmx.de>

* glib/gutils.c (g_get_user_cache_dir):
* glib/gutils.c (g_get_user_config_dir):
* glib/gutils.c (g_get_user_data_dir): Don't call g_get_home_dir()
while holding the g_utils_global lock, simply use g_home_dir.
(#150695, Jody Goldberg)

20 years agoTell select_thread to break out of its loop. Prevents a thread leak.
Tor Lillqvist [Sat, 21 Aug 2004 21:29:35 +0000 (21:29 +0000)]
Tell select_thread to break out of its loop. Prevents a thread leak.

2004-08-21  Tor Lillqvist  <tml@iki.fi>

* glib/giowin32.c (g_io_win32_finalize): Tell select_thread to
break out of its loop. Prevents a thread leak. (#147392, Peter
Zelezny)

20 years agoGuard against bogus return value from strxfrm(). For instance Microsoft's
Tor Lillqvist [Sat, 21 Aug 2004 13:43:51 +0000 (13:43 +0000)]
Guard against bogus return value from strxfrm(). For instance Microsoft's

2004-08-21  Tor Lillqvist  <tml@iki.fi>

* glib/gunicollate.c (g_utf8_collate_key): Guard against bogus
return value from strxfrm(). For instance Microsoft's strxfrm()
returns INT_MAX on errors. (#141124)

20 years agoCorrect source and destination charset parameter order in g_convert()
Tor Lillqvist [Thu, 19 Aug 2004 23:38:38 +0000 (23:38 +0000)]
Correct source and destination charset parameter order in g_convert()

2004-08-19  Tor Lillqvist  <tml@iki.fi>

* glib/gunicollate.c (g_utf8_collate, g_utf8_collate_key): Correct
source and destination charset parameter order in g_convert()
call. (#150394, possibly also #141124)

20 years agoRemove trailing commas.
Jon Kåre Hellan [Thu, 19 Aug 2004 22:12:33 +0000 (22:12 +0000)]
Remove trailing commas.

20 years agoCheck for all four values of the visibility attribute; gcc 2.96 seems to
Matthias Clasen [Tue, 17 Aug 2004 20:28:24 +0000 (20:28 +0000)]
Check for all four values of the visibility attribute; gcc 2.96 seems to

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

* configure.in: Check for all four values of the
visibility attribute; gcc 2.96 seems to miss
"default".  (#150379, Vincent Noel)

20 years agoAdded "bs" to ALL_LINGUAS. Added Bosnian translation by Kenan Hadžiavdić
Christian Rose [Mon, 16 Aug 2004 17:00:37 +0000 (17:00 +0000)]
Added "bs" to ALL_LINGUAS. Added Bosnian translation by Kenan Hadžiavdić

2004-08-16  Christian Rose  <menthos@menthos.com>

* configure.in: Added "bs" to ALL_LINGUAS.
* po/bs.po: Added Bosnian translation by
Kenan Hadžiavdić <kenanh@frisurf.no>.

20 years agoUnified po headers for Finnish Team
Tommi Vainikainen [Fri, 13 Aug 2004 19:46:09 +0000 (19:46 +0000)]
Unified po headers for Finnish Team

20 years agoDocument the necessity to call g_thread_init() when using threads (even
Matthias Clasen [Thu, 12 Aug 2004 15:00:35 +0000 (15:00 +0000)]
Document the necessity to call g_thread_init() when using threads (even

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

* glib/tmpl/threads.sgml: Document the necessity to call
g_thread_init() when using threads
(even non-gthreads).  (#149490, Vincent Untz)

20 years agoAdd new XDG basedir API (bug 139973).
Ray Strode [Wed, 11 Aug 2004 17:53:05 +0000 (17:53 +0000)]
Add new XDG basedir API (bug 139973).

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

* docs/reference/glib/glib-sections.txt:
* glib/gutils.[ch] (g_get_user_data_dir),
(g_get_user_config_dir), (g_get_user_cache_dir),
(g_get_system_data_dirs), (g_get_system_config_dirs):
Add new XDG basedir API (bug 139973).

20 years agoRemove G_GNUC_INTERNAL from here. Check whether the visibility attribute
Matthias Clasen [Tue, 10 Aug 2004 18:52:30 +0000 (18:52 +0000)]
Remove G_GNUC_INTERNAL from here. Check whether the visibility attribute

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

* glib/gmacros.h: Remove G_GNUC_INTERNAL from here.
* configure.in: Check whether the visibility attribute
works and define G_HAVE_GNUC_VISIBILITY and
G_GNUC_INTERNAL in glibconfig.h correspondingly.

20 years agoDefine empty if gcc is too old.
Matthias Clasen [Mon, 9 Aug 2004 21:39:39 +0000 (21:39 +0000)]
Define empty if gcc is too old.

Mon Aug  9 17:37:56 2004  Matthias Clasen  <maclas@gmx.de>

* glib/gmacros.h (G_GNUC_INTERNAL): Define empty if gcc is too old.

20 years agoAdded Gujarati & Panjabi
Ankitkumar Rameshchandra Patel [Mon, 9 Aug 2004 06:55:22 +0000 (06:55 +0000)]
Added Gujarati & Panjabi

20 years agoupdated
Hans Breuer [Fri, 6 Aug 2004 18:22:46 +0000 (18:22 +0000)]
updated

2004-08-06  Hans Breuer  <hans@breuer.org>

* glib/makefile.msc.in glib/glib.def : updated

* glib/gutils.c : avoid 'inconsitent dll linkage' by not
defining extern char** environ with msvc

20 years agoRequire ngettext. (#123847, Danilo Segan)
Matthias Clasen [Fri, 6 Aug 2004 17:26:28 +0000 (17:26 +0000)]
Require ngettext. (#123847, Danilo Segan)

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

* m4macros/glib-gettext.m4: Require ngettext.  (#123847,
Danilo Segan)

20 years agostrdup result so caller doesn't free internally managed memory.
Ray Strode [Thu, 5 Aug 2004 20:53:25 +0000 (20:53 +0000)]
strdup result so caller doesn't free internally managed memory.

Thu Aug  5 20:53:00 2004  Ray Strode  <rstrode@redhat.com>

* glib/gutils.h (g_get_codeset): strdup result so caller
doesn't free internally managed memory.

20 years agoankit@redhat.com 05/08/04
Ankitkumar Rameshchandra Patel [Thu, 5 Aug 2004 05:17:06 +0000 (05:17 +0000)]
ankit@redhat.com 05/08/04

20 years agoUpdate to match what configure produces. Add the G_ATOMIC_*. Define
Tor Lillqvist [Wed, 4 Aug 2004 23:12:53 +0000 (23:12 +0000)]
Update to match what configure produces. Add the G_ATOMIC_*. Define

2004-08-04  Tor Lillqvist  <tml@iki.fi>

* config.h.win32.in: Update to match what configure produces. Add
the G_ATOMIC_*. Define G_ATOMIC_I486 when compiling with gcc. Move
HAVE_INT64_AND_I64 to where the configure script puts it. Add
HAVE_INTTYPES_H_WITH_UINTMAX. Define intmax_t as __int64 for MSVC.

20 years agoAdd a section for GOption. Include GOption section. New template.
Matthias Clasen [Tue, 3 Aug 2004 20:44:24 +0000 (20:44 +0000)]
Add a section for GOption. Include GOption section. New template.

Tue Aug  3 16:43:22 2004  Matthias Clasen  <maclas@gmx.de>

* glib/glib-sections.txt: Add a section for GOption.
* glib/glib-docs.sgml: Include GOption section.
* glib/tmpl/option.sgml: New template.

20 years agoMark user visible strings for translation.
Matthias Clasen [Tue, 3 Aug 2004 20:23:05 +0000 (20:23 +0000)]
Mark user visible strings for translation.

Tue Aug  3 16:19:44 2004  Matthias Clasen  <maclas@gmx.de>

* glib/goption.c: Mark user visible strings for translation.

20 years agoPedantically use g types throughout.
Matthias Clasen [Tue, 3 Aug 2004 19:52:49 +0000 (19:52 +0000)]
Pedantically use g types throughout.

Tue Aug  3 15:50:55 2004  Matthias Clasen  <maclas@gmx.de>

* glib/goption.[hc]: Pedantically use g types throughout.

20 years agoNew function to check the version of GLib at runtime. (#149175, Michael
Matthias Clasen [Tue, 3 Aug 2004 19:41:02 +0000 (19:41 +0000)]
New function to check the version of GLib at runtime. (#149175, Michael

Tue Aug  3 14:58:20 2004  Matthias Clasen  <maclas@gmx.de>

* glib/gutils.h:
* glib/gutils.c (glib_check_version): New function to
check the version of GLib at runtime.  (#149175, Michael Natterer)

20 years agoMove GTranslateFunc to gtypes.h
Anders Carlsson [Mon, 2 Aug 2004 22:24:17 +0000 (22:24 +0000)]
Move GTranslateFunc to gtypes.h

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

* glib/goption.h:
* glib/gtypes.h:
Move GTranslateFunc to gtypes.h

20 years agoAdd GOption.
Anders Carlsson [Mon, 2 Aug 2004 21:40:40 +0000 (21:40 +0000)]
Add GOption.

2004-08-02  Anders Carlsson  <andersca@gnome.org>

* glib/Makefile.am:
* glib/glib.h:
* glib/goption.c:
* glib/goption.h:
* tests/.cvsignore:
* tests/Makefile.am:
* tests/option-test.c:
Add GOption.

20 years agoAdd a G_GNUC_INTERNAL macro to mark function declarations as internal and
Matthias Clasen [Mon, 2 Aug 2004 15:34:30 +0000 (15:34 +0000)]
Add a G_GNUC_INTERNAL macro to mark function declarations as internal and

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

* glib/gmacros.h: Add a G_GNUC_INTERNAL macro to mark function
declarations as internal and avoid PLT indirections for
them.  (#145465, Arjan van de Ven)

* glib/gunicodeprivate.h:
* glib/gthreadinit.h:
* glib/gmessages.h:
* glib/gdebug.h:
* glib/gconvert.c: Use G_GNUC_INTERNAL for _g_charset_get_aliases(),
_g_debug_init(), _g_log_fallback_handler(), _g_mem_thread_init(),
_g_messages_thread_init(), _g_convert_thread_init(),
_g_rand_thread_init(), _g_main_thread_init(), _g_atomic_thread_init(),
_g_mem_thread_private_init(), _g_messages_thread_private_init(),
_g_utf8_normalize_wc() and _g_unichar_combining_class().

* glib/gatomic.c: Include gthreadinit.h here to see the declaration
for _g_atomic_thread_init().

20 years agoInclude gthreadinit.h here to see the declaration for
Matthias Clasen [Mon, 2 Aug 2004 15:12:19 +0000 (15:12 +0000)]
Include gthreadinit.h here to see the declaration for

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

* glib/gatomic.c: Include gthreadinit.h here to see the declaration
for _g_atomic_thread_init().

20 years agomove newline printing from run_from_uri_tests() to run_roundtrip_tests().
Manish Singh [Sun, 1 Aug 2004 20:21:02 +0000 (20:21 +0000)]
move newline printing from run_from_uri_tests() to run_roundtrip_tests().

Sun Aug  1 13:19:18 2004  Manish Singh  <yosh@gimp.org>

        * tests/uri-test.c: move newline printing from run_from_uri_tests()
        to run_roundtrip_tests().

20 years ago*** empty log message ***
Matthias Clasen [Sun, 1 Aug 2004 04:35:24 +0000 (04:35 +0000)]
*** empty log message ***