Commit Graph

3007 Commits

Author SHA1 Message Date
Manish Singh
adde534014 minor comment fix.
Sun Nov 28 12:07:29 2004  Manish Singh  <yosh@gimp.org>

        * tests/utf8-validate.c: minor comment fix.
2004-11-28 20:08:14 +00:00
Matthias Clasen
7735d799c5 Document G_GNUC_MALLOC.
2004-11-28  Matthias Clasen  <mclasen@redhat.com>

	* glib/tmpl/macros_misc.sgml: Document G_GNUC_MALLOC.

	* glib/glib-sections.txt: Add G_GNUC_MALLOC
2004-11-28 19:13:36 +00:00
Matthias Clasen
379e87466d Mark functions with G_GNUC_MALLOC when appropriate.
2004-11-28  Matthias Clasen  <mclasen@redhat.com>

	* glib/gconvert.h:
	* glib/gkeyfile.h:
	* glib/gmem.h:
	* glib/gstrfuncs.h:
	* glib/gunicode.h:
	* glib/gutils.h: Mark functions with G_GNUC_MALLOC when appropriate.

	* glib/glib.symbols: Add G_GNUC_MALLOC annotations.

	* glib/gmacros.h (G_GNUC_MALLOC): Add a macro for
	__attribute__((__malloc__)).  (#61780)
2004-11-28 19:12:04 +00:00
Tor Lillqvist
75a1d303ef glib/gutils.[hc] [Win32] Make also g_get_user_name() and g_get_real() name
2004-11-28  Tor Lillqvist  <tml@iki.fi>

	* glib/gutils.[hc]
	* glib/glib.symbols: [Win32] Make also g_get_user_name() and
	g_get_real() name return UTF-8. As for the similar changes to fix
	#101792, for DLL ABI stability we use preprocessor defines to get
	the new UTF-8 versions, and keep the old names for versions
	returning strings in the system codepage.

	Fix g_get_tmp_dir() and g_get_home_dir() to actually return UTF-8
	as was intended in the fix for bug #101792. (#159664, noticed by
	Robert Ögren)
2004-11-28 18:39:24 +00:00
Matthias Clasen
86c78552ec Optimizations; don't scan the entire text in find_current_text_end(),
2004-11-28  Matthias Clasen  <mclasen@redhat.com>

	* glib/gmarkup.c: Optimizations; don't scan the entire text
	in find_current_text_end(), split unescape_text() into multiple
	functions.  (#159001, Havoc Pennington)
2004-11-28 05:40:10 +00:00
4
c77ae3942c applied patch by sven@gimp.org (#153727) to reduce signal connection
Sun Nov 28 01:37:54 2004    <timj@birnet.org>

        * gsignal.c: applied patch by sven@gimp.org (#153727) to reduce
        signal connection complexity from O(n_handlers) to O(1).
2004-11-28 00:40:07 +00:00
Manish Singh
b90a0582ed Shut up cvs 2004-11-27 23:14:18 +00:00
Matthias Clasen
88baae805d Update the @flags documentation with references to GChildWatch and
2004-11-27  Matthias Clasen  <mclasen@redhat.com>

	* glib/gspawn.c (g_spawn_async_with_pipes): Update the @flags
	documentation with references to GChildWatch and
	g_spawn_close_pid().  (#136255, noted by Owen Taylor)
2004-11-27 05:24:12 +00:00
Matthias Clasen
40b4e103b4 Don't access invalid memory address if p wasn't increased. (#159557,
2004-11-26  Matthias Clasen  <mclasen@redhat.com>

	* glib/gkeyfile.c (g_key_file_parse_value_as_string):
	Don't access invalid memory address if p wasn't
	increased.  (#159557, Frederic Crozat)
2004-11-27 02:59:09 +00:00
Matthias Clasen
6b69bf8866 Add a testcase for the previous fix.
2004-11-25  Matthias Clasen  <mclasen@redhat.com>

	* tests/strtod-test.c (main): Add a testcase for the previous fix.

	* glib/gstrfuncs.c (g_ascii_strtod): Make it work again for floats
	starting with a decimal point, like .75  (#156421, Hans Breuer)
2004-11-26 04:40:41 +00:00
Manish Singh
43fde23cee filter out G_GNUC stuff when doing the compare.
Thu Nov 25 14:09:41 2004  Manish Singh  <yosh@gimp.org>

        * abicheck.sh: filter out G_GNUC stuff when doing the compare.
2004-11-25 22:10:25 +00:00
Manish Singh
ccc3c1c409 filter out G_GNUC stuff when doing the compare.
Thu Nov 25 14:02:43 2004  Manish Singh  <yosh@gimp.org>

        * glib/abicheck.sh: filter out G_GNUC stuff when doing the compare.

        * glib/gmessages.c (g_assert_warning): call abort() at the end, so
        gcc doesn't warn.
2004-11-25 22:09:30 +00:00
Kjartan Maraas
c2404e6cc9 Add «nb» to ALL_LINGUAS.
2004-11-25  Kjartan Maraas  <kmaraas@gnome.org>

	* configure.in: Add «nb» to ALL_LINGUAS.
2004-11-25 21:02:49 +00:00
Tor Lillqvist
567bf3a0b7 Use wide character API when available. Document that string parameters and
2004-11-24  Tor Lillqvist  <tml@iki.fi>

	* glib/gwin32.c (g_win32_error_message,
	get_package_directory_from_module,
	g_win32_get_package_installation_directory,
	g_win32_get_package_installation_subdirectory): Use wide character
	API when available. Document that string parameters and return
	values are in UTF-8.
2004-11-24 18:07:26 +00:00
Matthias Clasen
40fb4cff10 Replace g_utf8_validate() with an optimized version, and clarify the docs
2004-11-24  Matthias Clasen  <mclasen@redhat.com>

	* glib/gutf8.c: Replace g_utf8_validate() with an
	optimized version, and clarify the docs a bit.  (#159131,
	Owen Taylor)
2004-11-24 17:58:21 +00:00
Matthias Clasen
b8d9e050a4 Add utf8-validate.
2004-11-24  Matthias Clasen  <mclasen@redhat.com>

	* tests/Makefile.am (test_programs): Add utf8-validate.

	* tests/utf8-validate.c: Unit tests for g_utf8_validate().
2004-11-24 15:54:20 +00:00
Martin Willemoes Hansen
da8ca54be8 Updated Danish translation.
* da.po: Updated Danish translation.
2004-11-24 10:56:03 +00:00
Matthias Clasen
2a13c6f7a1 Typo fix 2004-11-23 19:43:41 +00:00
Matthias Clasen
c1dee8766e Forgotten commit. 2004-11-23 19:40:13 +00:00
Matthias Clasen
1ba499ea80 Forgotten commit 2004-11-23 19:39:07 +00:00
Matthias Clasen
ea23032ec8 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)
2004-11-23 18:22:55 +00:00
Matthias Clasen
0680744fbb 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.
2004-11-23 17:56:58 +00:00
Francisco Javier F. Serrador
1aa5b57737 Updated Spanish translation.
2004-11-22  Francisco Javier F. Serrador  <serrador@cvs.gnome.org>

	* es.po: Updated Spanish translation.
2004-11-22 21:57:58 +00:00
Funda Wang
dac5b7c72c Updated Simplified Chinese translation 2004-11-22 00:34:18 +00:00
David Lodge
824d28b134 Updated British translation.
2004-11-21  David Lodge <dave@cirt.net>

        * en_GB.po: Updated British translation.
2004-11-21 21:31:45 +00:00
Hans Breuer
425e5211ed updated
2004-11-21  Hans Breuer  <hans@breuer.org>

	* **/makefile.msc : updated
2004-11-21 20:23:34 +00:00
Laurent Dhima
e2f204c41c Updated Albanian translation.
2004-11-20  Laurent Dhima  <laurenti@alblinux.net>

	* sq.po: Updated Albanian translation.
2004-11-20 15:31:43 +00:00
Manish Singh
8a33bd9c04 shut up CVS 2004-11-19 22:29:52 +00:00
Adam Weinberger
510b858699 Updated Canadian English translation.
* en_CA.po: Updated Canadian English translation.
2004-11-18 23:05:51 +00:00
Miloslav Trmac
7215bcedcf Updated Czech translation.
2004-11-18  Miloslav Trmac  <mitr@volny.cz>

	* cs.po: Updated Czech translation.
2004-11-18 20:51:51 +00:00
Matthias Clasen
52deff0f2e Add gkeyfile.c 2004-11-17 13:30:52 +00:00
Matthias Clasen
51af5833f7 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.
2004-11-17 03:38:39 +00:00
Matthias Clasen
846e5140c3 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)
2004-11-17 03:33:05 +00:00
Matthias Clasen
f8b65c0a0e *** empty log message *** 2004-11-17 01:29:29 +00:00
Hendrik Richter
bce5fbb460 Updated German translation.
Updated German translation.
2004-11-15 14:47:36 +00:00
Matthias Clasen
035484a411 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)
2004-11-15 13:50:31 +00:00
Matthias Clasen
2691609ffc Bump version.
2004-11-12  Matthias Clasen  <mclasen@redhat.com>

	* configure.in: Bump version.
2004-11-12 18:16:10 +00:00
Matthias Clasen
98121469ec 2.5.6 2004-11-12 17:15:54 +00:00
J. Ali Harlow
6e6e8682c9 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)
2004-11-11 14:48:45 +00:00
Tor Lillqvist
3eaeb13a36 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.
2004-11-10 14:26:27 +00:00
Matthias Clasen
68e6b6abab Updates
2004-11-10  Matthias Clasen  <mclasen@redhat.com>

	* NEWS: Updates
2004-11-10 05:54:48 +00:00
Funda Wang
8e6bc188de Updated Simplified Chinese translation 2004-11-09 15:04:05 +00:00
Baris Cicek
9696eb7c9b Updated Turkish Translation
* tr.po: Updated Turkish Translation
2004-11-08 22:02:26 +00:00
Matthias Clasen
a84cbafcec 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)
2004-11-08 19:14:04 +00:00
Manish Singh
c915c2d683 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.
2004-11-08 18:49:54 +00:00
Manish Singh
f026692d2a 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.
2004-11-08 18:49:35 +00:00
Matthias Clasen
c83e52605f 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)
2004-11-08 18:26:56 +00:00
Matthias Clasen
0631238743 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)
2004-11-08 15:34:26 +00:00
Matthias Clasen
6a1d7478d7 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)
2004-11-07 06:29:58 +00:00
Tor Lillqvist
9153616cf5 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
2004-11-06 03:26:56 +00:00