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.
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.
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.
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.
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
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.
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.
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.
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>.
Owen Taylor [Mon, 29 Sep 2003 14:56:54 +0000 (14:56 +0000)]
Fix function name
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.
: ----------------------------------------------------------------------
Owen Taylor [Mon, 29 Sep 2003 14:54:58 +0000 (14:54 +0000)]
.cvsignore update
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.
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.
Gediminas Paulauskas [Sun, 28 Sep 2003 18:17:08 +0000 (18:17 +0000)]
Added Lithuanian translation
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)
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?)
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/.
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)
Owen Taylor [Fri, 12 Sep 2003 20:38:35 +0000 (20:38 +0000)]
Add bug reference to ChangeLog
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.
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.
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.
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)
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.
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)
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().
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).
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++.
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.
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
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.
Manish Singh [Thu, 28 Aug 2003 02:20:17 +0000 (02:20 +0000)]
shut up cvs
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)
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.)
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.
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.
Owen Taylor [Mon, 25 Aug 2003 18:42:38 +0000 (18:42 +0000)]
add bug number
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.
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)
Owen Taylor [Mon, 25 Aug 2003 16:20:41 +0000 (16:20 +0000)]
When DISABLE_MEM_POOLS is set, loop through and free the poll records
Mon Aug 25 12:17:20 2003 Owen Taylor <otaylor@redhat.com>
* glib/gmain.c (g_main_context_unref_and_unlock):
When DISABLE_MEM_POOLS is set, loop through and free
the poll records explicitely, since g_mem_chunk_destroy()
won't do it. (#118121, Morten Welinder)
Kjartan Maraas [Sat, 23 Aug 2003 11:41:46 +0000 (11:41 +0000)]
Flush
Samúel Jón Gunnarsson [Sat, 23 Aug 2003 01:05:02 +0000 (01:05 +0000)]
Added "is" to ALL_LINGUAS.
2003-08-23 Samúel Jón Gunnarsson <sammi@techattack.nu>
* configure.in: Added "is" to ALL_LINGUAS.
Richard Allen [Wed, 20 Aug 2003 16:14:25 +0000 (16:14 +0000)]
Added Icelandic translation
Tor Lillqvist [Tue, 19 Aug 2003 19:12:07 +0000 (19:12 +0000)]
[Win32] Make the fatal error message box easier to notice with
2003-08-19 Tor Lillqvist <tml@iki.fi>
* glib/gmessages.c (g_logv): [Win32] Make the fatal error message
box easier to notice with MB_SETFOREGROUND. Also use MB_ICONERROR
to get a nice stop-sign icon.
Owen Taylor [Tue, 19 Aug 2003 13:45:33 +0000 (13:45 +0000)]
Add $INTLLIBS to $LIBS temporarily, not -lintl. (Problem with fix for
Tue Aug 19 09:42:06 2003 Owen Taylor <otaylor@redhat.com>
* m4macros/glib-gettext.m4: Add $INTLLIBS to $LIBS
temporarily, not -lintl. (Problem with fix for
#119171, pointed out by James Henstridge)
Tim Janik [Tue, 19 Aug 2003 03:25:46 +0000 (03:25 +0000)]
check private instance data after initialization.
Tue Aug 19 05:21:04 2003 Tim Janik <timj@gtk.org>
* testgobject.c (main): check private instance data after
initialization.
* gtype.c: for instances with private data, store the real class
pointer in a bsearch array during class initialization.
(g_type_instance_get_private): fetch the real class of
an instance from the bsearch array if necessary.
Tim Janik [Tue, 19 Aug 2003 02:16:00 +0000 (02:16 +0000)]
license change, no restrictions are made in the new license at all, the
Tue Aug 19 03:55:29 2003 Tim Janik <timj@gtk.org>
* glib/gbsearcharray.h: license change, no restrictions are made
in the new license at all, the implmentation is simply provided
"as is" to allow copy-pasting the code into any third-party app.
naturally, the implementation is self-contained within the header
file to allow this.
default to non-shrinking behaviour, allow users to request shrinking
via G_BSEARCH_ARRAY_AUTO_SHRINK.
creation, deletion functions are now named g_bsearch_array_create()
and g_bsearch_array_free().
fixed const in prototypes, removed cruft.
(g_bsearch_array_insert): take only three arguments, do nothing if the
node to insert is already there.
(g_bsearch_array_replace): insert or replace if the node is already
there.
(g_bsearch_array_remove): remove nodes by index, the index of a node
can be found via g_bsearch_array_get_index().
removed other g_bsearch_array_remove*() variants.
(g_bsearch_array_lookup): minor optimizations.
(g_bsearch_array_lookup_sibling): return nodes on mismatches.
* glib/gbsearcharray.c: removed.
Tim Janik [Tue, 19 Aug 2003 02:15:40 +0000 (02:15 +0000)]
adapt to new gbsearcharray.h code. (g_value_register_transform_func): turn
Tue Aug 19 04:08:14 2003 Tim Janik <timj@gtk.org>
* gvalue.c: adapt to new gbsearcharray.h code.
(g_value_register_transform_func): turn transform function
replacement into a valid operation.
* gsignal.c: adapt to new gbsearcharray.h code.
* gboxed.c: adapt to new gbsearcharray.h code.
Tim Janik [Mon, 18 Aug 2003 23:32:17 +0000 (23:32 +0000)]
added optimizations to skip NOP signal emissions.
Tue Aug 19 01:31:28 2003 Tim Janik <timj@gtk.org>
* gsignal.c: added optimizations to skip NOP signal emissions.
Kjartan Maraas [Mon, 18 Aug 2003 20:50:47 +0000 (20:50 +0000)]
Update Norwegian translation.
2003-08-18 Kjartan Maraas <kmaraas@gnome.org>
* no.po: Update Norwegian translation.
Metin Amiroff [Mon, 18 Aug 2003 10:13:33 +0000 (10:13 +0000)]
Updated Azerbaijani translation.
2003-08-18 Metin Amiroff <metin@karegen.com>
* az.po: Updated Azerbaijani translation.
Tor Lillqvist [Sat, 16 Aug 2003 19:45:25 +0000 (19:45 +0000)]
Fix #117925 (Dov Grobgeld):
2003-08-16 Tor Lillqvist <tml@iki.fi>
Fix #117925 (Dov Grobgeld):
* glib/gutils.c (g_find_program_in_path, g_basename,
g_path_get_basename, g_path_is_absolute, g_path_skip_root,
g_path_get_dirname, g_get_any_init): On Win32, look also for
slashes ('/') as pathname separators.
* glib/gfileutils.c (g_file_open_tmp): Ditto. If the template
contains a pathname separator, include the actual one in the error
message, instead of always the canonical one.
(g_build_filename): Separate implementation on Win32 that looks
for either slash or backslash. Document Unix/Windows differences.
* tests/testglib.c
* tests/strfunc-test.c: Test above functionality on Win32.
Danilo Šegan [Fri, 15 Aug 2003 23:47:33 +0000 (23:47 +0000)]
Updated Serbian translation.
2003-08-16 Danilo Šegan <dsegan@gmx.net>
* sr.po, sr@Latn.po: Updated Serbian translation.
Tor Lillqvist [Fri, 15 Aug 2003 05:06:16 +0000 (05:06 +0000)]
[Win32] Don't exceed handle array bounds. Warn if there would be too many
2003-08-15 Tor Lillqvist <tml@iki.fi>
* glib/gmain.c (g_poll): [Win32] Don't exceed handle array
bounds. Warn if there would be too many handles to wait
for. (WaitForMultipleObjects() has a relatively low limit of 64
handles. The Win32 IO channel code should be fixed not to need to
wait for one handle per file or socket being watched. Later.)
Anders Carlsson [Wed, 13 Aug 2003 08:39:41 +0000 (08:39 +0000)]
Add .cvsignore
Tor Lillqvist [Wed, 13 Aug 2003 00:24:21 +0000 (00:24 +0000)]
glib/Makefile.am gmodule/Makefile.am gobject/Makefile.am Use srcdir also
2003-08-13 Tor Lillqvist <tml@iki.fi>
* glib/Makefile.am
* gmodule/Makefile.am
* gobject/Makefile.am
* gthread/Makefile.am: Use srcdir also in references to the .def
files. (#118885, Jeff Bonggren)
Tor Lillqvist [Wed, 13 Aug 2003 00:13:02 +0000 (00:13 +0000)]
Drop the Win32-specific implementation. It used WideCharToMultiByte(),
2003-08-12 Tor Lillqvist <tml@iki.fi>
* glib/gconvert.c (g_locale_from_utf8): Drop the Win32-specific
implementation. It used WideCharToMultiByte(), which is broken as
it stores unconvertable characters as fallback characters
(question marks) in the destination string without being able to
tell how much of the conversion succeeded. Using g_convert() like
on Unix is better and simpler. (#117872)
(g_locale_to_utf8): No need for the Win32-specific implementation
here, either.
(have_broken_filenames): Define as TRUE on Win32.
(g_filename_to_utf8, g_filename_from_utf8): Drop Win32 ifdefs. As
have_broken_filenames() now is defined TRUE on Win32, works as
before.
Matthias Clasen [Mon, 11 Aug 2003 20:49:32 +0000 (20:49 +0000)]
Wrap to 80 columns.
Matthias Clasen [Sun, 10 Aug 2003 22:24:17 +0000 (22:24 +0000)]
Copy newer versions of JH_CHECK_XML_CATALOG and JH_PATH_XML_CATALOG from
* acinclude.m4: Copy newer versions of JH_CHECK_XML_CATALOG and JH_PATH_XML_CATALOG from
gtk-doc to enable configuring without xmlcatalog in PATH. (#119115)
Tor Lillqvist [Sun, 10 Aug 2003 08:04:10 +0000 (08:04 +0000)]
Don't use a cache of variable name to value mappings on Win32, as that
2003-08-10 Tor Lillqvist <tml@iki.fi>
* glib/gutils.c (g_getenv): Don't use a cache of variable name to
value mappings on Win32, as that breaks g_setenv() and
g_unsetenv(). Only call ExpandEnvironmentStrings() if necessary,
and in that case return a quarkified string. It is still
questionable how necessary expanding embedded environment variable
references is. Possibly the whole Win32-specific g_getenv()
implementation could be removed. (#119520)
Tor Lillqvist [Sun, 10 Aug 2003 01:54:02 +0000 (01:54 +0000)]
Add g_once_impl.
2003-08-08 Tor Lillqvist <tml@iki.fi>
* glib/glib.def: Add g_once_impl.
Tor Lillqvist [Fri, 8 Aug 2003 20:38:15 +0000 (20:38 +0000)]
Fix syntax error in the !HAVE_SETENV case.
2003-08-08 Tor Lillqvist <tml@iki.fi>
* glib/gutils.c (g_setenv): Fix syntax error in the !HAVE_SETENV
case.
Matthias Clasen [Fri, 8 Aug 2003 19:47:35 +0000 (19:47 +0000)]
Improve the wording of the warning for invalid
values. (#117246, Mariano Suarez-Alvarez)
Matthias Clasen [Fri, 8 Aug 2003 19:28:24 +0000 (19:28 +0000)]
Remove a test for getenv() behaviour which isn't specified by SUS and
2003-08-08 Matthias Clasen <maclas@gmx.de>
* tests/env-test.c (main): Remove a test for getenv() behaviour which isn't specified by SUS
and doesn't work on Solaris.
Matthias Clasen [Thu, 7 Aug 2003 21:51:38 +0000 (21:51 +0000)]
Add tests for '=' in names and values.
2003-08-07 Matthias Clasen <maclas@gmx.de>
* tests/env-test.c: Add tests for '=' in names and values.
* glib/gutils.c (g_setenv, g_unsetenv): Check that the variable name doesn't contain '='. Add a
declaration for environ. (#119338)
Matthias Clasen [Thu, 7 Aug 2003 20:48:10 +0000 (20:48 +0000)]
Tighten the snprintf() test to check behaviour on zero-size buffers.
2003-08-07 Matthias Clasen <maclas@gmx.de>
* acinclude.m4: Tighten the snprintf() test to check behaviour on zero-size buffers. (#106091)
Matthias Clasen [Thu, 7 Aug 2003 19:39:36 +0000 (19:39 +0000)]
Specify test strings in UTF-8, remove all charset conversion. Replace the
2003-08-07 Matthias Clasen <maclas@gmx.de>
* tests/patterntest.c: Specify test strings in UTF-8, remove all charset conversion.
Replace the NOISY define by a cmdline arg --noisy. (#115757)
Owen Taylor [Thu, 7 Aug 2003 19:10:41 +0000 (19:10 +0000)]
Set $LIBS to include -lintl when checking for dcgettext and
Thu Aug 7 15:01:09 2003 Owen Taylor <otaylor@redhat.com>
* m4macros/glib-gettext.m4: Set $LIBS to include
-lintl when checking for dcgettext and
_nl_msg_cat_cntr. (Tim Mooney, #119171)
Owen Taylor [Thu, 7 Aug 2003 18:19:23 +0000 (18:19 +0000)]
Make the default priority for idle sources G_PRIORITY_DEFAULT_IDLE as
Thu Aug 7 14:15:44 2003 Owen Taylor <otaylor@redhat.com>
* glib/gmain.c (g_idle_source_new): Make the default priority
for idle sources G_PRIORITY_DEFAULT_IDLE as anybody would
expect and document that. (#114461, reported by Andy Wingo)
Noah Levitt [Wed, 6 Aug 2003 20:28:33 +0000 (20:28 +0000)]
Add test for special case not at inital position in the string, the bug
2003-08-06 Noah Levitt <nlevitt@columbia.edu>
* tests/casemap.txt:
* tests/gen-casemap-txt.pl: Add test for special case not at inital
position in the string, the bug just fixed. (#118957)
Owen Taylor [Wed, 6 Aug 2003 14:33:20 +0000 (14:33 +0000)]
Add check for instance private usage within in instance_init. (Currently
Wed Aug 6 09:57:14 2003 Owen Taylor <otaylor@redhat.com>
* testgobject.c (test_signal_accumulator): Add check
for instance private usage within in instance_init.
(Currently will fail.)
Noah Levitt [Wed, 6 Aug 2003 01:25:46 +0000 (01:25 +0000)]
Fix small mistake in last commit. (still falls in the same Changelog entry) (#118957)
Noah Levitt [Wed, 6 Aug 2003 01:08:46 +0000 (01:08 +0000)]
Get rid of "len" parameter to output_special_case and output_marks, and
2003-08-05 Noah Levitt <nlevitt@columbia.edu>
* glib/guniprop.c: Get rid of "len" parameter to output_special_case
and output_marks, and make them work more like g_unichar_to_utf8,
fixing a bug in the process. (#118957)
Hans Breuer [Tue, 5 Aug 2003 22:21:19 +0000 (22:21 +0000)]
for msvc build
2003-08-05 Hans Breuer <hans@breuer.org>
* glib/gnulib/makefile.msc : (new file) for msvc build
* glib/gnulib/vasnprintf.c : use glib/galloc.h
* glib/gnulib/printf.h : #include <stdio.h> for FILE*
* glib/makefile.msc.in : replace trio with gnulib
* glib/glib.def : updated externals
* glib/guniprop.c : fix for guniprop.c(582) : error C2082:
redefinition of formal parameter 'len'
Matthias Clasen [Tue, 5 Aug 2003 21:35:55 +0000 (21:35 +0000)]
Add note about in-place editing to g_strdelimit() doc.
(#118875, Thomas Vander Stichele)
Noah Levitt [Tue, 5 Aug 2003 03:41:34 +0000 (03:41 +0000)]
We do handle > BMP now, so test it.
2003-08-04 Noah Levitt <nlevitt@columbia.edu>
* tests/unicode-normalize.c: We do handle > BMP now, so test it.
Sajith VK [Sat, 2 Aug 2003 14:54:17 +0000 (14:54 +0000)]
Retrying?
Noah Levitt [Thu, 31 Jul 2003 16:56:27 +0000 (16:56 +0000)]
s/g_read_link/g_file_read_link/ (#118727)
2003-07-31 Noah Levitt <nlevitt@columbia.edu>
* tests/file-test.c: s/g_read_link/g_file_read_link/ (#118727)
Noah Levitt [Thu, 31 Jul 2003 16:51:52 +0000 (16:51 +0000)]
Return nonzero exit status if the test fails. (#118729)
2003-07-31 Noah Levitt <nlevitt@columbia.edu>
* tests/unicode-encoding.c: Return nonzero exit status if the test fails. (#118729)
Noah Levitt [Thu, 31 Jul 2003 16:48:54 +0000 (16:48 +0000)]
Change instances of U+10ffff to U+10fffd, since that is the last valid
2003-07-31 Noah Levitt <nlevitt@columbia.edu>
* tests/utf8.txt: Change instances of U+10ffff to U+10fffd, since that
is the last valid unicode character. Add check that U+10ffff is
NOTUNICODE. (#118730)
Noah Levitt [Thu, 31 Jul 2003 02:27:56 +0000 (02:27 +0000)]
Update Unicode data to 4.0. (#107974)
2003-07-30 Noah Levitt <nlevitt@columbia.edu>
* glib/gen-unicode-tables.pl:
* glib/gunibreak.c:
* glib/gunibreak.h:
* glib/gunichartables.h:
* glib/gunicode.h:
* glib/gunicomp.h:
* glib/gunidecomp.c:
* glib/gunidecomp.h:
* glib/guniprop.c:
* tests/casefold.txt:
* tests/casemap.txt:
* tests/gen-casefold-txt.pl:
* tests/gen-casemap-txt.pl: Update Unicode data to 4.0. (#107974)
Tor Lillqvist [Thu, 31 Jul 2003 01:25:19 +0000 (01:25 +0000)]
When possible, manage without the helper process. (Part of the
2003-07-31 Tor Lillqvist <tml@iki.fi>
* glib/gspawn-win32.c: When possible, manage without the helper
process. (Part of the enhancements outlined in #98737.) Speeds up
GIMP 1.3's first-time-run plug-in query phase a lot.
Plug a file descriptor (and thus Win32 handle) leak: close the
read end of the child error report pipe after use.
Noah Levitt [Wed, 30 Jul 2003 22:31:23 +0000 (22:31 +0000)]
Revert accidental commit. (Oops.)
Noah Levitt [Wed, 30 Jul 2003 22:21:33 +0000 (22:21 +0000)]
Matthias Clasen [Wed, 30 Jul 2003 19:00:36 +0000 (19:00 +0000)]
Small doc additions.
Matthias Clasen [Wed, 30 Jul 2003 18:50:26 +0000 (18:50 +0000)]
Small doc fixes.
Matthias Clasen [Wed, 30 Jul 2003 00:01:39 +0000 (00:01 +0000)]
Remove forgotten @TRIO_LIBS@. (#118616, Noah Levitt)
* glib-2.0.pc.in (Libs): Remove forgotten @TRIO_LIBS@. (#118616, Noah Levitt)
Matthias Clasen [Tue, 29 Jul 2003 22:37:37 +0000 (22:37 +0000)]
Add paragraph about multi-threading policy.
* glib/glib-docs.sgml: Add paragraph about multi-threading policy.
Matthias Clasen [Tue, 29 Jul 2003 22:31:40 +0000 (22:31 +0000)]
Rename g_read_link() to g_file_read_link() to better match the remaining
* glib/gfileutils.[hc]: Rename g_read_link() to g_file_read_link() to better match the remaining file
utilities in the g_file_ namespace and to better separate it from readlink(). This is hopefully no problem
as the function is just 2 days old.
Matthias Clasen [Tue, 29 Jul 2003 18:59:23 +0000 (18:59 +0000)]
Use gchar, gint, gsize instead of char, int, size_t in the interface for
2003-07-29 Matthias Clasen <maclas@gmx.de>
* glib/gqsort.[hc] (g_qsort_with_data):
* glib/gconvert.[hc] (g_filename_to_uri, g_filename_from_uri):
* glib/gfileutils.[hc] (g_mkstemp, g_file_open_tmp): Use gchar, gint, gsize instead of char, int, size_t
in the interface for consistency. (#118567)
Matthias Clasen [Mon, 28 Jul 2003 23:00:51 +0000 (23:00 +0000)]
Remove trio printf().
Matthias Clasen [Mon, 28 Jul 2003 23:00:05 +0000 (23:00 +0000)]
Integrate gnulib vasnprintf().
Matthias Clasen [Mon, 28 Jul 2003 22:58:01 +0000 (22:58 +0000)]
Add gnulib vasnprintf().
Matthias Clasen [Mon, 28 Jul 2003 20:20:00 +0000 (20:20 +0000)]
Commit autogenerated stuff.
Matthias Clasen [Mon, 28 Jul 2003 20:14:09 +0000 (20:14 +0000)]
configure.in changes forgotten in last commit.
Matthias Clasen [Mon, 28 Jul 2003 19:49:47 +0000 (19:49 +0000)]
New function g_read_link(). (#72545)
* glib/gfileutils.h:
* glib/gfileutils.c: New function g_read_link(). (#72545)
Matthias Clasen [Mon, 28 Jul 2003 19:30:05 +0000 (19:30 +0000)]
Add tests for g_{get,set,unset}env().
Matthias Clasen [Mon, 28 Jul 2003 19:24:22 +0000 (19:24 +0000)]
Add g_setenv() and g_unsetenv(). (#100763)
* glib/gutils.[ch]: Add g_setenv() and g_unsetenv(). (#100763)
Matthias Clasen [Sat, 26 Jul 2003 09:24:46 +0000 (09:24 +0000)]
test suite additions.