platform/upstream/glib.git
20 years agoFixed a bad pointer comparison in g_ascii_strtod that came up in fa_IR
Roozbeh Pournader [Wed, 26 Nov 2003 13:22:42 +0000 (13:22 +0000)]
Fixed a bad pointer comparison in g_ascii_strtod that came up in fa_IR

Wed Nov 26 16:45:16 2003  Roozbeh Pournader  <roozbeh@sharif.edu>

        * glib/gstrfuncs.c: Fixed a bad pointer comparison in
        g_ascii_strtod that came up in fa_IR locale (#126640, Behdad
        Esfahbod).

        * tests/strtod-test.c: Fixed the tests to catch the above.

20 years agoBind inter-thread comminication sockets to INADDR_LOOPBACK instead of
15 2003 Andrew Lanoix [Sat, 22 Nov 2003 19:28:04 +0000 (19:28 +0000)]
Bind inter-thread comminication sockets to INADDR_LOOPBACK instead of

Sat Nov 22 14:16:51.15 2003  Andrew Lanoix  <alanoix@umich.edu>

* glib/giowin32.c: Bind inter-thread comminication
sockets to INADDR_LOOPBACK instead of INADDR_ANY.

20 years agoUpdated French translation.
Christophe Merlet [Sat, 22 Nov 2003 10:44:06 +0000 (10:44 +0000)]
Updated French translation.

20 years agoAdded G_GSIZE_FORMAT and friends.
Manish Singh [Thu, 20 Nov 2003 23:12:05 +0000 (23:12 +0000)]
Added G_GSIZE_FORMAT and friends.

Thu Nov 20 15:09:40 2003  Manish Singh  <yosh@gimp.org>

        * configure.in: Added G_GSIZE_FORMAT and friends.

        * tests/printf-test.c
        * tests/testglib.c
        * tests/type-test.c: Add tests for the above.

20 years agoUpdated Danish translation.
Ole Laursen [Thu, 20 Nov 2003 20:30:06 +0000 (20:30 +0000)]
Updated Danish translation.

2003-11-20  Ole Laursen  <olau@hardworking.dk>

* da.po: Updated Danish translation.

20 years agoUpdated Norwegian Nynorsk translation.
Åsmund Skjæveland [Wed, 19 Nov 2003 09:56:33 +0000 (09:56 +0000)]
Updated Norwegian Nynorsk translation.

2003-11-19  Åsmund Skjæveland  <aasmunds@fys.uio.no>

* nn.po: Updated Norwegian Nynorsk translation.

20 years agoUpdate Czech translation
Miloslav Trmac [Tue, 18 Nov 2003 20:39:26 +0000 (20:39 +0000)]
Update Czech translation

21 years agoUse GUINT_TO_POINTER for g_thread_create data.
Manish Singh [Tue, 18 Nov 2003 01:29:36 +0000 (01:29 +0000)]
Use GUINT_TO_POINTER for g_thread_create data.

Mon Nov 17 17:28:10 2003  Manish Singh  <yosh@gimp.org>

        * tests/thread-test.c (test_g_thread_once): Use GUINT_TO_POINTER
        for g_thread_create data.

21 years agoAdd a NULL check to be consistent with the other g_utf8_ functions.
Matthias Clasen [Sat, 15 Nov 2003 22:04:39 +0000 (22:04 +0000)]
Add a NULL check to be consistent with the other g_utf8_ functions.

Sat Nov 15 23:00:57 2003  Matthias Clasen  <maclas@gmx.de>

* glib/guniprop.c (g_utf8_casefold): Add a NULL check
to be consistent with the other g_utf8_ functions.  (#121618,
Tim-Philipp Müller)

21 years agoFix for MSVC build: Skip strtod-test, use correct glib libraries, with 2.0
Tor Lillqvist [Sat, 15 Nov 2003 03:08:57 +0000 (03:08 +0000)]
Fix for MSVC build: Skip strtod-test, use correct glib libraries, with 2.0

2003-11-15  Tor Lillqvist  <tml@iki.fi>

* tests/makefile.msc.in: Fix for MSVC build: Skip strtod-test, use
correct glib libraries, with 2.0 in the names. (#126906, John
Ehresman)

21 years agoDon't blindly set glib_cv_long_long_format to "ll" when using the included
Matthias Clasen [Fri, 14 Nov 2003 23:48:03 +0000 (23:48 +0000)]
Don't blindly set glib_cv_long_long_format to "ll" when using the included

Sat Nov 15 00:46:14 2003  Matthias Clasen  <maclas@gmx.de>

* configure.in: Don't blindly set glib_cv_long_long_format to
"ll" when using the included printf. As long as the native
printf supports 64bit printing, use the native format.
(#119525, Tor Lillquist)

21 years agoUpdated Catalan translation.
Jordi Mallach [Thu, 13 Nov 2003 14:06:31 +0000 (14:06 +0000)]
Updated Catalan translation.

21 years agoVersion 2.3.1, interface age 0.
Owen Taylor [Wed, 12 Nov 2003 20:28:35 +0000 (20:28 +0000)]
Version 2.3.1, interface age 0.

Wed Nov 12 15:06:27 2003  Owen Taylor  <otaylor@redhat.com>

        * configure.in: Version 2.3.1, interface age 0.

        * NEWS: Update for 2.3.1.

21 years agoUpdated Spanish translation by Francisco Javier F. Serrador
Pablo Gonzalo del Campo [Mon, 10 Nov 2003 18:44:30 +0000 (18:44 +0000)]
Updated Spanish translation by Francisco Javier F. Serrador

2003-11-10  Pablo Gonzalo del Campo  <pablodc@bigfoot.com>

        * es.po: Updated Spanish translation by
                 Francisco Javier F. Serrador <serrador@arrakis.es>.

21 years agocroatian translations updated
Denis Lackovic [Mon, 10 Nov 2003 15:58:24 +0000 (15:58 +0000)]
croatian translations updated

21 years agore-work to retain a copy of the cached charset rather than the actual
Mark McLoughlin [Sun, 9 Nov 2003 13:17:23 +0000 (13:17 +0000)]
re-work to retain a copy of the cached charset rather than the actual

2003-11-07  Mark McLoughlin  <mark@skynet.ie>

        * glib/gconvert.c: (get_filename_charset): re-work to
        retain a copy of the cached charset rather than the
        actual return value from g_get_charset (which may
        change). Also, re-initialize the cache if it does
        change. See bug #126454.

21 years agocroatian translations added
Denis Lackovic [Fri, 7 Nov 2003 18:11:15 +0000 (18:11 +0000)]
croatian translations added

21 years agoAdd an i18n section. Include the corresponding entity. Template for i18n
Matthias Clasen [Thu, 6 Nov 2003 00:43:48 +0000 (00:43 +0000)]
Add an i18n section. Include the corresponding entity. Template for i18n

Thu Nov  6 01:42:36 2003  Matthias Clasen  <maclas@gmx.de>

* glib/glib-sections.txt: Add an i18n section.
* glib/glib-docs.sgml: Include the corresponding entity.
* glib/tmpl/i18n.sgml: Template for i18n section.

Thu Nov  6 00:56:04 2003  Matthias Clasen  <maclas@gmx.de>

* glib/running.sgml: Document G_FILENAME_ENCODING.

21 years agoReplacement for have_broken_filenames() which consults the environment
Matthias Clasen [Wed, 5 Nov 2003 23:05:49 +0000 (23:05 +0000)]
Replacement for have_broken_filenames() which consults the environment

Thu Nov  6 00:04:46 2003  Matthias Clasen  <maclas@gmx.de>

* glib/gconvert.c (get_filename_charset): Replacement for
have_broken_filenames() which consults the environment variable
G_FILENAME_ENCODINGS in addition to G_BROKEN_FILENAMES.
* glib/gconvert.c (g_filename_from_utf8):
* glib/gconvert.c (g_filename_to_utf8):
* glib/gconvert.c (_g_convert_thread_init): Use
get_filename_charset() instead of have_broken_filenames().

21 years agoNew headers defining common gettext-support macros.
Matthias Clasen [Wed, 5 Nov 2003 21:07:47 +0000 (21:07 +0000)]
New headers defining common gettext-support macros.

Wed Nov  5 22:05:19 2003  Matthias Clasen  <maclas@gmx.de>

* glib/gi18n-lib.h:
* glib/gi18n.h: New headers defining common gettext-support
macros.

* glib/Makefile.am (glibsubinclude_HEADERS): Add gi18n.h
and gi18n-lib.h.

* glib/gstrfuncs.h:
* glib/gstrfuncs.c (g_strip_context): Auxiliary function for
the implementation of Q_().

21 years agoMake it compile. (#119337, self.)
Morten Welinder [Wed, 5 Nov 2003 17:15:24 +0000 (17:15 +0000)]
Make it compile. (#119337, self.)

2003-11-05  Morten Welinder  <terra@gnome.org>

* glib/garray.c (g_ptr_array_remove_range): Make it compile.
(#119337, self.)

21 years agoHandle the case where the to-be-inserted string is a substring of the
Morten Welinder [Wed, 5 Nov 2003 16:24:44 +0000 (16:24 +0000)]
Handle the case where the to-be-inserted string is a substring of the

2003-11-05  Morten Welinder  <terra@gnome.org>

* glib/gstring.c (g_string_insert_len): Handle the case where the
to-be-inserted string is a substring of the target string.
(g_string_assign): Handle "s = s;".
(#114260, self.)

21 years agoFix 64bit printing for MSVC builds (#119292, Hans Breuer):
Matthias Clasen [Sun, 2 Nov 2003 00:54:02 +0000 (00:54 +0000)]
Fix 64bit printing for MSVC builds (#119292, Hans Breuer):

Sun Nov  2 01:47:31 2003  Matthias Clasen  <maclas@gmx.de>

Fix 64bit printing for MSVC builds (#119292, Hans Breuer):

* configure.in (HAVE_INT64_AND_I64): Define for MSVC to
include support for printing __int64 with format %I64 in
the gnulib printf wrappers.
* glib/gnulib/printf-args.h (enum arg_type): Add TYPE_INT64
and TYPE_UINT64.
* glib/gnulib/printf-args.h (struct argument): Add a_int64 and
a_uint64 members.
* glib/gnulib/printf-args.c (printf_fetchargs): Support
TYPE_INT64 and TYPE_UINT64.
* glib/gnulib/printf-parse.c (printf_parse): Parse I64 format
modifier and map formats to TYPE_INT64.
* glib/gnulib/vasnprintf.c (vasnprintf): Print TYPE_INT64 with
format modifier I64.
* glib/gnulib/README: Document the __int64 support.

21 years agoSet the return value from the result of g_main_context_check() (after we
Owen Taylor [Sat, 1 Nov 2003 13:57:48 +0000 (13:57 +0000)]
Set the return value from the result of g_main_context_check() (after we

Sat Nov  1 08:45:38 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/gmain.c (g_main_context_iterate): Set the
        return value from the result of g_main_context_check()
        (after we poll) rather than g_main_context_prepare.
        (#121675, Padraig O'Briain)

21 years agoUpdated Norwegian translation.
Kjartan Maraas [Fri, 31 Oct 2003 09:22:21 +0000 (09:22 +0000)]
Updated Norwegian translation.

2003-10-31  Kjartan Maraas  <kmaraas@gnome.org>

* no.po: Updated Norwegian translation.

21 years agoRemove the semicolon from the definition of g_once(), so that
Matthias Clasen [Thu, 30 Oct 2003 23:17:57 +0000 (23:17 +0000)]
Remove the semicolon from the definition of g_once(), so that

Fri Oct 31 00:13:53 2003  Matthias Clasen  <maclas@gmx.de>

* configure.in: Remove the semicolon from the definition of
g_once(), so that GPOINTER_TO_INT (g_once (...)) works.

21 years agoChange the %e tests to not check for actual string equality, but rather
Matthias Clasen [Tue, 28 Oct 2003 22:40:51 +0000 (22:40 +0000)]
Change the %e tests to not check for actual string equality, but rather

Tue Oct 28 23:38:30 2003  Matthias Clasen  <maclas@gmx.de>

* tests/printf-test.c: Change the %e tests to not check for
actual string equality, but rather equality under g_ascii_strtod(),
since the number of leading digits in the exponent seems to
be not exactly prescribed by SUS.

21 years agoAdd /*< public >*/ and /*< private >*/ markers for documentation purposes.
Matthias Clasen [Tue, 28 Oct 2003 22:26:18 +0000 (22:26 +0000)]
Add /*< public >*/ and /*< private >*/ markers for documentation purposes.

Tue Oct 21 23:17:06 2003  Matthias Clasen  <maclas@gmx.de>

* genums.h (struct _GEnumClass):
* genums.h (struct _GFlagsClass):
* gtypemodule.h (struct _GTypeModuleClass):
* gtypemodule.h (struct _GTypeModule): Add /*< public >*/
and /*< private >*/ markers for documentation purposes.

21 years agoshut up cvs
Manish Singh [Mon, 27 Oct 2003 23:38:05 +0000 (23:38 +0000)]
shut up cvs

21 years agoUpdated Japanese translation.
KAMAGASAKO Masatoshi [Mon, 27 Oct 2003 15:49:59 +0000 (15:49 +0000)]
Updated Japanese translation.

2003-10-28  KAMAGASAKO Masatoshi  <emerald@gnome.gr.jp>

* ja.po: Updated Japanese translation.

21 years ago100%
Matthias Clasen [Fri, 24 Oct 2003 23:10:37 +0000 (23:10 +0000)]
100%

21 years ago=== Released 2.3.0 === GLIB_2_3_0
Owen Taylor [Fri, 24 Oct 2003 21:28:34 +0000 (21:28 +0000)]
=== Released 2.3.0 ===

Fri Oct 24 17:09:04 2003  Owen Taylor  <otaylor@redhat.com>

        * === Released 2.3.0 ===

        * NEWS: Small update.

21 years agoForce shared library (DLL) only on Windows. (I don't think that is
Tor Lillqvist [Fri, 24 Oct 2003 03:41:22 +0000 (03:41 +0000)]
Force shared library (DLL) only on Windows. (I don't think that is

2003-10-24  Tor Lillqvist  <tml@iki.fi>

* configure.in: Force shared library (DLL) only on Windows.
(I don't think that is controversial?) Remove unnecessary
AC_LIBTOOL_WIN32_DLL. Don't use -D_REENTRANT on
Win32, it is not used by mingw or MSVC headers.

* config.h.win32.in
* glibconfig.h.win32.in: Match what configure produces.

* glib/gconvert.c
* glib/gutils.c: Mark a couple of functions and variables that
aren't public as static.

* glib/gnulib/g-gnulib.h: Undef HAVE_SNPRINTF before (re)defining
it potentially differently, to silence compiler.

* glib/glib.def: Add some missing entries.

* tests/gobject/Makefile.am (LDADD): Reorder, put libgobject after
libtestgobject.

* tests/gobject/ifaceproperties.c (main): NULL-terminate arg list
to g_object_set() and _get().

21 years ago=== Released 2.3.0 ===
Owen Taylor [Thu, 23 Oct 2003 22:42:31 +0000 (22:42 +0000)]
=== Released 2.3.0 ===

Thu Oct 23 12:38:24 2003  Owen Taylor  <otaylor@redhat.com>

        * === Released 2.3.0 ===

        * tests/gobject/Makefile.am (dist-hook): Remove
        and extra backslash.

        * tests/gobject/Makefile.am (EXTRA_DIST): Add
        testmarshal.list.

        * glib/Makefile.am (libglib_2_0_la_SOURCES): Add
        missing gunicode-private.h.

        * tests/testglib.c (main): Fix a warning.

        * tests/gobject/ifaceinherit.c: Remove check that
        wasn't supposed to work (adding an interface already
        added to the derived class to the base class),
        fix a bug.

21 years agoUpdate NEWS for 2.3.0.
Matthias Clasen [Wed, 22 Oct 2003 21:41:45 +0000 (21:41 +0000)]
Update NEWS for 2.3.0.

21 years agoAdditions.
Matthias Clasen [Tue, 21 Oct 2003 21:49:21 +0000 (21:49 +0000)]
Additions.

Tue Oct 21 23:29:54 2003  Matthias Clasen  <maclas@gmx.de>

* gobject/tmpl/gtypemodule.sgml:
* gobject/tmpl/enumerations_flags.sgml:
* gobject/tmpl/gtype.sgml: Additions.

21 years agoAdd "Since 2.4" markers where appropriate.
Matthias Clasen [Tue, 21 Oct 2003 21:10:26 +0000 (21:10 +0000)]
Add "Since 2.4" markers where appropriate.

Tue Oct 21 23:09:15 2003  Matthias Clasen  <maclas@gmx.de>

* gobject/tmpl/gparamspec.sgml:
* gobject/tmpl/param_value_types.sgml:
* gobject/tmpl/gtype.sgml:
* gobject/tmpl/signals.sgml: Add "Since 2.4" markers where
appropriate.

21 years agoTest for interface properties and GParamSpecOverride.
Owen Taylor [Tue, 21 Oct 2003 19:15:07 +0000 (19:15 +0000)]
Test for interface properties and GParamSpecOverride.

Tue Oct 14 17:44:38 2003  Owen Taylor  <otaylor@redhat.com>

        * tests/gobject/ifaceproperties.c: Test for interface
        properties and GParamSpecOverride.

21 years agoDocument interface properties and GParamSpecOverride.
Owen Taylor [Tue, 21 Oct 2003 19:14:04 +0000 (19:14 +0000)]
Document interface properties and GParamSpecOverride.

Tue Oct 14 17:45:33 2003  Owen Taylor  <otaylor@redhat.com>

        * gobject/gobject-sections.txt gobject/tmpl/objects.sgml
        gobject/tmpl/param_value_types.sgml gobject/tmpl/gparamspec.sgml:
        Document interface properties and GParamSpecOverride.

21 years agoAdd a new GParamSpecOverride type that is a pointer to a different
Owen Taylor [Tue, 21 Oct 2003 19:12:27 +0000 (19:12 +0000)]
Add a new GParamSpecOverride type that is a pointer to a different

Tue Oct 14 17:40:19 2003  Owen Taylor  <otaylor@redhat.com>

        * gparamspecs.[ch]: Add a new GParamSpecOverride type
        that is a pointer to a different paramspec in a parent
        class or interface.

        * gparam.[ch]: Add g_paramspec_get_redirect_target()
        which follows GParamSpecOverride to the real property.
        Make g_param_spec_pool_list() hand redirections,
        properties on interfaces.

        * gobject.[ch] gobjectnotifyqueue.c: Add
        g_object_interface_install_property,
        g_object_interface_find_property,
        g_object_interface_list_properties(). Redirect virtually all
        publically exposed GParamSpec's to the redirect target if
        any. (->constructor is the exception.)
        (#105894)

21 years agoDocumentation additions.
Matthias Clasen [Mon, 20 Oct 2003 20:07:45 +0000 (20:07 +0000)]
Documentation additions.

21 years agoRemoved... ...and readded. Change to the standard file extension for
Matthias Clasen [Mon, 20 Oct 2003 18:40:00 +0000 (18:40 +0000)]
Removed... ...and readded. Change to the standard file extension for

Mon Oct 20 20:38:06 2003  Matthias Clasen  <maclas@gmx.de>

* gobject/gobject.i: Removed...
* gobject/gobject.cI: ...and readded.
* gobject/gobject.types: Change to the standard file
extension for included hunks of C code.

Mon Oct 20 20:34:33 2003  Matthias Clasen  <maclas@gmx.de>

* gobject/Makefile.am (INCLUDES): Add $(top_builddir)/glib
as an include dir again, this time for real.

21 years agoAdditions.
Matthias Clasen [Sun, 19 Oct 2003 23:17:30 +0000 (23:17 +0000)]
Additions.

Mon Oct 20 01:12:46 2003  Matthias Clasen  <maclas@gmx.de>

* gobject/tmpl/gtype.sgml:
* gobject/tmpl/param_value_types.sgml:
* gobject/tmpl/value_arrays.sgml: Additions.

* gobject/tmpl/gboxed.sgml:
* gobject/gobject-sections.txt: Remove prematurely added
GStrv documentation.

21 years agoAdd $(top_builddir)/glib as an include dir. (#124934, Mariano
Matthias Clasen [Sun, 19 Oct 2003 20:20:17 +0000 (20:20 +0000)]
Add $(top_builddir)/glib as an include dir. (#124934, Mariano

Sun Oct 19 22:18:28 2003  Matthias Clasen  <maclas@gmx.de>

* gobject/Makefile.am (INCLUDES): Add $(top_builddir)/glib
as an include dir.  (#124934, Mariano Suárez-Alvarez)

21 years agoDutch translation updated by Tino Meinen.
Vincent van Adrighem [Sun, 19 Oct 2003 16:25:55 +0000 (16:25 +0000)]
Dutch translation updated by Tino Meinen.

2003-10-19   Vincent van Adrighem  <adrighem@gnome.org>

* nl.po: Dutch translation updated by Tino Meinen.

21 years agoAdditions.
Matthias Clasen [Sat, 18 Oct 2003 22:55:00 +0000 (22:55 +0000)]
Additions.

Sun Oct 19 00:33:28 2003  Matthias Clasen  <maclas@gmx.de>

* gobject/tmpl/gtype.sgml:
* gobject/tmpl/generic_values.sgml:
* gobject/tmpl/objects.sgml:
* gobject/tmpl/signals.sgml: Additions.

21 years agoAdd /*< public >*/ and /*< private >*/ markers for documentation purposes.
Matthias Clasen [Fri, 17 Oct 2003 23:33:03 +0000 (23:33 +0000)]
Add /*< public >*/ and /*< private >*/ markers for documentation purposes.

Sat Oct 18 01:30:47 2003  Matthias Clasen  <maclas@gmx.de>

* gtypeplugin.h (struct _GTypePluginClass): Add /*< public >*/
and /*< private >*/ markers for documentation purposes.

* gobject/tmpl/gboxed.sgml:
* gobject/tmpl/gtypeplugin.sgml:
* gobject/tmpl/enumerations_flags.sgml: Additions.

21 years agoList GObject here, since the documentation misses the notify signal
Matthias Clasen [Fri, 17 Oct 2003 22:08:04 +0000 (22:08 +0000)]
List GObject here, since the documentation misses the notify signal

Sat Oct 18 00:04:22 2003  Matthias Clasen  <maclas@gmx.de>

* gobject/gobject.types: List GObject here, since the
documentation misses the notify signal otherwise. Needs
a little bit of a hack to work around a gtkdoc-scangobj
limitation, see the comment in gobject/gobject.i.

* gobject/gobject.i: New file, containing a trivial
g_object_get_type() function.

21 years agoAdd the necessary stuff to compile gobject-scan.
Matthias Clasen [Thu, 16 Oct 2003 22:24:57 +0000 (22:24 +0000)]
Add the necessary stuff to compile gobject-scan.

Fri Oct 17 00:23:51 2003  Matthias Clasen  <maclas@gmx.de>

* gobject/Makefile.am (GTKDOC_LIBS):
(INCLUDES): Add the necessary stuff to compile gobject-scan.

* gobject/gobject.types: Add g_type_module_get_type() and
g_type_plugin_get_type().

21 years agoAdditions, document GParamSpecPool.
Matthias Clasen [Wed, 15 Oct 2003 23:03:20 +0000 (23:03 +0000)]
Additions, document GParamSpecPool.

Thu Oct 16 01:02:04 2003  Matthias Clasen  <maclas@gmx.de>

* gobject/tmpl/gparamspec.sgml: Additions, document
GParamSpecPool.

21 years agoImprovements from Owen's feedback.
Matthias Clasen [Tue, 14 Oct 2003 22:57:32 +0000 (22:57 +0000)]
Improvements from Owen's feedback.

* gobject/tmpl/gclosure.sgml: Improvements from Owen's feedback.

21 years agoDocument closures.
Matthias Clasen [Tue, 14 Oct 2003 00:37:18 +0000 (00:37 +0000)]
Document closures.

21 years agoDocument as 2.4 additions. (unescape_text): Implement newline and
Matthias Clasen [Wed, 8 Oct 2003 21:44:04 +0000 (21:44 +0000)]
Document as 2.4 additions. (unescape_text): Implement newline and

Wed Oct  8 23:40:26 2003  Matthias Clasen  <maclas@gmx.de>

* glib/gmarkup.c (g_markup_printf_escaped):
(g_markup_vprintf_escaped): Document as 2.4 additions.
(unescape_text): Implement newline and whitespace normalization
according to the XML specification.  (#123919)
(g_markup_escape_text): Document whitespace (non)handling.

21 years agoUpdated Polish translation.
Artur Flinta [Wed, 8 Oct 2003 11:09:48 +0000 (11:09 +0000)]
Updated Polish translation.

2003-10-08  Artur Flinta  <aflinta@cvs.gnome.org>

* pl.po: Updated Polish translation.

21 years agoFix includes.
Matthias Clasen [Sun, 5 Oct 2003 21:32:09 +0000 (21:32 +0000)]
Fix includes.

Sun Oct  5 23:23:53 2003  Matthias Clasen  <maclas@gmx.de>

* gobject/glib-sections.txt:
* gobject/gobject-sections.txt: Fix includes.

* gobject/tmpl/value_collection.sgml: Add docs found in the
header.

21 years agoMake the various printf feature test macros reflect the system printf,
Matthias Clasen [Sat, 4 Oct 2003 23:24:02 +0000 (23:24 +0000)]
Make the various printf feature test macros reflect the system printf,

2003-10-05  Matthias Clasen  <maclas@gmx.de>

* configure.in: Make the various printf feature test macros
reflect the system printf, even when using the included printf.
In particular, don't force HAVE_C99_SNPRINTF, since g-gnulib.h
needs that test result.  (#122973)

* glib/gprintf.c (g_vasprintf): Don't rely on HAVE_VASPRINTF,
directly check for _g_vasprintf.

* glib/gprintfint.h (_g_vasprintf): Only define _g_vasprintf()
if vasprintf() is available.

* glib/gnulib/printf.c (_g_gnulib_vfprintf): Don't write
trailing nul to the file. (#122973)

* acinclude.m4 (AC_FUNC_VSNPRINTF_C99): Make the test
detect non-C99-compliance of AIX 5.1 and Solaris
vsnprintf().  (#122496)

21 years agoUpdated Swedish translation.
Christian Rose [Sat, 4 Oct 2003 15:49:30 +0000 (15:49 +0000)]
Updated Swedish translation.

2003-10-04  Christian Rose  <menthos@menthos.com>

* sv.po: Updated Swedish translation.

21 years agofix post class_init interface initialization logic for child types.
Tim Janik [Thu, 2 Oct 2003 05:41:04 +0000 (05:41 +0000)]
fix post class_init interface initialization logic for child types.

Thu Oct  2 07:37:12 2003  Tim Janik  <timj@gtk.org>

        * gtype.c: fix post class_init interface initialization logic
        for child types.

21 years agoTest case for g_type_add_interface_check().
Owen Taylor [Thu, 2 Oct 2003 05:28:00 +0000 (05:28 +0000)]
Test case for g_type_add_interface_check().

Thu Oct  2 01:15:46 2003  Owen Taylor  <otaylor@redhat.com>

        * tests/gobject/ifacecheck.c: Test case for
        g_type_add_interface_check().

        * tests/gobject/ifaceinit.c: Add #undef G_DISABLE_ASSERT.

21 years agoAdd g_type_add/remove_interface_check()
Owen Taylor [Thu, 2 Oct 2003 05:25:32 +0000 (05:25 +0000)]
Add g_type_add/remove_interface_check()

Thu Oct  2 01:22:46 2003  Owen Taylor  <otaylor@redhat.com>

        * gobject/gobject-sections.txt gobject/tmpl/gtype.sgml:
        Add g_type_add/remove_interface_check()

21 years agoAdd g_type_add/remove_interface_check(), which allows inserting a
Owen Taylor [Thu, 2 Oct 2003 05:24:21 +0000 (05:24 +0000)]
Add g_type_add/remove_interface_check(), which allows inserting a

Thu Oct  2 01:16:50 2003  Owen Taylor  <otaylor@redhat.com>

        * gtype.[ch]: Add g_type_add/remove_interface_check(),
        which allows inserting a post-interface-initialization
        check.

        * testgobject.c: Fix a deprecated usage.

21 years agoRemove some tests that were testing things that weren't supposed to work;
Owen Taylor [Thu, 2 Oct 2003 05:13:21 +0000 (05:13 +0000)]
Remove some tests that were testing things that weren't supposed to work;

Thu Oct  2 01:11:39 2003  Owen Taylor  <otaylor@redhat.com>

        * tests/gobject/ifaceinherit.c: Remove some tests that
        were testing things that weren't supposed to work; add
        a test for adding an interface first to the child class,
        then to the parent class.

21 years agoTests of interface inheritance and overriding.
Owen Taylor [Thu, 2 Oct 2003 04:03:57 +0000 (04:03 +0000)]
Tests of interface inheritance and overriding.

Thu Oct  2 00:02:55 2003  Owen Taylor  <otaylor@redhat.com>

        * tests/gobject/Makefile.am test/gobject/ifaceinherit.c:
        Tests of interface inheritance and overriding.

21 years agoCall protect_argv() in do_spawn() instead of in do_spawn_with_pipes() so
Tor Lillqvist [Tue, 30 Sep 2003 20:04:51 +0000 (20:04 +0000)]
Call protect_argv() in do_spawn() instead of in do_spawn_with_pipes() so

2003-09-30  Tor Lillqvist  <tml@iki.fi>

* glib/gspawn-win32.c (do_spawn): Call protect_argv() in
do_spawn() instead of in do_spawn_with_pipes() so that we can use
the original argv[0] as the program file name parameter to
spawnv() in the shortcut (doing without helper process)
code. Fixes problem if GIMP 1.3 was installed in a path with
spaces in the name.

21 years agomake the argument const to get rid of warning
Soeren Sandmann [Tue, 30 Sep 2003 13:36:25 +0000 (13:36 +0000)]
make the argument const to get rid of warning

Tue Sep 30 15:31:16 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

* glib/guniprop.c (has_more_above): make the argument const to
get rid of warning

* glib/garray.c (g_byte_array_remove_range): insert cast to get
rid of warning

21 years agoAdditions.
Matthias Clasen [Mon, 29 Sep 2003 22:48:05 +0000 (22:48 +0000)]
Additions.

2003-09-30  Matthias Clasen  <maclas@gmx.de>

* gobject/tmpl/gparamspec.sgml:
* gobject/tmpl/signals.sgml: Additions.

21 years agoUse hardcoded name for DLL, as there is no reliable way to determine it at
Tor Lillqvist [Mon, 29 Sep 2003 22:40:40 +0000 (22:40 +0000)]
Use hardcoded name for DLL, as there is no reliable way to determine it at

2003-09-29  Tor Lillqvist  <tml@iki.fi>

* tests/testglib.c (main): Use hardcoded name for DLL, as there is
no reliable way to determine it at compile or run time anyway.

21 years agoAdd "Since: 2.4" to docs. Add g_unichar_get_mirror_char and
Matthias Clasen [Mon, 29 Sep 2003 22:04:28 +0000 (22:04 +0000)]
Add "Since: 2.4" to docs. Add g_unichar_get_mirror_char and

2003-09-29  Matthias Clasen  <maclas@gmx.de>

* glib/guniprop.c (g_unichar_get_mirror_char): Add "Since: 2.4"
to docs.
* glib/glib-sections.txt: Add g_unichar_get_mirror_char and
g_static_mutex_get_mutex_impl_shortcut.

21 years agoApplied revision by Augusta Marques da Silva <augusta.marques@gmx.net>.
Gustavo Maciel Dias Vieira [Mon, 29 Sep 2003 20:44:31 +0000 (20:44 +0000)]
Applied revision by Augusta Marques da Silva <augusta.marques@gmx.net>.

2003-09-29  Gustavo Maciel Dias Vieira  <gdvieira@zaz.com.br>

        * pt_BR.po: Applied revision by Augusta Marques da Silva
        <augusta.marques@gmx.net>.

21 years agoFix function name
Owen Taylor [Mon, 29 Sep 2003 14:56:54 +0000 (14:56 +0000)]
Fix function name

21 years agoDocs for g_type_default_interface_ref(), etc. :
Owen Taylor [Mon, 29 Sep 2003 14:56:23 +0000 (14:56 +0000)]
Docs for g_type_default_interface_ref(), etc. :

Mon Sep 29 10:55:23 2003  Owen Taylor  <otaylor@redhat.com>

        *  gobject/gobject-sections.txt gobject/tmpl/gtype.sgml:
        Docs for g_type_default_interface_ref(), etc.
: ----------------------------------------------------------------------

21 years ago.cvsignore update
Owen Taylor [Mon, 29 Sep 2003 14:54:58 +0000 (14:54 +0000)]
.cvsignore update

21 years agoDummy dynamic type module for testing type plugin code and dynamic types.
Owen Taylor [Mon, 29 Sep 2003 14:54:39 +0000 (14:54 +0000)]
Dummy dynamic type module for testing type plugin code and dynamic types.

Thu Sep 25 15:43:08 2003  Owen Taylor  <otaylor@redhat.com>

        * tests/gobject/testmodule.[ch] test/gobject/Makefile.am:
        Dummy dynamic type module for testing type plugin code
        and dynamic types.

        * test/gobject/defaultiface.c: Test of g_default_interface_ref,
        etc.

21 years agoAdd g_type_default_interface_ref/peek/unref for accessing the default
Owen Taylor [Mon, 29 Sep 2003 14:52:42 +0000 (14:52 +0000)]
Add g_type_default_interface_ref/peek/unref for accessing the default

Mon Sep 29 10:51:01 2003  Owen Taylor  <otaylor@redhat.com>

        * gtype.[ch]: Add g_type_default_interface_ref/peek/unref
        for accessing the default vtable of an interface.

21 years agoAdded Lithuanian translation
Gediminas Paulauskas [Sun, 28 Sep 2003 18:17:08 +0000 (18:17 +0000)]
Added Lithuanian translation

21 years agoYou can have instance_real_class_bsa be non-NULL, but still the class not
Owen Taylor [Fri, 26 Sep 2003 21:26:42 +0000 (21:26 +0000)]
You can have instance_real_class_bsa be non-NULL, but still the class not

Fri Sep 26 17:24:53 2003  Owen Taylor  <otaylor@redhat.com>

        * gtype.c (g_type_instance_get_private): You can
        have instance_real_class_bsa be non-NULL, but still
        the class not be in the bsa. (Found by Kris Rietveld)

21 years agoRemove g_bsearch_array_* entries that don't exist any longer. (ABI
Tor Lillqvist [Thu, 25 Sep 2003 19:54:20 +0000 (19:54 +0000)]
Remove g_bsearch_array_* entries that don't exist any longer. (ABI

2003-09-25  Tor Lillqvist  <tml@iki.fi>

* glib/glib.def: Remove g_bsearch_array_* entries that don't exist
any longer. (ABI change?)

21 years agoAdd gobject/.
Owen Taylor [Thu, 25 Sep 2003 19:01:57 +0000 (19:01 +0000)]
Add gobject/.

Thu Sep 25 15:01:37 2003  Owen Taylor  <otaylor@redhat.com>

        * tests/Makefile.am (SUBDIRS): Add gobject/.

21 years agoDon't generate code using deprecated APIs. (#122292, Christian Persch)
Matthias Clasen [Sun, 14 Sep 2003 22:05:36 +0000 (22:05 +0000)]
Don't generate code using deprecated APIs. (#122292, Christian Persch)

2003-09-15  Matthias Clasen  <maclas@gmx.de>

* glib-genmarshal.c (complete_out_arg): Don't generate code
using deprecated APIs.  (#122292, Christian Persch)

21 years agoAdd bug reference to ChangeLog
Owen Taylor [Fri, 12 Sep 2003 20:38:35 +0000 (20:38 +0000)]
Add bug reference to ChangeLog

21 years agoAdd docs for g_signal_accumulator_true_handled.
Owen Taylor [Fri, 12 Sep 2003 20:37:29 +0000 (20:37 +0000)]
Add docs for g_signal_accumulator_true_handled.

Fri Sep 12 16:29:29 2003  Owen Taylor  <otaylor@redhat.com>

        * gobject/tmpl/signals.sgml: Add docs for
        g_signal_accumulator_true_handled.

21 years agoNew directory, framework for automated GObject tests.
Owen Taylor [Fri, 12 Sep 2003 20:37:09 +0000 (20:37 +0000)]
New directory, framework for automated GObject tests.

Fri Sep 12 16:26:21 2003  Owen Taylor  <otaylor@redhat.com>

        * tests/gobject/ configure.in: New directory, framework
        for automated GObject tests.

        * tests/gobject/override.c: Move testoverride.c
        here, automate.

        * tests/gobject/ifaceinit.c: Move testifaceinit.c here.

        * tests/gobject/accumulator.c: Test signal accumulators,
        including g_signal_accumulator_true_handled.

21 years agoAdd g_signal_accumulator_true_handled(), to do TRUE-stops-emit signals.
Owen Taylor [Fri, 12 Sep 2003 20:33:31 +0000 (20:33 +0000)]
Add g_signal_accumulator_true_handled(), to do TRUE-stops-emit signals.

Fri Sep 12 16:31:40 2003  Owen Taylor  <otaylor@redhat.com>

        * gsignal.[ch]: Add g_signal_accumulator_true_handled(), to
        do TRUE-stops-emit signals.

        * Makefile.am: Move testoverride.c and testifaceinit.c to
        tests/gobject.

21 years agoMake the g_value_set_x_take_ownership() functions "official" part of the
Matthias Clasen [Fri, 12 Sep 2003 20:11:38 +0000 (20:11 +0000)]
Make the g_value_set_x_take_ownership() functions "official" part of the

2003-09-12  Matthias Clasen  <maclas@gmx.de>

Make the g_value_set_x_take_ownership() functions "official"
part of the API (#100948):

* gvaluetypes.[hc]: Add g_value_take_string() (synonym to the
now deprecated g_value_set_string_take_ownership()).

* gparam.[hc]: Add g_value_take_param() (synonym to the
now deprecated g_value_set_param_take_ownership()).

* gobject.[hc]: Add g_value_take_object() (synonym to the
now deprecated g_value_set_object_take_ownership()).

* gboxed.[hc]: Add g_value_take_boxed() (synonym to the
now deprecated g_value_set_boxed_take_ownership()).

* gobject/gobject-sections.txt: Add new g_value_take_x() functions.

* gobject/tmpl/param_value_types.sgml: Document new g_value_take_x()
functions.  (#100948)

21 years agoTake a directory where to look for the unicode files on the command line
Noah Levitt [Fri, 12 Sep 2003 18:25:36 +0000 (18:25 +0000)]
Take a directory where to look for the unicode files on the command line

2003-09-12  Noah Levitt  <nlevitt@columbia.edu>

* glib/gen-unicode-tables.pl: Take a directory where to look for the
unicode files on the command line instead of 7 individual files.

21 years agoAdd g_unichar_get_mirror_char. (#114749)
Noah Levitt [Fri, 12 Sep 2003 17:54:43 +0000 (17:54 +0000)]
Add g_unichar_get_mirror_char. (#114749)

2003-09-12  Noah Levitt  <nlevitt@columbia.edu>

* glib/gen-unicode-tables.pl:
* glib/gunichartables.h:
* glib/gunicode.h:
* glib/guniprop.c: Add g_unichar_get_mirror_char. (#114749)

21 years agoAdd g_markup_printf_escaped(), g_markup_vprintf_escaped().
Owen Taylor [Fri, 12 Sep 2003 00:17:02 +0000 (00:17 +0000)]
Add g_markup_printf_escaped(), g_markup_vprintf_escaped().

Thu Sep 11 20:11:05 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/gmarkup.c: Add g_markup_printf_escaped(),
        g_markup_vprintf_escaped().

        * tests/markup-escape-test.c (main): Test for
        g_markup_escape_text(), g_markup_printf_escaped().

21 years agoUnicode 4.0 special casing. (#114681)
Noah Levitt [Wed, 10 Sep 2003 16:55:36 +0000 (16:55 +0000)]
Unicode 4.0 special casing. (#114681)

2003-09-10  Noah Levitt  <nlevitt@columbia.edu>

* glib/gunicodeprivate.h:
* glib/gunicollate.c:
* glib/gunidecomp.c:
* glib/guniprop.c:
* tests/casemap.txt:
* tests/gen-casemap-txt.pl: Unicode 4.0 special casing. (#114681)

* glib/gunicodeprivate.h: Use a private header instead of extern
function declarations (_g_utf8_normalize_wc,
_g_unichar_combining_class).

21 years agoinserted casts for C++.
Stefan Westerfeld [Sun, 7 Sep 2003 22:36:58 +0000 (22:36 +0000)]
inserted casts for C++.

Mon Sep  8 00:31:10 2003  Stefan Westerfeld  <stefan@space.twc.de>

        * glib/gbsearcharray.h: inserted casts for C++.

21 years agoadded support for a "default vtable" per interface, that interface vtables
Tim Janik [Tue, 2 Sep 2003 17:57:22 +0000 (17:57 +0000)]
added support for a "default vtable" per interface, that interface vtables

Tue Sep  2 19:37:21 2003  Tim Janik  <timj@gtk.org>

        * gtype.[hc]: added support for a "default vtable" per interface,
        that interface vtables are initialized from.
        the default vtable is initialized and finalized through class_init,
        class_finalize and class_data from the interfaces GTypeInfo struct.
        (type_data_last_unref_Wm): unload child plugin before unreffing
        parent type.

        testifaceinit.c: minor fixups. fixed up base_init() assertions, since
        with a default vtable, base_init() may be called multiple times.
        added default initializer to iface1.

21 years agofix iterating over fundamental types.
Tim Janik [Tue, 2 Sep 2003 12:58:23 +0000 (12:58 +0000)]
fix iterating over fundamental types.

Tue Sep  2 14:53:41 2003  Tim Janik  <timj@gtk.org>

        * gobject-query.c (main): fix iterating over fundamental types.

        * gtype.c: applied patch from owen which keeps internal
        class initialization state to maintain class and interface
        initialization happen in the order of:
        1. class' base_init
        2. interface' base_init
        =  interfaces added after here are immediately base_init-ialized
        3. class_init
        4. Interface_init
        =  interfaces added here are immediately Interface_init-ialized

21 years agoremoved stray change from previous commit.
Manish Singh [Thu, 28 Aug 2003 02:55:58 +0000 (02:55 +0000)]
removed stray change from previous commit.

Wed Aug 27 19:53:26 2003  Manish Singh  <yosh@gimp.org>

        * gobject.c: removed stray change from previous commit.

21 years agoshut up cvs
Manish Singh [Thu, 28 Aug 2003 02:20:17 +0000 (02:20 +0000)]
shut up cvs

21 years agoFix a C99ism. (#120821, Thomas Klausner)
Matthias Clasen [Wed, 27 Aug 2003 22:27:41 +0000 (22:27 +0000)]
Fix a C99ism. (#120821, Thomas Klausner)

2003-08-28  Matthias Clasen  <maclas@gmx.de>

* tests/patterntest.c (verbose): Fix a C99ism.  (#120821, Thomas
Klausner)

21 years agoAdd a detailed test case for interface initialization, testing the ability
Owen Taylor [Wed, 27 Aug 2003 05:28:39 +0000 (05:28 +0000)]
Add a detailed test case for interface initialization, testing the ability

Wed Aug 27 01:25:40 2003  Owen Taylor  <otaylor@redhat.com>

        * Makefile.am testifaceinit.c: Add a detailed test case
        for interface initialization, testing the ability to
        add interfaces during class initialization and the ordering
        of interface base_init, class init, and interface_init.
        (Expected to fail at the moment.)

21 years agofix typo in last commit, cast to GTypeValueTable * to get rid of const
Manish Singh [Mon, 25 Aug 2003 22:02:22 +0000 (22:02 +0000)]
fix typo in last commit, cast to GTypeValueTable * to get rid of const

Mon Aug 25 14:51:46 2003  Manish Singh  <yosh@gimp.org>

        * gtypemodule.c (g_type_module_register_type): fix typo in last
        commit, cast to GTypeValueTable * to get rid of const warning.

21 years agoAvoid UNLOCKing the critical section twice, which might cause a hang.
Tor Lillqvist [Mon, 25 Aug 2003 21:37:57 +0000 (21:37 +0000)]
Avoid UNLOCKing the critical section twice, which might cause a hang.

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

* glib/giowin32.c (read_thread): Avoid UNLOCKing the critical
section twice, which might cause a hang. (#120653)

* glib/giowin32.c (g_io_channel_unix_new): Warn if fd is both a
valid file descriptor and socket.

21 years agoadd bug number
Owen Taylor [Mon, 25 Aug 2003 18:42:38 +0000 (18:42 +0000)]
add bug number

21 years agoClarify docs on the return. Fix a memory leak if a type with a value table
Owen Taylor [Mon, 25 Aug 2003 18:23:58 +0000 (18:23 +0000)]
Clarify docs on the return. Fix a memory leak if a type with a value table

Mon Aug 25 14:16:48 2003  Owen Taylor  <otaylor@redhat.com>

        * gtypemodule.c (g_type_module_register_type): Clarify
        docs on the return. Fix a memory leak if a type with a
        value table is reloaded.

21 years agoEscape control characters in g_logv() output. (#108287, Christian Biere)
Owen Taylor [Mon, 25 Aug 2003 16:36:03 +0000 (16:36 +0000)]
Escape control characters in g_logv() output. (#108287, Christian Biere)

Mon Aug 25 12:34:36 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/gmessages.c: Escape control characters in g_logv() output.
        (#108287, Christian Biere)