Commit Graph

28133 Commits

Author SHA1 Message Date
Owen Taylor
053a1ce434 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:32:08 +00:00
Owen Taylor
0522bb588b 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) [from stable]
2002-05-06 20:08:54 +00:00
Owen Taylor
26a6730547 [ merged from stable ]
Mon May  6 16:06:23 2002  Owen Taylor  <otaylor@redhat.com>

	[ merged from stable ]

        * 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:08:17 +00:00
Owen Taylor
83fbec4d46 [ merged from stable ]
Mon May  6 11:48:08 2002  Owen Taylor  <otaylor@redhat.com>

	[ merged from stable ]

        * 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:07:03 +00:00
Pablo Saratxaga
a7b7ff8413 updated Vietnamese file 2002-05-06 11:02:57 +00:00
jacob berkman
dccffe146d fix typo on 64-bit printf formatting string configure message (fixes
2002-05-01  jacob berkman  <jacob@ximian.com>

	* configure.in: fix typo on 64-bit printf formatting string
	configure message (fixes #80389)
2002-05-01 15:21:07 +00:00
Sebastian Wilhelmi
81d6a7dd7c Clarify recursion issues with GMutex. (#78171)
2002-05-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* glib/tmpl/threads.sgml: Clarify recursion issues with
	GMutex. (#78171)
2002-05-01 14:39:48 +00:00
Duarte Loreto
63ce57cd4d Converted Portuguese translation to UTF-8.
2002-04-30  Duarte Loreto <happyguy_pt@hotmail.com>

        * pt.po: Converted Portuguese translation to UTF-8.
2002-04-29 23:34:46 +00:00
Pablo Saratxaga
a1cf2262f7 Added Vietnamese file 2002-04-29 08:05:44 +00:00
Christophe Merlet
470b41ad36 Updated French translation. 2002-04-28 19:40:57 +00:00
Matthias Clasen
61f76fa4e5 Updates.
* gobject/gobject-sections.txt:
	* gobject/tmpl/gtype.sgml: Updates.
2002-04-23 23:18:37 +00:00
Andraz Tori
d877a57eed Updated Slovenian translation 2002-04-23 12:58:33 +00:00
Matthias Clasen
031fb85282 Fix the description of g_string_assign. (#78728)
* glib/tmpl/strings.sgml: Fix the description of g_string_assign. (#78728)
2002-04-20 23:46:05 +00:00
Tor Lillqvist
00bc4e28b8 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-19 20:26:04 +00:00
Matthias Clasen
5cbcd52547 s/<!>/<!-- -->/g throughout the documentation to bring the produced
* glib/tmpl/error_reporting.sgml:
	* glib/tmpl/threads.sgml:
	* glib/tmpl/arrays_pointer.sgml:
	* glib/tmpl/arrays_byte.sgml:
	* glib/tmpl/memory_chunks.sgml: s/<!>/<!-- -->/g throughout the
	documentation to bring the produced Docbook closer to XML.
2002-04-18 22:03:38 +00:00
Sebastian Wilhelmi
3e22c9e449 Fixed typo. (#78985)
2002-04-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* gthread/gthread-impl.c (g_thread_init): Fixed typo. (#78985)
2002-04-18 11:42:01 +00:00
Vincent van Adrighem
581331390d Dutch translation updated by Ronald Hummelink.
2002-04-18 Vincent van Adrighem <V.vanAdrighem@dirck.mine.nu>
* nl.po: Dutch translation updated by Ronald Hummelink.
2002-04-17 23:42:59 +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)
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.
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
Owen Taylor
75f7f9ed05 Wrap setting freed instance memory to 0xaa in #ifdef G_ENABLE_DEBUG
Mon Mar 25 17:25:57 2002  Owen Taylor  <otaylor@redhat.com>

        * gtype.c (g_type_free_instance): Wrap setting freed instance
        memory to 0xaa in #ifdef G_ENABLE_DEBUG
2002-03-25 22:26:53 +00:00
Sven Neumann
1543f95a77 Fixed documentation about unused struct fields and added a note about
2002-03-25  Sven Neumann  <sven@gimp.org>

	* glib/tmpl/scanner.sgml: Fixed documentation about unused struct
	fields and added a note about proper g_scanner_unexp_token() usage.
2002-03-25 11:55:14 +00:00
Owen Taylor
5b492c98cb Fix problem where if g_mem_chunk_reset() is called on an alloc-only
Fri Mar 22 17:59:27 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gmem.c (g_mem_chunk_reset): Fix problem where
        if g_mem_chunk_reset() is called on an alloc-only
        memchunk, then a useles GTree was created.
2002-03-22 23:01:01 +00:00
Yuri Syrota
20b0580be1 Updated Ukrainian translation 2002-03-22 18:30:55 +00:00
Tim Janik
e1afbb7e03 fix extraneous include.
Thu Mar 21 01:28:14 2002  Tim Janik  <timj@gtk.org>

        * gsignal.[hc]:
        * gobject.[hc]: fix extraneous include.
2002-03-21 00:34:05 +00:00
Tim Janik
5bbfa527f7 fix extraneous include.
Thu Mar 21 01:28:14 2002  Tim Janik  <timj@gtk.org>

        * gsignal.h: fix extraneous include.
2002-03-21 00:24:41 +00:00
Owen Taylor
8125388daa Try to work around segfaults on Solaris if NULL is passed for outbuf...
Wed Mar 20 18:20:21 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gconvert.c (open_converter): Try to work around segfaults
        on Solaris if NULL is passed for outbuf... supposedly gchar
        *outbuf = NULL... &outbuf works. (#74336, Lauri Alanko)
2002-03-20 23:24:22 +00:00
Owen Taylor
eccf6b573b Close the file descriptor. (#75507, Matthias Clasen)
Wed Mar 20 11:17:32 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gfileutils.c (get_contents_regfile): Close the
        file descriptor. (#75507, Matthias Clasen)
2002-03-20 16:21:58 +00:00
Owen Taylor
a841dbd7a2 Use $PKG_CONFIG, not pkg-config. (LEE Sau Dan, #75572)
Wed Mar 20 11:00:59 2002  Owen Taylor  <otaylor@redhat.com>

        * configure.in: Use $PKG_CONFIG, not pkg-config.
        (LEE Sau Dan, #75572)
2002-03-20 16:10:34 +00:00
Sven Neumann
73e6da92b2 avoid repeated call of g_spaced_primes_closest() by moving it out of the
2002-03-20  Sven Neumann  <sven@gimp.org>

	* glib/ghash.c (g_hash_table_resize): avoid repeated call of
	g_spaced_primes_closest() by moving it out of the CLAMP macro
	(spotted by Salmaso Raffaele).
2002-03-20 10:25:52 +00:00
Tim Janik
3f4617caab applied patch from Matthias Clasen <maclas@gmx.de> to check for
Tue Mar 19 18:57:12 2002  Tim Janik  <timj@gtk.org>

        * gtype.c (check_add_interface_L): applied patch from Matthias Clasen
        <maclas@gmx.de> to check for prerequisite of interfaces, fixes #74427.
        fixed mutex recursion in his patch (we can't call g_type_is_a() while
        holding a read lock).

        * gparam.c (canonalize_key): cleanup.
2002-03-19 19:26:27 +00:00
Tor Lillqvist
c938a77376 Add MSVC-specific text by Hans Breuer.
2002-03-17  Tor Lillqvist  <tml@iki.fi>

	* README.win32: Add MSVC-specific text by Hans Breuer.
2002-03-17 21:51:33 +00:00
Valek Frob
bf5b9b7a1e Updated russian translation. 2002-03-17 19:00:04 +00:00
Wang Jian
9239da7381 *** empty log message *** 2002-03-17 08:30:43 +00:00
Christian Meyer
de7afc01a2 Updated German translation. 2002-03-16 16:14:45 +00:00
Tor Lillqvist
1c653e3635 glib/giowin32.c (g_io_win32_dispatch): Check buffer condition here, too.
2002-03-16  Tor Lillqvist  <tml@iki.fi>

	glib/giowin32.c (g_io_win32_dispatch): Check buffer condition
	here, too.
2002-03-15 23:34:53 +00:00