Matthias Clasen [Tue, 23 Nov 2004 19:40:13 +0000 (19:40 +0000)]
Forgotten commit.
Matthias Clasen [Tue, 23 Nov 2004 19:39:07 +0000 (19:39 +0000)]
Forgotten commit
Matthias Clasen [Tue, 23 Nov 2004 18:22:55 +0000 (18:22 +0000)]
Don't mark g_option_error_quark() as const, to be consistent with all the
2004-11-23 Matthias Clasen <mclasen@redhat.com>
* glib/goption.h: Don't mark g_option_error_quark() as const,
to be consistent with all the other error_quark functions.
(technically they are const, but since these are called only
in error paths, giving the compiler better optimization
opportunities doesn't matter much)
Matthias Clasen [Tue, 23 Nov 2004 17:56:58 +0000 (17:56 +0000)]
Fix a problem with the PLT reduction changes which caused the internal
2004-11-23 Matthias Clasen <mclasen@redhat.com>
Fix a problem with the PLT reduction changes which caused the
internal aliases to lose all attributes.
* glib/glib.symbols: Add attribute annotations.
* glib/makegalias.pl: Keep attribute annotations, but strip PRIVATE.
* glib/Makefile.am (glib.def): Strip attribute annotations, but keep
PRIVATE.
Francisco Javier F. Serrador [Mon, 22 Nov 2004 21:57:58 +0000 (21:57 +0000)]
Updated Spanish translation.
2004-11-22 Francisco Javier F. Serrador <serrador@cvs.gnome.org>
* es.po: Updated Spanish translation.
Funda Wang [Mon, 22 Nov 2004 00:34:18 +0000 (00:34 +0000)]
Updated Simplified Chinese translation
David Lodge [Sun, 21 Nov 2004 21:31:45 +0000 (21:31 +0000)]
Updated British translation.
2004-11-21 David Lodge <dave@cirt.net>
* en_GB.po: Updated British translation.
Hans Breuer [Sun, 21 Nov 2004 20:23:34 +0000 (20:23 +0000)]
updated
2004-11-21 Hans Breuer <hans@breuer.org>
* **/makefile.msc : updated
Laurent Dhima [Sat, 20 Nov 2004 15:31:43 +0000 (15:31 +0000)]
Updated Albanian translation.
2004-11-20 Laurent Dhima <laurenti@alblinux.net>
* sq.po: Updated Albanian translation.
Manish Singh [Fri, 19 Nov 2004 22:29:52 +0000 (22:29 +0000)]
shut up CVS
Adam Weinberger [Thu, 18 Nov 2004 23:05:51 +0000 (23:05 +0000)]
Updated Canadian English translation.
* en_CA.po: Updated Canadian English translation.
Miloslav Trmac [Thu, 18 Nov 2004 20:51:51 +0000 (20:51 +0000)]
Updated Czech translation.
2004-11-18 Miloslav Trmac <mitr@volny.cz>
* cs.po: Updated Czech translation.
Matthias Clasen [Wed, 17 Nov 2004 13:30:52 +0000 (13:30 +0000)]
Add gkeyfile.c
Matthias Clasen [Wed, 17 Nov 2004 03:38:39 +0000 (03:38 +0000)]
Support gmodule-no-export.
2004-11-16 Matthias Clasen <mclasen@redhat.com>
* m4macros/glib-2.0.m4 (AM_PATH_GLIB_2_0): Support gmodule-no-export.
Matthias Clasen [Wed, 17 Nov 2004 03:33:05 +0000 (03:33 +0000)]
Add gmodule-no-export-2.0.pc.in
2004-11-16 Matthias Clasen <mclasen@redhat.com>
* Makefile.am (EXTRA_DIST):
* configure.in (AC_CONFIG_FILES): Add gmodule-no-export-2.0.pc.in
* gmodule-no-export-2.0.pc.in: Add a variants of gmodule-2.0.pc.in
which doesn't add -Wl,--export-dynamic, since Pango or GTK+ don't
need it. (#125627, Owen Taylor)
Matthias Clasen [Wed, 17 Nov 2004 01:29:29 +0000 (01:29 +0000)]
*** empty log message ***
Hendrik Richter [Mon, 15 Nov 2004 14:47:36 +0000 (14:47 +0000)]
Updated German translation.
Updated German translation.
Matthias Clasen [Mon, 15 Nov 2004 13:50:31 +0000 (13:50 +0000)]
Use S_ISREG(), since S_IFMT and S_IFREG are apprarently missing on some
2004-11-15 Matthias Clasen <mclasen@redhat.com>
* glib/gkeyfile.c (g_key_file_load_from_fd): Use S_ISREG(), since
S_IFMT and S_IFREG are apprarently missing on some systems (they
are SUS, but not Posix). (#158263)
Matthias Clasen [Fri, 12 Nov 2004 18:16:10 +0000 (18:16 +0000)]
Bump version.
2004-11-12 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version.
Matthias Clasen [Fri, 12 Nov 2004 17:15:54 +0000 (17:15 +0000)]
2.5.6
J. Ali Harlow [Thu, 11 Nov 2004 14:48:45 +0000 (14:48 +0000)]
Use embedded tab rather than '\t' escape sequence. (#157951)
2004-11-11 J. Ali Harlow <ali@juiblex.co.uk>
* gobject/Makefile.am:
* glib/Makefile.am (gtk.def): Use embedded tab rather than '\t'
escape sequence. (#157951)
Tor Lillqvist [Wed, 10 Nov 2004 14:26:27 +0000 (14:26 +0000)]
Fix typo in doc comment.
2004-11-10 Tor Lillqvist <tml@iki.fi>
* glib/gconvert.c (g_get_filename_charsets): Fix typo in doc
comment.
Matthias Clasen [Wed, 10 Nov 2004 05:54:48 +0000 (05:54 +0000)]
Updates
2004-11-10 Matthias Clasen <mclasen@redhat.com>
* NEWS: Updates
Funda Wang [Tue, 9 Nov 2004 15:04:05 +0000 (15:04 +0000)]
Updated Simplified Chinese translation
Baris Cicek [Mon, 8 Nov 2004 22:02:26 +0000 (22:02 +0000)]
Updated Turkish Translation
* tr.po: Updated Turkish Translation
Matthias Clasen [Mon, 8 Nov 2004 19:14:04 +0000 (19:14 +0000)]
Add G_TRAVERSE_LEAVES and G_TRAVERSE_NON_LEAVES as alternative names for
2004-11-08 Matthias Clasen <mclasen@redhat.com>
* glib/gnode.h (enum GTraverseFlags): Add G_TRAVERSE_LEAVES
and G_TRAVERSE_NON_LEAVES as alternative names for
G_TRAVERSE_LEAFS and G_TRAVERSE_NON_LEAFS, which are
grammatically brutal. (#138853, Morten Welinder)
Manish Singh [Mon, 8 Nov 2004 18:49:54 +0000 (18:49 +0000)]
removed wrap_g_io_channel_ref() hack, since g_io_channel_ref() has a
Mon Nov 8 10:47:41 2004 Manish Singh <yosh@gimp.org>
* gobject/gsourceclosure.c: removed wrap_g_io_channel_ref() hack,
since g_io_channel_ref() has a compatible API now.
Manish Singh [Mon, 8 Nov 2004 18:49:35 +0000 (18:49 +0000)]
glib/gasyncqueue.c glib/ghook.c g_return_if_fail -> g_return_val_if_fail
Mon Nov 8 10:45:50 2004 Manish Singh <yosh@gimp.org>
* glib/gasyncqueue.c
* glib/ghook.c
* glib/giochannel.c: g_return_if_fail -> g_return_val_if_fail
* glib/gmain.c: Ditto, plus also make g_main_context_ref() actually
return the passed in pointer.
Matthias Clasen [Mon, 8 Nov 2004 18:26:56 +0000 (18:26 +0000)]
Make g_io_channel_ref(), g_main_context_ref(), g_hook_ref(),
2004-11-08 Matthias Clasen <mclasen@redhat.com>
* glib/gasyncqueue.[hc]:
* glib/ghook.[hc]:
* glib/gmain.[hc]:
* glib/giochannel.[hc]: Make g_io_channel_ref(),
g_main_context_ref(), g_hook_ref(), g_async_queue_ref()
return the passed in pointer. (#151663, Manish Singh)
Matthias Clasen [Mon, 8 Nov 2004 15:34:26 +0000 (15:34 +0000)]
Initialize child_watch_count to 1, so that we don't miss the very first
2004-11-08 Matthias Clasen <mclasen@redhat.com>
* glib/gmain.c: Initialize child_watch_count to 1, so
that we don't miss the very first child if it exits
before we set up the child watch. In that case we had
previously source->count == child_watch_count == 0,
causing g_child_watch_check() to skip the waitpid()
call. (#154827, Gustavo Carneiro)
* glib/gmain.c (g_child_watch_source_init_single)
(g_child_watch_source_init_multi_threaded): Use sigaction()
instead of signal(). (#136867, Jonas Jonsson, patch by
Archana Shah)
Matthias Clasen [Sun, 7 Nov 2004 06:29:58 +0000 (06:29 +0000)]
Work around an bug in Mac OS < 10.3. (#156446, Dave MacLachlan)
2004-11-07 Matthias Clasen <mclasen@redhat.com>
* glib/gutils.c (g_get_any_init): Work around an bug
in Mac OS < 10.3. (#156446, Dave MacLachlan)
Tor Lillqvist [Sat, 6 Nov 2004 03:26:56 +0000 (03:26 +0000)]
Cosmetics: move the G_GNUC_INTERNAL define to the same place where it is
2004-11-06 Tor Lillqvist <tml@iki.fi>
* glibconfig.h.win32.in: Cosmetics: move the G_GNUC_INTERNAL
define to the same place where it is in a configure-generated
glibconfig.h
Matthias Clasen [Fri, 5 Nov 2004 16:09:02 +0000 (16:09 +0000)]
Portability fixes and extra sanity checks. (#157453, Morten Welinder)
2004-11-05 Matthias Clasen <mclasen@redhat.com>
* tests/strtod-test.c: Portability fixes and extra sanity
checks. (#157453, Morten Welinder)
Martin Willemoes Hansen [Fri, 5 Nov 2004 15:00:10 +0000 (15:00 +0000)]
da.po: Quick fix
Mathieu Lacage [Fri, 5 Nov 2004 08:45:17 +0000 (08:45 +0000)]
fix typo
Mathieu Lacage [Fri, 5 Nov 2004 07:33:28 +0000 (07:33 +0000)]
integrate patches by Sylvain Foret
Matthias Clasen [Fri, 5 Nov 2004 03:21:24 +0000 (03:21 +0000)]
Handle numbers like 1e1, nan, -infinity. Also try harder to preserve
2004-11-04 Matthias Clasen <mclasen@redhat.com>
* glib/gstrfuncs.c (g_ascii_strtod): Handle numbers like
1e1, nan, -infinity. Also try harder to preserve errno.
(#156421, Morten Welinder)
* tests/strtod-test.c: Add testcases.
Mathieu Lacage [Thu, 4 Nov 2004 15:14:23 +0000 (15:14 +0000)]
improve a bit the introduction
Mathieu Lacage [Thu, 4 Nov 2004 14:55:05 +0000 (14:55 +0000)]
forgot to add this file.
Mathieu Lacage [Thu, 4 Nov 2004 14:52:33 +0000 (14:52 +0000)]
integrate patch from Stefan Kost
Martin Willemoes Hansen [Thu, 4 Nov 2004 12:40:45 +0000 (12:40 +0000)]
Updated Danish translation.
* da.po: Updated Danish translation.
Tor Lillqvist [Thu, 4 Nov 2004 00:41:58 +0000 (00:41 +0000)]
Improve G_WIN32_HAVE_WIDECHAR_API documentation.
2004-11-04 Tor Lillqvist <tml@iki.fi>
* glib/tmpl/windows.sgml: Improve G_WIN32_HAVE_WIDECHAR_API
documentation.
* glib/tmpl/option.sgml: Document G_OPTION_FLAG_REVERSE.
Tor Lillqvist [Thu, 4 Nov 2004 00:40:06 +0000 (00:40 +0000)]
Add G_OPTION_FLAG_REVERSE, to reverse the sense of a G_OPTION_ARG_NONE
2004-11-04 Tor Lillqvist <tml@iki.fi>
* glib/goption.h (enum GOptionFlags): Add G_OPTION_FLAG_REVERSE,
to reverse the sense of a G_OPTION_ARG_NONE (boolean) option.
* glib/goption.c (parse_arg): Obey the above flag.
Tor Lillqvist [Thu, 4 Nov 2004 00:37:47 +0000 (00:37 +0000)]
Document that the result is guaranteed to be non-NULL.
2004-11-04 Tor Lillqvist <tml@iki.fi>
* glib/gconvert.c (g_filename_display_name): Document that the
result is guaranteed to be non-NULL.
* glib/gfileutils.c (get_contents_stdio, get_contents_regfile,
get_contents_posix, get_contents_win32, g_file_open_tmp,
g_file_read_link): Use g_filename_display_name() for error
messages.
(g_mkstemp): Document that the template should be in the GLib file
name encoding.
(g_file_open_tmp): Ditto. Also document that the actual name
returned is also in the GLib file name encoding.
Tor Lillqvist [Thu, 4 Nov 2004 00:20:27 +0000 (00:20 +0000)]
Argument is in UTF-8. Use wide character Win32 API if present.
2004-11-04 Tor Lillqvist <tml@iki.fi>
* gmodule-win32.c (_g_module_open): Argument is in UTF-8. Use wide
character Win32 API if present.
* gmodule.c (parse_libtool_archive, g_module_open): Convert file
name to UTF-8 before storing in the error message string.
* gmodule.c (parse_libtool_archive): Use g_open().
Updated ja.po. T.Aihana [Wed, 3 Nov 2004 14:11:16 +0000 (14:11 +0000)]
2004-11-03 Updated ja.po. T.Aihana <aihana@gnome.gr.jp>
Matthias Clasen [Wed, 3 Nov 2004 06:48:54 +0000 (06:48 +0000)]
Add bug references.
Matthias Clasen [Tue, 2 Nov 2004 23:06:58 +0000 (23:06 +0000)]
*** empty log message ***
Matthias Clasen [Tue, 2 Nov 2004 23:05:30 +0000 (23:05 +0000)]
*** empty log message ***
Matthias Clasen [Tue, 2 Nov 2004 21:53:23 +0000 (21:53 +0000)]
*** empty log message ***
Matthias Clasen [Tue, 2 Nov 2004 21:42:16 +0000 (21:42 +0000)]
Forgotten ChangeLog
Matthias Clasen [Tue, 2 Nov 2004 21:29:33 +0000 (21:29 +0000)]
New function to convert a filename to a UTF-8 string for display purposes.
2004-11-02 Matthias Clasen <mclasen@redhat.com>
* glib/gconvert.c (g_filename_display_name): New function to
convert a filename to a UTF-8 string for display purposes.
(g_get_filename_charsets): New function to return the
encodings which are tried when converting a filename to
UTF-8.
Matthias Clasen [Tue, 2 Nov 2004 05:11:10 +0000 (05:11 +0000)]
Document that this function may not return.
2004-11-02 Matthias Clasen <mclasen@redhat.com>
* glib/goption.c (g_option_context_parse): Document that
this function may not return.
Matthias Clasen [Tue, 2 Nov 2004 04:46:02 +0000 (04:46 +0000)]
Make gtkdoc-scan happy by removing spaces between gchar and *.
2004-11-01 Matthias Clasen <mclasen@redhat.com>
* glib/gutils.h: Make gtkdoc-scan happy by removing spaces
between gchar and *.
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)
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.
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)
Matthias Clasen [Mon, 1 Nov 2004 17:52:02 +0000 (17:52 +0000)]
Documentation updates.
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.
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
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().
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().
Matthias Clasen [Sat, 30 Oct 2004 05:06:15 +0000 (05:06 +0000)]
Doc additions.
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.
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
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
Matthias Clasen [Fri, 29 Oct 2004 20:26:19 +0000 (20:26 +0000)]
Update.
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.
Matthias Clasen [Fri, 29 Oct 2004 18:43:34 +0000 (18:43 +0000)]
Document GOption
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)
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]
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)
Ray Strode [Thu, 28 Oct 2004 22:11:48 +0000 (22:11 +0000)]
fix whitespace in changelog entry
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.
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)
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.
Matthias Clasen [Thu, 28 Oct 2004 17:18:40 +0000 (17:18 +0000)]
Fix credits.
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)
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.
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.
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().
Tor Lillqvist [Thu, 28 Oct 2004 03:01:18 +0000 (03:01 +0000)]
Fix typo in bug number reference.
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.
Matthias Clasen [Wed, 27 Oct 2004 18:31:10 +0000 (18:31 +0000)]
Bump version
Matthias Clasen [Wed, 27 Oct 2004 17:56:33 +0000 (17:56 +0000)]
2.5.4
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
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.
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)
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)
Matthias Clasen [Tue, 26 Oct 2004 18:48:55 +0000 (18:48 +0000)]
Add a missing include.
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.
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.
Matthias Clasen [Tue, 26 Oct 2004 16:19:40 +0000 (16:19 +0000)]
Add new symbols.
Matthias Clasen [Tue, 26 Oct 2004 16:13:20 +0000 (16:13 +0000)]
Add a 2.6 index.
Matthias Clasen [Tue, 26 Oct 2004 16:10:52 +0000 (16:10 +0000)]
Documentation fixes.
Matthias Clasen [Tue, 26 Oct 2004 14:24:27 +0000 (14:24 +0000)]
Make the last change compile.
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.
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.
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)
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)