1899 Commits

Author SHA1 Message Date
Owen Taylor
ec5b7bd125 When printing errors, handle NULL returns from g_type_debug(). (#73559,
Mon May 20 15:57:47 2002  Owen Taylor  <otaylor@redhat.com>

        * gsignal.c: When printing errors, handle NULL
        returns from g_type_debug(). (#73559, Laszlo Peter)

        * gtype.c (type_descriptive_name_I): De-inline,
        since it's only used for debugging.
2002-05-20 19:58:07 +00:00
Owen Taylor
d30d62fa87 Fix double close of file descriptor on error. (#82139, Wayne Schuller)
Mon May 20 15:35:59 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gfileutils.c (get_contents_regfile): Fix double
        close of file descriptor on error. (#82139, Wayne Schuller)

        * glib/gspawn.c (close_and_invalidate): Don't close
        fd's that have already been closed. (Fix from Michael
        Meeks, #81959)

        * glib/giochannel.c (g_io_channel_close): If not flushing,
        dump the contents of the write buffers, so we won't try
        to write them to an invalid fd later. (Patch from Ron Steinke,
        fixing #78290, Andreas Persenius.)
2002-05-20 19:37:06 +00:00
Kjartan Maraas
1ac12faa67 Updated Norwegian (bokmål) translation.
2002-05-20  Kjartan Maraas  <kmaraas@gnome.org>

	* no.po: Updated Norwegian (bokmål) translation.
2002-05-19 23:01:32 +00:00
Jacob Berkman
3fbae004d9 revert previous commit - uses APIs from glib 2.1
2002-05-19  Jacob Berkman  <jacob@ximian.com>

	* glib/gmarkup.c (g_markup_parse_context_parse): revert previous
	commit - uses APIs from glib 2.1
2002-05-19 05:41:46 +00:00
Christian Rose
366425b7c4 Updated Swedish translation.
2002-05-19  Christian Rose  <menthos@menthos.com>

	* sv.po: Updated Swedish translation.
2002-05-19 02:34:15 +00:00
Matthias Clasen
b05f6cbb16 New testcases.
2002-05-18  Matthias Clasen  <maclas@gmx.de>

	* tests/markups/fail-36.gmarkup:
	* tests/markups/fail-35.gmarkup:
	* tests/markups/valid-8.gmarkup:
	* tests/markups/valid-7.gmarkup:
	* tests/markups/valid-6.gmarkup:
	* tests/markups/valid-5.gmarkup: New testcases.

	* tests/markup-test.c (passthrough_handler):
	(text_handler): Don't ignore the text_len parameter.

	* glib/gmarkup.c (find_current_text_end): Don't hang on embedded
	nuls.  (#81977)
	(g_markup_parse_context_parse): Fix passthrough handling to
	correctly skip processing instructions, comments, doctype
	declarations and CDATA marked sections.  (#81977)
2002-05-18 22:08:57 +00:00
Tim Janik
67aa889668 fix missing cases for expected_token.
Sat May 18 00:21:51 2002  Tim Janik  <timj@gtk.org>

        * glib/gscanner.c (g_scanner_unexp_token): fix missing cases for
        expected_token.
2002-05-17 22:44:25 +00:00
Tim Janik
d62b3cbf74 minor fixup. 2002-05-17 22:44:00 +00:00
Tim Janik
bcf14be3ce fix documentation for g_scanner_unexp_token().
Sat May 18 00:44:35 2002  Tim Janik  <timj@gtk.org>

        * glib/tmpl/scanner.sgml: fix documentation for g_scanner_unexp_token().
2002-05-17 22:39:53 +00:00
Tor Lillqvist
59bff66c9f gssize and gsize as in a configure-produced glibconfig.h.
2002-05-17  Tor Lillqvist  <tml@iki.fi>

	* glibconfig.h.win32.in: gssize and gsize as in a
	configure-produced glibconfig.h.
2002-05-17 21:08:56 +00:00
Tor Lillqvist
8b42d5fe5f Match new additions to a configure-produced config.h.
2002-05-17  Tor Lillqvist  <tml@iki.fi>

	* config.h.win32.in: Match new additions to a configure-produced
	config.h.
2002-05-17 20:36:08 +00:00
Owen Taylor
c41ce0aa83 Incorporate AM_LC_MESSAGES, AM_PATH_PROG_WITH_TEST as AM_GLIB_* to avoid
Thu May 16 12:24:00 2002  Owen Taylor  <otaylor@redhat.com>

        * acinclude.m4 m4macros/glib-gettext.m4: Incorporate
        AM_LC_MESSAGES, AM_PATH_PROG_WITH_TEST as AM_GLIB_* to avoid
        dependencies on gettext m4 files.

        * autogen.sh: Remove check for GNU gettext, since it
        was causing problems for Solaris CVS builds.
        (#81885, Hidetoshi Tajima.)
2002-05-16 16:31:07 +00:00
Abel Cheung
e1ca230975 Updated traditional Chinese translation.
2002-05-14  Abel Cheung  <maddog@linux.org.hk>

	* zh_TW.po: Updated traditional Chinese translation.
2002-05-14 10:00:41 +00:00
Owen Taylor
890dda2921 Add a check for GNU gettext. (Pointed out by Dan Winship in #59386.)
Mon May 13 23:20:00 2002  Owen Taylor  <otaylor@redhat.com>

        * autogen.sh (have_gettext): Add a check for GNU gettext.
        (Pointed out by Dan Winship in #59386.)
2002-05-14 03:26:51 +00:00
Owen Taylor
4a3119603f If sizeof(int) == sizeof(long) run compilation tests to determine which
Mon May 13 11:55:33 2002  Owen Taylor  <otaylor@redhat.com>

        * configure.in acglib.m4: If sizeof(int) == sizeof(long)
        run compilation tests to determine which way gsize should
        be defined. (#74413, reported by Miroslaw Dobrzanski-Neumann)
2002-05-13 15:57:06 +00:00
Owen Taylor
994ee54aa4 Update from libcharset CVS. Includes additional encodings for Solaris
Mon May 13 11:42:23 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/libcharset/*: Update from libcharset CVS.
        Includes additional encodings for Solaris (#80396,
        Qingjiang Yuan)

        * configure.in: Add getc_unlocked to CHECK_FUNCS().

        * glib/gmessages.c (strdup_convert): If
        g_convert_with_fallback() fails, print the error
        message to stderr the first time, then return
        the original string. (#78197)
2002-05-13 15:50:08 +00:00
Stanislav Visnovsky
9fec7ec684 Updated Slovak translation.
2002-05-11  Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>

	* sk.po: Updated Slovak translation.
2002-05-11 13:56:51 +00:00
Ole Laursen
0f77e8aa05 Updated Danish translation.
2002-05-11  Ole Laursen  <olau@hardworking.dk>

	* da.po: Updated Danish translation.
2002-05-11 10:05:07 +00:00
Chyla Zbigniew
283662fab9 Updated Polish translation by GNOME PL Team <translators@gnome.pl> 2002-05-10 17:20:12 +00:00
Michael Natterer
80e25560c6 fixed yesterdays fix for cross compiling: simply check the variable
2002-05-08  Michael Natterer  <mitch@gimp.org>

	* configure.in: fixed yesterdays fix for cross compiling: simply
	check the variable "cross_compiling" which gets set by autoconf.
2002-05-08 15:22:53 +00:00
Matthias Clasen
56634b61db Report unfinished entity references as errors rather than running into an
* glib/gmarkup.c (unescape_text): Report unfinished entity
	references as errors rather than running into an assert.  (#80441)
2002-05-07 21:45:50 +00:00
Owen Taylor
759be06f32 ChangeLog fix 2002-05-07 19:06:27 +00:00
Owen Taylor
a8b44c4d79 Fix include order for config.h (#71704)
Tue May  7 15:03:02 2002  Owen Taylor  <otaylor@redhat.com>

        * glib-genmarshal.c: Fix include order for config.h (#71704)
2002-05-07 19:03:23 +00:00
Michael Natterer
5ee47f0456 added a new conditional CROSS_COMPILING which indicates ($build != $host).
2002-05-07  Michael Natterer  <mitch@gimp.org>

	* configure.in: added a new conditional CROSS_COMPILING which
	indicates ($build != $host). If it is set, look for
	glib-genmarshal in PATH. Error out if it was not found.

2002-05-07  Michael Natterer  <mitch@gimp.org>

	* Makefile.am: use the glib-genmarshal found at configure time
	if CROSS_COMPILING is set, use the one which was just built
	otherwise.
2002-05-07 15:40:32 +00:00
Owen Taylor
b871270c01 Fixes for #79347, Ron Arts.
Tue May  7 11:24:22 2002  Owen Taylor  <otaylor@redhat.com>

        Fixes for #79347, Ron Arts.

        * glib/gqsort.c (g_qsort_with_data): Handle 0 elements,
        don't g_return_if_fail().

        * tests/qsort-test.c (main): Add a 0 element test.

        * glib/garray.c (g_[ptr_]array_sort_with[_data]):
        Remove invalid assertions that array->pdata != NULL ..
        it's NULL for 0 elements which is a valid case.
2002-05-07 15:31:40 +00:00
Owen Taylor
21ec3dfd7f Exclude OSF from alpha definition of G_BREAKPOINT(), since the assembler
Mon May  6 16:00:41 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gbacktrace.h: Exclude OSF from alpha definition
        of G_BREAKPOINT(), since the assembler apparently
        doesn't support bpt. (#77852, Gareth Pierce)
2002-05-06 20:07:27 +00:00
Owen Taylor
543e6f0f71 Remove PROPERTIES_CHANGED enumeration value that wasn't used any more.
Mon May  6 16:06:23 2002  Owen Taylor  <otaylor@redhat.com>

        * gobject.c: Remove PROPERTIES_CHANGED enumeration
        value that wasn't used any more. (#78833,
        Matthias Clasen)

        * gboxed.c (g_boxed_copy): Remove check on data[2]
        that no longer exists. (#80814, Daniel Elstner)
2002-05-06 20:06:59 +00:00
Owen Taylor
3671471550 Add ChangeLog.pre-2-0 (#78641)
Mon May  6 11:48:08 2002  Owen Taylor  <otaylor@redhat.com>

        * Makefile.am (EXTRA_DIST): Add ChangeLog.pre-2-0 (#78641)

        * m4macros/glib-2.0.m4: save CFLAGS/LIBS properly when
        compiling "what went wrong" test case. (#79330)

        * m4macros/glib-2.0.m4: Remove reference to editing
        pkg-config script. (From Jim Gettys)

        * configure.in: (Look for dyld interfaces before dlopen()
        since OS X can have both. Patch from Jacob Berkman,
        #80438)
2002-05-06 16:06:37 +00:00
Sebastian Wilhelmi
ae88e03af9 Merged from HEAD:
2002-05-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	Merged from HEAD:

	* glib/tmpl/threads.sgml: Clarify recursion issues with
	GMutex. (#78171)
2002-05-01 14:43:44 +00:00
Sebastian Wilhelmi
bd27de0fc6 Fixed typo. (#78985). Merged from HEAD.
2002-04-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

        * gthread/gthread-impl.c (g_thread_init): Fixed
	typo. (#78985). Merged from HEAD.
2002-05-01 10:18:42 +00:00
Matthias Clasen
4f18be95e6 Merged documentation fixes from HEAD. 2002-04-24 22:06:21 +00:00
Tor Lillqvist
45cc0cdbcf Add Windows-specific note to the gtk-doc comment.
2002-04-19  Tor Lillqvist  <tml@iki.fi>

	* glib/gspawn.c (g_spawn_command_line_sync): Add Windows-specific
	note to the gtk-doc comment.

	* glib/gspawn-win32.c: Remove the copy-pasted gtk-doc comment
	blocks. It's enough to have them in gspawn.c.
2002-04-22 11:52:54 +00:00
Kjartan Maraas
419b8eed23 Flush 2002-04-22 08:43:04 +00:00
Sebastian Wilhelmi
64855733d7 Unlock the pool for all threads leaving it. (#78348)
2002-04-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* glib/gthreadpool.c (g_thread_pool_thread_proxy): Unlock the pool
	for all threads leaving it. (#78348)
glib-2-0-branchpoint
2002-04-13 10:08:31 +00:00
Matthias Clasen
0dac3e9e49 Remove manual UTF-8 -> Latin1 conversion for stuff fed to g_print.
* tests/patterntest.c: Remove manual UTF-8 -> Latin1 conversion for
	stuff fed to g_print.
2002-04-10 23:09:15 +00:00
Sebastian Wilhelmi
e7d925595c Use gsize instead of gint. From Miroslaw Dobrzanski-Neumann
2002-04-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* tests/gio-test.c, tests/markup-test.c: Use gsize instead of
	gint. From Miroslaw Dobrzanski-Neumann
	<mne@mosaic-ag.com>. (#77982)
2002-04-08 08:36:35 +00:00
Yuri Syrota
02def4879c Updated Ukrainian translation 2002-04-08 06:53:18 +00:00
Stanislav Brabec
b24ff252fb Added Czech (cs) to ALL_LINGUAS.
2002-04-08  Stanislav Brabec  <utx@penguin.cz>

        * cs.po: Added Czech (cs) to ALL_LINGUAS.
2002-04-07 23:09:08 +00:00
Stanislav Brabec
06f860dddf Added Czech translation from Petr Pytelka <pyta@lightcomp.cz>.
2002-04-07  Stanislav Brabec  <utx@penguin.cz>

        * cs.po: Added Czech translation from Petr Pytelka
        <pyta@lightcomp.cz>.
2002-04-07 13:22:12 +00:00
Hasbullah Bin Pit
8a6815970e Added Malay (ms)to ALL_LINGUAS.
2002-03-31  Hasbullah Bin Pit <sebol@ikhlas.com>

* configure.in: Added Malay (ms)to ALL_LINGUAS.
2002-03-31 21:51:42 +00:00
Kwok-Koon Cheung
549f5a221c Updated traditional Chinese translation 2002-03-30 21:04:02 +00:00
Tor Lillqvist
43c61594f9 Add g_convert_init.
2002-03-29  Tor Lillqvist  <tml@iki.fi>

	* glib/glib.def: Add g_convert_init.
2002-03-29 19:28:29 +00:00
Owen Taylor
7bb2462a42 Released 2.0.1
Thu Mar 28 18:25:14 2002  Owen Taylor  <otaylor@redhat.com>

        * Released 2.0.1

        * configure.in: Version 2.0.1, interface, binary age 1.
GLIB_2_0_1
2002-03-28 23:40:18 +00:00
Owen Taylor
90d93042c2 Remove warning about g_print, etc, encoding.
Thu Mar 28 18:22:53 2002  Owen Taylor  <otaylor@redhat.com>

        * README: Remove warning about g_print, etc, encoding.

        * NEWS: Updates.

        * glib/gmessages.c (g_log_default_handler): Use %lu
        (plus a cast) when printing out pid_t arguments.
        (#76770, Morten Welinder)

        * glib/gstrfuncs.c (g_strdup_vprintf): Check the
        result of vasprintf(), return NULL on failure.
        (#76802, Akira Tagoh)

        * tests/testglib.c (TEST): Supress a warning with
        some GCC versions.
2002-03-28 23:24:23 +00:00
Tim Janik
f404089654 convert prtinf() strings to local charset when writing them to stdout or
Thu Mar 28 20:31:51 2002  Tim Janik  <timj@gtk.org>

        * glib/gmessages.c:
        (g_print):
        (g_printerr): convert prtinf() strings to local charset
        when writing them to stdout or stderr.
2002-03-28 20:12:32 +00:00
Valek Frob
beeb35bcfc Updated russian translation. 2002-03-28 10:44:22 +00:00
Tim Janik
f4d7817b13 major cleanups. introduced _g_log_fallback_handler() to handle recursive
Wed Mar 27 18:42:22 2002  Tim Janik  <timj@gtk.org>

        * gmessages.[hc]:
        major cleanups. introduced _g_log_fallback_handler() to handle
        recursive messages which really doesn't call any GLib functions.
        this allowes the default handler to use normal GLib functions and
        also fixes user supplied log level handlers.
        fixed locking issues, based on a patch from Sebastian Willhelmi,
        attached to #74356. translate log messages from UTF-8, based
        on the same patch. save fatal and recursion flags across flag
        loop. use new integer format code from above patch.
        move GLib functions out of locked mutex state to avoid deadlocks.
        move the level prefix and filedescriptor logic into mklevel_prefix().
        move _g_debug_init() into a place where we can figure and handle
        recursion.
2002-03-27 17:57:30 +00:00
Owen Taylor
564cbf8516 Add explicit cast of G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA to
Tue Mar 26 15:21:47 2002  Owen Taylor  <otaylor@redhat.com>

        * gsignal.h (g_signal_handlers_*_by_func): Add explicit
        cast of G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA to
        GSignalMatchType so that these macros work for C++.
        (#76454, Damien Sandras)
2002-03-26 20:32:30 +00:00
Owen Taylor
648204c8bc Fix various bugs and excessive stack usage that crept in the conversion
Mon Mar 25 17:51:05 2002  Owen Taylor  <otaylor@redhat.com>

        * glib-mkenums.in (parse_entries): Fix various bugs and
        excessive stack usage that crept in the conversion from
        gtk-mkenums. (#74431)
2002-03-25 23:23:35 +00:00
Owen Taylor
a95ec87a93 Remove __const__ qualifier from __asm__ statements... GCC since at least
Mon Mar 25 18:13:06 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gtypes.h (GUINT*_SWAP_LE_BE_X86): Remove __const__
        qualifier from __asm__ statements... GCC since at least
        2.96 has assumed no side effects automaticaly, and gcc-3.1
        will warn about this usage. (#73308, Cody Russell)
2002-03-25 23:18:13 +00:00