dana/cg-glib.git
17 years agoAdd TODO comment.
Tor Lillqvist [Tue, 10 Jun 2008 10:34:02 +0000 (10:34 +0000)]
Add TODO comment.

2008-06-10  Tor Lillqvist  <tml@novell.com>

* gcontenttype.c (g_content_type_can_be_executable) [Win32]: Add
TODO comment.

svn path=/trunk/; revision=6979

17 years agoUpdated Thai translation.
Theppitak Karoonboonyanan [Tue, 10 Jun 2008 09:06:11 +0000 (09:06 +0000)]
Updated Thai translation.

2008-06-10  Theppitak Karoonboonyanan  <thep@linux.thai.net>

* th.po: Updated Thai translation.

svn path=/trunk/; revision=6978

17 years agoFix the build
Matthias Clasen [Mon, 9 Jun 2008 21:38:35 +0000 (21:38 +0000)]
Fix the build

svn path=/trunk/; revision=6977

17 years agoUse icons from the shared mime database, if available.
Matthias Clasen [Mon, 9 Jun 2008 17:33:43 +0000 (17:33 +0000)]
Use icons from the shared mime database, if available.

svn path=/trunk/; revision=6976

17 years agoSync with upstream
Matthias Clasen [Mon, 9 Jun 2008 16:45:19 +0000 (16:45 +0000)]
Sync with upstream

svn path=/trunk/; revision=6975

17 years agoCosmetics.
Tor Lillqvist [Mon, 9 Jun 2008 03:49:14 +0000 (03:49 +0000)]
Cosmetics.

svn path=/trunk/; revision=6973

17 years agoUpdated Norwegian bokmål translation.
Kjartan Maraas [Sat, 7 Jun 2008 18:40:42 +0000 (18:40 +0000)]
Updated Norwegian bokmål translation.

2008-06-07  Kjartan Maraas  <kmaraas@gnome.org>

* nb.po: Updated Norwegian bokmål translation.

svn path=/trunk/; revision=6972

17 years agoDefine X_OK if not defined (MSVC).
Tor Lillqvist [Sat, 7 Jun 2008 04:03:47 +0000 (04:03 +0000)]
Define X_OK if not defined (MSVC).

2008-06-07  Tor Lillqvist  <tml@novell.com>

* glib/gstdio.c (g_access): Define X_OK if not defined (MSVC).

svn path=/trunk/; revision=6970

17 years agoBug 531403 - g_utf8_collate broken on Mac.
Yevgen Muntyan [Mon, 2 Jun 2008 19:35:15 +0000 (19:35 +0000)]
Bug 531403 - g_utf8_collate broken on Mac.

2008-06-02  Yevgen Muntyan  <muntyan@tamu.edu>

Bug 531403 - g_utf8_collate broken on Mac.

* glib/gunicollate.c:  (g_utf8_collate): use UCCompareTextDefault;
        (collate_key_to_string), (carbon_collate_key_with_collator),
        (carbon_collate_key), (carbon_collate_key_for_filename): new
        functions using Carbon API to get collate key for g_utf8_collate_key()
        and g_utf8_collate_key_for_filename();
        (g_utf8_collate_key), (g_utf8_collate_key_for_filename): use those.

svn path=/trunk/; revision=6969

17 years agoUpdated Italian translation.
Luca Ferretti [Sat, 31 May 2008 09:33:54 +0000 (09:33 +0000)]
Updated Italian translation.

2008-05-31  Luca Ferretti  <elle.uca@libero.it>

* it.po: Updated Italian translation.

svn path=/trunk/; revision=6968

17 years agoUpdated German translation.
Philipp Kerling [Sat, 31 May 2008 09:07:22 +0000 (09:07 +0000)]
Updated German translation.

2008-05-31  Philipp Kerling  <k.philipp@gmail.com>

* de.po: Updated German translation.

svn path=/trunk/; revision=6967

17 years agoBug 535628 - test/patterntest.c still includes gpattern.h directly.
Michael Natterer [Fri, 30 May 2008 09:05:08 +0000 (09:05 +0000)]
Bug 535628 - test/patterntest.c still includes gpattern.h directly.

2008-05-30  Michael Natterer  <mitch@imendio.com>

Bug 535628 - test/patterntest.c still includes gpattern.h
directly.

* tests/patterntest.c: don't include "glib/gpattern.h" directly.
Patch from Hiroyuki Ikezoe.

svn path=/trunk/; revision=6964

17 years agoBug 535625 - alias.h:2648: error: 'utime' undeclared here (not in a
Tor Lillqvist [Fri, 30 May 2008 06:36:55 +0000 (06:36 +0000)]
Bug 535625 - alias.h:2648: error: 'utime' undeclared here (not in a

2008-05-30  Tor Lillqvist  <tml@novell.com>

Bug 535625 - alias.h:2648: error: 'utime' undeclared here (not
in a function)

* glib/glib.symbols: Move g_utime inside #if !defined(G_OS_UNIX)
|| defined(G_STDIO_NO_WRAP_ON_UNIX).

svn path=/trunk/; revision=6963

17 years agoMask out X_OK to avoid problem on Vista. X_OK was just ignored by access()
Tor Lillqvist [Thu, 29 May 2008 23:05:35 +0000 (23:05 +0000)]
Mask out X_OK to avoid problem on Vista. X_OK was just ignored by access()

2008-05-30  Tor Lillqvist  <tml@novell.com>

* glib/gstdio.c (g_access) [Win32]: Mask out X_OK to avoid problem
on Vista. X_OK was just ignored by access() in earlier Microsoft C
libraries. (Which is fine as executability has little meaning on
Windows.) The one on Vista returns an error if X_OK is passed.

svn path=/trunk/; revision=6961

17 years agoglib/gstdio.h Add g_utime(). No need to include <sys/utime.h> in gstdio.h,
Tor Lillqvist [Thu, 29 May 2008 18:05:26 +0000 (18:05 +0000)]
glib/gstdio.h Add g_utime(). No need to include <sys/utime.h> in gstdio.h,

2008-05-29  Tor Lillqvist  <tml@novell.com>

* glib/gstdio.h
* glib/gstdio.c: Add g_utime(). No need to include <sys/utime.h>
in gstdio.h, just use a forward struct declaration.

* glib/glib.symbols: Add it.

svn path=/trunk/; revision=6960

17 years agoAdd indexes
Matthias Clasen [Thu, 29 May 2008 03:49:48 +0000 (03:49 +0000)]
Add indexes

svn path=/trunk/; revision=6959

17 years agoMore verbiage.
Tor Lillqvist [Thu, 29 May 2008 02:49:29 +0000 (02:49 +0000)]
More verbiage.

svn path=/trunk/; revision=6957

17 years agowint_t is short on Windows, and gcc warns: "wint_t is promoted to int when
Tor Lillqvist [Thu, 29 May 2008 02:43:49 +0000 (02:43 +0000)]
wint_t is short on Windows, and gcc warns: "wint_t is promoted to int when

2008-05-29  Tor Lillqvist  <tml@novell.com>

* glib/gnulib/printf-args.c (printf_fetchargs): wint_t is short on
Windows, and gcc warns: "wint_t is promoted to int when passed
through ... (so you should pass int not wint_t to va_arg)." So do
that then.

svn path=/trunk/; revision=6956

17 years agoadd G_DISABLE_SINGLE_INCLUDES to CPPFLAGS globally.
Michael Natterer [Wed, 28 May 2008 16:18:27 +0000 (16:18 +0000)]
add G_DISABLE_SINGLE_INCLUDES to CPPFLAGS globally.

2008-05-28  Michael Natterer  <mitch@imendio.com>

* configure.in: add G_DISABLE_SINGLE_INCLUDES to CPPFLAGS
globally.

* glib/tests/option-context.c
* glib/tests/testing.c
* tests/testingbase64.c: don't include <glib/gtestutils.h>

svn path=/trunk/; revision=6955

17 years agodon't define G_DISABLE_SINGLE_INCLUDES, it's in the global CPPFLAGS now.
Michael Natterer [Wed, 28 May 2008 16:17:45 +0000 (16:17 +0000)]
don't define G_DISABLE_SINGLE_INCLUDES, it's in the global CPPFLAGS now.

2008-05-28  Michael Natterer  <mitch@imendio.com>

* Makefile.am: don't define G_DISABLE_SINGLE_INCLUDES, it's in
the global CPPFLAGS now.

* tests/data-input-stream.c
* tests/data-output-stream.c
* tests/g-file-info.c
* tests/g-file.c
* tests/live-g-file.c
* tests/memory-input-stream.c: don't include <glib/gtestutils.h>

svn path=/trunk/; revision=6954

17 years agodon't define G_DISABLE_SINGLE_INCLUDES, it's in the global CPPFLAGS now.
Michael Natterer [Wed, 28 May 2008 16:17:13 +0000 (16:17 +0000)]
don't define G_DISABLE_SINGLE_INCLUDES, it's in the global CPPFLAGS now.

2008-05-28  Michael Natterer  <mitch@imendio.com>

* Makefile.am: don't define G_DISABLE_SINGLE_INCLUDES, it's in
the global CPPFLAGS now.

svn path=/trunk/; revision=6953

17 years agodon't define G_DISABLE_SINGLE_INCLUDES, it's in the global CPPFLAGS now.
Michael Natterer [Wed, 28 May 2008 16:16:55 +0000 (16:16 +0000)]
don't define G_DISABLE_SINGLE_INCLUDES, it's in the global CPPFLAGS now.

2008-05-28  Michael Natterer  <mitch@imendio.com>

* Makefile.am: don't define G_DISABLE_SINGLE_INCLUDES, it's in
the global CPPFLAGS now.

svn path=/trunk/; revision=6952

17 years agodon't define G_DISABLE_SINGLE_INCLUDES, it's in the global CPPFLAGS now.
Michael Natterer [Wed, 28 May 2008 16:16:38 +0000 (16:16 +0000)]
don't define G_DISABLE_SINGLE_INCLUDES, it's in the global CPPFLAGS now.

2008-05-28  Michael Natterer  <mitch@imendio.com>

* Makefile.am: don't define G_DISABLE_SINGLE_INCLUDES, it's in
the global CPPFLAGS now.

svn path=/trunk/; revision=6951

17 years agoBump version
Matthias Clasen [Tue, 27 May 2008 21:25:12 +0000 (21:25 +0000)]
Bump version

svn path=/trunk/; revision=6950

17 years ago2.17.0
Matthias Clasen [Tue, 27 May 2008 21:22:45 +0000 (21:22 +0000)]
2.17.0

svn path=/trunk/; revision=6948

17 years agoUpdates
Matthias Clasen [Tue, 27 May 2008 19:56:26 +0000 (19:56 +0000)]
Updates

svn path=/trunk/; revision=6947

17 years agoUpdates
Matthias Clasen [Tue, 27 May 2008 19:49:17 +0000 (19:49 +0000)]
Updates

svn path=/trunk/; revision=6946

17 years agoAdditions
Matthias Clasen [Tue, 27 May 2008 16:46:43 +0000 (16:46 +0000)]
Additions

svn path=/trunk/; revision=6945

17 years agoUpdate to Unicode 5.1
Matthias Clasen [Tue, 27 May 2008 16:20:27 +0000 (16:20 +0000)]
Update to Unicode 5.1

svn path=/trunk/; revision=6944

17 years agoRevert the patch for bug 527214 and related changes. GTimer
Matthias Clasen [Tue, 27 May 2008 16:00:51 +0000 (16:00 +0000)]
Revert the patch for bug 527214 and related changes. GTimer
        is supposed to work without threads.

svn path=/trunk/; revision=6943

17 years agoForgot ChangeLog
Michael Natterer [Tue, 27 May 2008 14:53:43 +0000 (14:53 +0000)]
Forgot ChangeLog

svn path=/trunk/; revision=6942

17 years agoglib/tmpl/gurifuncs.sgml new files.
Michael Natterer [Tue, 27 May 2008 14:51:16 +0000 (14:51 +0000)]
glib/tmpl/gurifuncs.sgml new files.

2008-05-27  Michael Natterer  <mitch@gimp.org>

* glib/tmpl/gurifuncs.sgml
* glib/tmpl/testing.sgml: new files.

* glib/tmpl/unicode.sgml
* glib/tmpl/macros_misc.sgml
* glib/tmpl/checksum.sgml: regenerated.

* Updated lots of svn:ignore all over the place.

svn path=/trunk/; revision=6941

17 years ago Bug 535021 – g_param_spec_internal documentation should
Matthias Clasen [Tue, 27 May 2008 14:18:14 +0000 (14:18 +0000)]
    Bug 535021 – g_param_spec_internal documentation should
        describe purpose of nick and blurb

        * gobject/tmpl/gparamspec.sgml: Explain nicks and blurbs
        some more.

svn path=/trunk/; revision=6940

17 years agoFix #533369. Check whether memeber statvfs.f_basetype available or not.
simon.zheng [Tue, 27 May 2008 07:51:13 +0000 (07:51 +0000)]
Fix #533369. Check whether memeber statvfs.f_basetype available or not.

2008-05-27  simon.zheng  <simon.zheng@sun.com>

* configure.in: Fix #533369. Check whether memeber statvfs.f_basetype
        available or not.
* gio/glocalfile.c: (g_local_file_query_filesystem_info):
        Fix #533369. Make G_FILE_ATTRIBUTE_FILESYSTEM_TYPE work on Solaris.

svn path=/trunk/; revision=6939

17 years agoPCRE 7.7
Matthias Clasen [Tue, 27 May 2008 04:17:54 +0000 (04:17 +0000)]
PCRE 7.7

svn path=/trunk/; revision=6938

17 years agodeclare g_memory_output_stream_get_data_size().
Michael Natterer [Mon, 26 May 2008 11:52:24 +0000 (11:52 +0000)]
declare g_memory_output_stream_get_data_size().

2008-05-26  Michael Natterer  <mitch@imendio.com>

* gmemoryoutputstream.h: declare
g_memory_output_stream_get_data_size().

svn path=/trunk/; revision=6936

17 years agoMake tests work
Matthias Clasen [Mon, 26 May 2008 05:57:09 +0000 (05:57 +0000)]
Make tests work

svn path=/trunk/; revision=6935

17 years agoAdd a new symbol
Matthias Clasen [Mon, 26 May 2008 05:56:08 +0000 (05:56 +0000)]
Add a new symbol

svn path=/trunk/; revision=6934

17 years agoDoc improvements
Matthias Clasen [Mon, 26 May 2008 04:51:41 +0000 (04:51 +0000)]
Doc improvements

svn path=/trunk/; revision=6933

17 years agoAdd g_checksum_reset
Matthias Clasen [Mon, 26 May 2008 04:48:24 +0000 (04:48 +0000)]
Add g_checksum_reset

svn path=/trunk/; revision=6932

17 years agoAdd bug ref
Matthias Clasen [Sun, 25 May 2008 19:58:52 +0000 (19:58 +0000)]
Add bug ref

svn path=/trunk/; revision=6931

17 years agoFix a typo in the docs
Matthias Clasen [Sun, 25 May 2008 19:57:56 +0000 (19:57 +0000)]
Fix a typo in the docs

svn path=/trunk/; revision=6930

17 years agoFix docs for g_cclosure_marshal_STRING__OBJECT_POINTER. (#534177, Areg
Matthias Clasen [Sun, 25 May 2008 19:53:47 +0000 (19:53 +0000)]
Fix docs for g_cclosure_marshal_STRING__OBJECT_POINTER. (#534177, Areg

2008-05-25  Matthias Clasen  <mclasen@redhat.com>

        * gobject/tmpl/gclosure.sgml: Fix docs for
        g_cclosure_marshal_STRING__OBJECT_POINTER. (#534177, Areg Beketovski)

svn path=/trunk/; revision=6929

17 years agoFix typo in error message (#534764).
Ross Burton [Sun, 25 May 2008 18:31:42 +0000 (18:31 +0000)]
Fix typo in error message (#534764).

2008-05-25  Ross Burton  <ross@burtonini.com>

* glocalfile.c:
Fix typo in error message (#534764).

svn path=/trunk/; revision=6928

17 years agoFix circular dependency loop for gioenumtypes.h (#534759).
Ross Burton [Sun, 25 May 2008 15:49:27 +0000 (15:49 +0000)]
Fix circular dependency loop for gioenumtypes.h (#534759).

2008-05-25  Ross Burton  <ross@burtonini.com>

* Makefile.am:
Fix circular dependency loop for gioenumtypes.h (#534759).

svn path=/trunk/; revision=6927

17 years agoCosmetics.
Tor Lillqvist [Sun, 25 May 2008 10:27:01 +0000 (10:27 +0000)]
Cosmetics.

svn path=/trunk/; revision=6926

17 years agoBug 534319 - GLib's .pc files could use Libs.private
Tor Lillqvist [Sun, 25 May 2008 10:26:42 +0000 (10:26 +0000)]
Bug 534319 - GLib's .pc files could use Libs.private

2008-05-25  Tor Lillqvist  <tml@novell.com>

Bug 534319 - GLib's .pc files could use Libs.private

* glib-2.0-uninstalled.pc.in
* glib-2.0.pc.in
* gmodule-2.0-uninstalled.pc.in
* gmodule-2.0.pc.in
* gmodule-export-2.0.pc.in
* gmodule-no-export-2.0.pc.in: Move ICONV_LIBS and G_MODULE_LIBS to Libs.private.

svn path=/trunk/; revision=6925

17 years agosmall doc improvement
Matthias Clasen [Sat, 24 May 2008 18:32:09 +0000 (18:32 +0000)]
small doc improvement

svn path=/trunk/; revision=6924

17 years agoUpdated Arabic Translation by Khaled Hosny.
Djihed Afifi [Thu, 22 May 2008 22:56:52 +0000 (22:56 +0000)]
Updated Arabic Translation by Khaled Hosny.

svn path=/trunk/; revision=6923

17 years agoimplement G_STMT_START and G_STMT_END with do{}while(0), which is believed
10:49:37 Tim Janik [Thu, 22 May 2008 08:53:15 +0000 (08:53 +0000)]
implement G_STMT_START and G_STMT_END with do{}while(0), which is believed

2008-05-22 10:49:37  Tim Janik  <timj@imendio.com>

        * glib/gmacros.h: implement G_STMT_START and G_STMT_END with
        do{}while(0), which is believed to be widely portable, fixes:
        Bug 519026 - G_STMT_START/G_STMT_END test a non-existent preprocessor symbol

svn path=/trunk/; revision=6922

17 years agoBug 501651 – Update glib/libcharset
Behdad Esfahbod [Tue, 20 May 2008 22:49:16 +0000 (22:49 +0000)]
Bug 501651 – Update glib/libcharset

2008-05-20  Behdad Esfahbod  <behdad@gnome.org>

        Bug 501651 – Update glib/libcharset

        * configure.in:
        * glib/libcharset/Makefile.am:
        * glib/libcharset/README:
        * glib/libcharset/codeset.m4:
        * glib/libcharset/config.charset:
        * glib/libcharset/glibc21.m4:
        * glib/libcharset/libcharset-glib.patch:
        * glib/libcharset/libcharset.h:
        * glib/libcharset/localcharset.c (_g_locale_get_charset_aliases),
        (_g_locale_charset_raw):
        * glib/libcharset/localcharset.h:
        * glib/libcharset/make-patch.sh:
        * glib/libcharset/ref-add.sin:
        * glib/libcharset/ref-del.sin:
        * glib/libcharset/update.sh:
        Update libcharset to the one shipped with libiconv-0.12.

svn path=/trunk/; revision=6921

17 years agoBug 459905 – Bug in wcwidth data Bug 534085 – g_unichar_iswide_cjk()
Behdad Esfahbod [Tue, 20 May 2008 19:42:07 +0000 (19:42 +0000)]
Bug 459905 – Bug in wcwidth data Bug 534085 – g_unichar_iswide_cjk()

2008-05-20  Behdad Esfahbod  <behdad@gnome.org>

        Bug 459905 – Bug in wcwidth data
        Bug 534085 – g_unichar_iswide_cjk() has a totally wrong table
        * glib/guniprop.c (g_unichar_iswide), (g_unichar_iswide_cjk):
        Regenrate wide and wide_cjk tables from Unicode 5.1.0 data directly.
        Not using Markus Kuhn's tables anymore.

svn path=/trunk/; revision=6920

17 years agoBug 503071 - Application direction changes to right to left even if theres
14:31:18 Tim Janik [Tue, 20 May 2008 13:03:15 +0000 (13:03 +0000)]
Bug 503071 - Application direction changes to right to left even if theres

2008-05-20 14:31:18  Tim Janik  <timj@imendio.com>

        * reverted recent unapproved changes by Yair Hershkovitz, regarding:
        Bug 503071 - Application direction changes to right to left even if theres no translation.

svn path=/trunk/; revision=6919

17 years agoDon't need memory barriers when using a non-gcc compiler on Windows
Tor Lillqvist [Tue, 20 May 2008 08:03:03 +0000 (08:03 +0000)]
Don't need memory barriers when using a non-gcc compiler on Windows

2008-05-20  Tor Lillqvist  <tml@novell.com>

* configure.in: Don't need memory barriers when using a non-gcc
compiler on Windows either.

svn path=/trunk/; revision=6918

17 years agoInclude the dirent.h and wdirent.c from ../build/win32/dirent directly
Tor Lillqvist [Mon, 19 May 2008 12:42:14 +0000 (12:42 +0000)]
Include the dirent.h and wdirent.c from ../build/win32/dirent directly

2008-05-19  Tor Lillqvist  <tml@novell.com>

* glib/gdir.c: Include the dirent.h and wdirent.c from
../build/win32/dirent directly here when compiling with MSVC and
without HAVE_DIRENT_H.

svn path=/trunk/; revision=6915

17 years agoInclude dirent.h with doublequotes so that it is searched from this same
Tor Lillqvist [Mon, 19 May 2008 12:39:24 +0000 (12:39 +0000)]
Include dirent.h with doublequotes so that it is searched from this same

2008-05-19  Tor Lillqvist  <tml@novell.com>

* win32/dirent/dirent.c: Include dirent.h with doublequotes so
that it is searched from this same folder first.

svn path=/trunk/; revision=6914

17 years agoadded gi18n.c
Hans Breuer [Mon, 19 May 2008 05:22:06 +0000 (05:22 +0000)]
added gi18n.c

2008-05-19  Hans Breuer  <hans@breuer.org>

* glib/makefile.msc : added gi18n.c

svn path=/trunk/; revision=6913

17 years agoEXTRA_DIST += makefile.msc
Hans Breuer [Mon, 19 May 2008 05:18:10 +0000 (05:18 +0000)]
EXTRA_DIST += makefile.msc

2008-05-19  Hans Breuer  <hans@breuer.org>

* Makefile.am : EXTRA_DIST += makefile.msc

svn path=/trunk/; revision=6912

17 years agowin32/vs8/gspawn-win32-helper.vcproj New files. Build these two
Tor Lillqvist [Sun, 18 May 2008 21:44:16 +0000 (21:44 +0000)]
win32/vs8/gspawn-win32-helper.vcproj New files. Build these two

2008-05-19  Tor Lillqvist  <tml@novell.com>

* win32/vs8/gspawn-win32-helper.vcproj
* win32/vs8/gspawn-win32-helper-console.vcproj: New files. Build
these two executables.

* win32/vs8/*.vcproj: Compile as C and not C++.

* win32/vs8/glib-genmarshal.vcproj: Use MBS and not Unicode. (What
this setting really means is just that we don't define the UNICODE
and _UNICODE macros when compiling; it has no effect on what APIs
the code might use.) Use the same IntermediateDirectory as the
other projects.

* win32/vs8/glib.sln: Add the gspawn-win32-helper and gspawn-win32-helper projects.

svn path=/trunk/; revision=6911

17 years agoMore verbiage.
Tor Lillqvist [Sun, 18 May 2008 21:39:31 +0000 (21:39 +0000)]
More verbiage.

svn path=/trunk/; revision=6910

17 years ago#define HELPER_CONSOLE in gspawn-win32-helper-console.c
Tor Lillqvist [Sun, 18 May 2008 21:38:50 +0000 (21:38 +0000)]
#define HELPER_CONSOLE in gspawn-win32-helper-console.c

2008-05-19  Tor Lillqvist  <tml@novell.com>

* glib/Makefile.am: #define HELPER_CONSOLE in
gspawn-win32-helper-console.c

* glib/gspawn-win32-helper.c: Compile a main() instead of
WinMain() if HELPER_CONSOLE is defined.

svn path=/trunk/; revision=6909

17 years agoRemove leftover svn conflict indicator.
Tor Lillqvist [Sun, 18 May 2008 19:46:49 +0000 (19:46 +0000)]
Remove leftover svn conflict indicator.

svn path=/trunk/; revision=6908

17 years ago Bug 527214 – g_timer_elapsed() returns random values.
Matthias Clasen [Sun, 18 May 2008 19:15:32 +0000 (19:15 +0000)]
    Bug 527214 – g_timer_elapsed() returns random values.

        * glib/gtimer.c (g_timer_new()):
        Print warning if g_thread_init() has not been called yet.
        Patch by Mathias Hasselmann

svn path=/trunk/; revision=6907

17 years agoNew function to create a content type from a mime type. (#527175, Milan
Matthias Clasen [Sun, 18 May 2008 02:50:48 +0000 (02:50 +0000)]
New function to create a content type from a mime type. (#527175, Milan

2008-05-17  Matthias Clasen  <mclasen@redhat.com>

        * gcontenttype.h:
        * gcontenttype.c: (g_content_type_from_mime_type):
        New function to create a content type from a mime type. (#527175,
        Milan Crha)

svn path=/trunk/; revision=6906

17 years agoNew function to reset the state of a GChecksum. (g_checksum_new): Call
Jeffrey Stedfast [Sat, 17 May 2008 16:53:54 +0000 (16:53 +0000)]
New function to reset the state of a GChecksum. (g_checksum_new): Call

2008-05-12  Jeffrey Stedfast  <fejj@novell.com>

* glib/gchecksum.c (g_checksum_reset): New function to reset the
state of a GChecksum.
(g_checksum_new): Call g_checksum_reset() instead of duplicating
code.

svn path=/trunk/; revision=6903

17 years agofix free space information for ncpfs
Matthias Clasen [Sat, 17 May 2008 06:08:08 +0000 (06:08 +0000)]
fix free space information for ncpfs

svn path=/trunk/; revision=6902

17 years ago Bug 530196 – _g_local_file_has_trash_dir() doesn't handle st_dev == 0
Matthias Clasen [Sat, 17 May 2008 06:01:43 +0000 (06:01 +0000)]
    Bug 530196 – _g_local_file_has_trash_dir() doesn't handle st_dev == 0

        * glocalfile.c (_g_local_file_has_trash_dir): Handle the case that
        st_dev might be zero.

svn path=/trunk/; revision=6901

17 years ago Bug 528648 – Extra >s in Object Construction section...
Matthias Clasen [Sat, 17 May 2008 05:56:29 +0000 (05:56 +0000)]
    Bug 528648 – Extra >s in Object Construction section...

        * gobject/tut_howto.xml: Fix a formatting glitch

svn path=/trunk/; revision=6900

17 years ago Bug 528667 – Typos in testing module documentation
Matthias Clasen [Sat, 17 May 2008 05:52:36 +0000 (05:52 +0000)]
    Bug 528667 – Typos in testing module documentation

        * glib/gtestutils.c: Fix typos in the documentation.

svn path=/trunk/; revision=6899

17 years agoMake debugging printout more compact and add more information to it. No
Tor Lillqvist [Sat, 17 May 2008 02:34:17 +0000 (02:34 +0000)]
Make debugging printout more compact and add more information to it. No

2008-05-17  Tor Lillqvist  <tml@novell.com>

* glib/giowin32.c: Make debugging printout more compact and add
more information to it. No changes to actual functionality.

svn path=/trunk/; revision=6898

17 years agoImprove debugging printouts. When G_MAIN_POLL_DEBUG is defined, we check
Tor Lillqvist [Sat, 17 May 2008 02:25:59 +0000 (02:25 +0000)]
Improve debugging printouts. When G_MAIN_POLL_DEBUG is defined, we check

2008-05-17  Tor Lillqvist  <tml@novell.com>

* glib/gmain.c: Improve debugging printouts. When
G_MAIN_POLL_DEBUG is defined, we check for an environment variable
of the same name to decide whether to print out debugging
information or not. G_MAIN_POLL_DEBUG is always defined on Windows
as there is more often a need to debug this stuff there. On Unix
the definition has to be uncommented (or done on the compile
command line).

svn path=/trunk/; revision=6897

17 years agoexternals. The relevant directories and files have been svn add'ed to GLib
Tor Lillqvist [Sat, 17 May 2008 01:36:40 +0000 (01:36 +0000)]
externals. The relevant directories and files have been svn add'ed to GLib

2008-05-17  Tor Lillqvist  <tml@novell.com>

* "build" is no longer include into GLib through
svn:externals. The relevant directories and files have been svn
add'ed to GLib (trunk) instead.

svn path=/trunk/; revision=6895

17 years agoAdded g_disable_setlocale().
Yair Hershkovitz [Fri, 16 May 2008 22:52:42 +0000 (22:52 +0000)]
Added g_disable_setlocale().

2008-05-17  Yair Hershkovitz  <yairhr@gmail.com>

* glib/glib.symbols:
* glib/gi18n.h: Added g_disable_setlocale().

* glib/gi18n.c: Added g_disable_setlocale() API to disable setting
the locale in g_i18n_init(). Dont disable translations if textdomain
was not set before calling g_i18n_init(). Dont disable translations if
the locale is "C".

svn path=/trunk/; revision=6894

17 years ago#define _WIN32_WINNT 0x0400 to get declaration of ReadDirectoryChangesW()
Tor Lillqvist [Fri, 16 May 2008 17:16:37 +0000 (17:16 +0000)]
#define _WIN32_WINNT 0x0400 to get declaration of ReadDirectoryChangesW()

2008-05-16  Tor Lillqvist  <tml@novell.com>

* win32/gwin32directorymonitor.c: #define _WIN32_WINNT 0x0400 to
get declaration of ReadDirectoryChangesW() from Platform SDK headers.

svn path=/trunk/; revision=6893

17 years agoUpdate to match the configure-produced one.
Tor Lillqvist [Fri, 16 May 2008 16:42:52 +0000 (16:42 +0000)]
Update to match the configure-produced one.

2008-05-16  Tor Lillqvist  <tml@novell.com>

* config.h.win32.in: Update to match the configure-produced one.

svn path=/trunk/; revision=6892

17 years agoDon't mention fork()/exec() in the short description. fork()/exec() is an
Tor Lillqvist [Wed, 14 May 2008 14:19:59 +0000 (14:19 +0000)]
Don't mention fork()/exec() in the short description. fork()/exec() is an

2008-05-14  Tor Lillqvist  <tml@novell.com>

* glib/tmpl/spawn.sgml: Don't mention fork()/exec() in the short
description. fork()/exec() is an implementation detail on Unix.

svn path=/trunk/; revision=6891

17 years ago#include "config.h" before using G_ATOMIC_ARM.
Michael Natterer [Wed, 14 May 2008 12:05:24 +0000 (12:05 +0000)]
#include "config.h" before using G_ATOMIC_ARM.

2008-05-14  Michael Natterer  <mitch@imendio.com>

* glib/gatomic.c: #include "config.h" before using G_ATOMIC_ARM.

svn path=/trunk/; revision=6889

17 years ago#include <locale.h> to fix the build.
Kjartan Maraas [Tue, 13 May 2008 15:33:09 +0000 (15:33 +0000)]
#include <locale.h> to fix the build.

2008-05-13  Kjartan Maraas  <kmaraas@gnome.org>

* glib/gi18n.c: #include <locale.h> to fix the build.

svn path=/trunk/; revision=6888

17 years agoA URI scheme must start with a letter, even if later more characters are
Bastien Nocera [Tue, 13 May 2008 12:42:40 +0000 (12:42 +0000)]
A URI scheme must start with a letter, even if later more characters are

2008-05-13  Bastien Nocera  <hadess@hadess.net>

* gfile.c (has_valid_scheme): A URI scheme must start with a
letter, even if later more characters are allowed (#532852)

svn path=/trunk/; revision=6887

17 years agoCoding convention fix. Space between a function name and its opening
Yair Hershkovitz [Mon, 12 May 2008 10:04:21 +0000 (10:04 +0000)]
Coding convention fix. Space between a function name and its opening

2008-05-12  Yair Hershkovitz  <yairhr@gmail.com>

        * glib/gi18n.c (g_i18n_init): Coding convention fix. Space between
        a function name and its opening parenthesis.

svn path=/trunk/; revision=6885

17 years agoAdd g_i18n_init.
Tor Lillqvist [Mon, 12 May 2008 07:57:21 +0000 (07:57 +0000)]
Add g_i18n_init.

2008-05-12  Tor Lillqvist  <tml@novell.com>

* glib/glib.symbols: Add g_i18n_init.

svn path=/trunk/; revision=6884

17 years agoBug 530457 - G_USER_DIRECTORY_DOWNLOAD folder improperly mapped
Tor Lillqvist [Mon, 12 May 2008 06:58:50 +0000 (06:58 +0000)]
Bug 530457 - G_USER_DIRECTORY_DOWNLOAD folder improperly mapped

2008-05-12  Tor Lillqvist  <tml@novell.com>

Bug 530457 - G_USER_DIRECTORY_DOWNLOAD folder improperly mapped

* glib/gutils.c (load_user_special_dirs): When running on Vista or
later, use SHGetKnownFolderPath() to get the FOLDERID_Downloads
folder for G_USER_DIRECTORY_DOWNLOAD, and FOLDERID_Public for
G_USER_DIRECTORY_PUBLIC_SHARE.

svn path=/trunk/; revision=6883

17 years agoBug 503071 - Application direction changes to right to left even if theres
Yair Hershkovitz [Sun, 11 May 2008 09:34:29 +0000 (09:34 +0000)]
Bug 503071 - Application direction changes to right to left even if theres

2008-05-11  Yair Hershkovitz  <yairhr@gmail.com>

        Bug 503071 - Application direction changes to right to left even if
        theres no translation.

        * glib/gi18n.c: g_i18n_init() for initializing the glib i18n,
        checking if a translation is available for the calling app. wrappers for
        gettext, dgettext and dpgettext to check first if the application
        should be translated.

        * glib/gi18n.h: symbol declaration for gettext wrappers.

        * glib/gi18n-lib.h: include gi18n.h instead of libintl.h.

        * glib/gstrfuncs.c: moved g_dpgettext() to glib/gi18n.c.

        * glib/gutils.c: use g_dgettext() instead of dgettext().

        * glib/glibintl.h: include gi18n.h.

        * glib.symbols: added gettext wrappers.

        * glib/Makefile.am: added gi18n.c.

svn path=/trunk/; revision=6882

17 years agoUpdated Bulgarian translation by Alexander Shopov <ash@contact.bg>
Alexander Shopov [Thu, 8 May 2008 20:07:33 +0000 (20:07 +0000)]
Updated Bulgarian translation by Alexander Shopov <ash@contact.bg>

2008-05-08  Alexander Shopov  <ash@contact.bg>

* bg.po: Updated Bulgarian translation by
Alexander Shopov <ash@contact.bg>

svn path=/trunk/; revision=6880

17 years agoMakefile.am. build with G_DISABLE_SINGLE_INCLUDES to prevent code from
Michael Natterer [Mon, 5 May 2008 15:12:13 +0000 (15:12 +0000)]
Makefile.am. build with G_DISABLE_SINGLE_INCLUDES to prevent code from

2008-05-05  Michael Natterer  <mitch@imendio.com>

* Makefile.am. build with G_DISABLE_SINGLE_INCLUDES to prevent
code from being checked in that breaks the build of applications
which use G_DISABLE_SINGLE_INCLUDES.

* makegioalias.pl: make the alias file include "glib.h" instead of
"glibconfig.h".

* gio.symbols: whitespace change to force regeneration of the
alias file after above script change.

* gfileinfo.h: remove inlcusion of <glib/gfileutils.h>.

* gfilenamecompleter.c: remove inclusion of "gurifuncs.h".

* gioerror.h: #include <glib.h> instead of <glib/gerror.h>.

* glocalfileinfo.c: remove inclusion of <glib/gchecksum>.

svn path=/trunk/; revision=6879

17 years agoMakefile.am. build with G_DISABLE_SINGLE_INCLUDES to prevent code from
Michael Natterer [Mon, 5 May 2008 15:05:40 +0000 (15:05 +0000)]
Makefile.am. build with G_DISABLE_SINGLE_INCLUDES to prevent code from

2008-05-05  Michael Natterer  <mitch@imendio.com>

* Makefile.am. build with G_DISABLE_SINGLE_INCLUDES to prevent
code from being checked in that breaks the build of applications
which use G_DISABLE_SINGLE_INCLUDES.

svn path=/trunk/; revision=6878

17 years agoMakefile.am. build with G_DISABLE_SINGLE_INCLUDES to prevent code from
Michael Natterer [Mon, 5 May 2008 15:04:58 +0000 (15:04 +0000)]
Makefile.am. build with G_DISABLE_SINGLE_INCLUDES to prevent code from

2008-05-05  Michael Natterer  <mitch@imendio.com>

* Makefile.am. build with G_DISABLE_SINGLE_INCLUDES to prevent
code from being checked in that breaks the build of applications
which use G_DISABLE_SINGLE_INCLUDES.

* gmodule.c: #include "glib.h" instead of "glibconfig.h"

svn path=/trunk/; revision=6877

17 years agoMakefile.am. build with G_DISABLE_SINGLE_INCLUDES to prevent code from
Michael Natterer [Mon, 5 May 2008 15:04:00 +0000 (15:04 +0000)]
Makefile.am. build with G_DISABLE_SINGLE_INCLUDES to prevent code from

2008-05-05  Michael Natterer  <mitch@imendio.com>

* Makefile.am. build with G_DISABLE_SINGLE_INCLUDES to prevent
code from being checked in that breaks the build of applications
which use G_DISABLE_SINGLE_INCLUDES.

svn path=/trunk/; revision=6876

17 years ago#define __GLIB_H_INSIDE__ around including everything.
Michael Natterer [Mon, 5 May 2008 15:02:15 +0000 (15:02 +0000)]
#define __GLIB_H_INSIDE__ around including everything.

2008-05-05  Michael Natterer  <mitch@imendio.com>

* glib/glib.h: #define __GLIB_H_INSIDE__ around including
everything.

* glib/*.h: check for that define instead of __G_LIB_H__ if
G_DISABLE_SINGLE_INCLUDES is defined.

* glib/gdatasetprivate.h: #include <glib.h> instead of
<glib/gdataset.h>

svn path=/trunk/; revision=6875

17 years agorenamed GMainDispatch.dispatching_sources to be more descriptive and
13:24:13 Tim Janik [Fri, 2 May 2008 11:22:10 +0000 (11:22 +0000)]
renamed GMainDispatch.dispatching_sources to be more descriptive and

2008-05-02 13:24:13  Tim Janik  <timj@imendio.com>

        * glib/gmain.c: renamed GMainDispatch.dispatching_sources to be more
        descriptive and distinguishable within the source file.

svn path=/trunk/; revision=6874

17 years agoAvoid displaying mounts in a subdirectory not accessible to the user
David Zeuthen [Mon, 28 Apr 2008 22:38:49 +0000 (22:38 +0000)]
Avoid displaying mounts in a subdirectory not accessible to the user

2008-04-28  David Zeuthen  <davidz@redhat.com>

        * gunixmounts.c (g_unix_mount_guess_should_display): Avoid
        displaying mounts in a subdirectory not accessible to the
        user (#526320).

svn path=/trunk/; revision=6872

17 years agoUpdated Occitan translation
Yannig MARCHEGAY [Wed, 23 Apr 2008 08:45:23 +0000 (08:45 +0000)]
Updated Occitan translation

svn path=/trunk/; revision=6871

17 years agofix library versioning (it was 0.0.0).
Michael Natterer [Tue, 22 Apr 2008 13:51:37 +0000 (13:51 +0000)]
fix library versioning (it was 0.0.0).

2008-04-22  Michael Natterer  <mitch@imendio.com>

* Makefile.am: fix library versioning (it was 0.0.0).

svn path=/trunk/; revision=6870

17 years agoUpdated Canadian English translation.
Adam Weinberger [Tue, 22 Apr 2008 04:01:33 +0000 (04:01 +0000)]
Updated Canadian English translation.

2008-04-22  Adam Weinberger  <adamw@gnome.org>

* en_CA.po: Updated Canadian English translation.

svn path=/trunk/; revision=6869

17 years agoBug 528752 - Win32 build and SSL not working
Tor Lillqvist [Mon, 21 Apr 2008 12:24:49 +0000 (12:24 +0000)]
Bug 528752 - Win32 build and SSL not working

2008-04-21  Tor Lillqvist  <tml@novell.com>

Bug 528752 - Win32 build and SSL not working

This bug report against libsoup points out an issue with the use
of bitfields in the GIOChannel struct that should really be taken
care of here in GLib.

* configure.in: Add Autoconf variable GLIB_EXTRA_CFLAGS which will
contain the -mms-bitfields flag on Windows.

* glib-2.0.pc.in: Add it to Cflags.

svn path=/trunk/; revision=6868

17 years agoconfigure.in More work on enabling static building on Windows. When
Tor Lillqvist [Mon, 21 Apr 2008 08:38:36 +0000 (08:38 +0000)]
configure.in More work on enabling static building on Windows. When

2008-04-21  Tor Lillqvist  <tml@novell.com>

* configure.in
* */Makefile.am: More work on enabling static building on
Windows. When building statically: Also define
GOBJECT_STATIC_COMPILATION in glibconfig.h so that also the
variables in gparamspecs.h get declared without any
dllimport/dllexport decorations. Don't install .def files which
obviously have no meaning for static libraries. Don't create MS
import libraries. Don't do any resource object files.

svn path=/trunk/; revision=6866

17 years agoDefault disable all loggings. Fixed two macro nits.
Lin Ma [Mon, 21 Apr 2008 02:40:40 +0000 (02:40 +0000)]
Default disable all loggings. Fixed two macro nits.

2008-04-21  Lin Ma  <Lin.Ma@Sun.COM>

* fen/fen-data.c, fen/fen-helper.c, fen/fen-missing.c, fen/fen-node.c:
Default disable all loggings.
* fen/fen-kernel.c: (printevent), (port_add_kevent),
(port_fetch_event_cb): Fixed two macro nits.

svn path=/trunk/; revision=6865

17 years agoupdated hebrew translation
Yair Hershkovitz [Sun, 20 Apr 2008 15:33:02 +0000 (15:33 +0000)]
updated hebrew translation

svn path=/trunk/; revision=6864

17 years agoUpdated Norwegian bokmål translation.
Kjartan Maraas [Sat, 19 Apr 2008 09:10:46 +0000 (09:10 +0000)]
Updated Norwegian bokmål translation.

2008-04-19  Kjartan Maraas  <kmaraas@gnome.org>

* nb.po: Updated Norwegian bokmål translation.

svn path=/trunk/; revision=6863

17 years agofixed gstdio.h include.
17:40:58 Tim Janik [Fri, 18 Apr 2008 15:40:38 +0000 (15:40 +0000)]
fixed gstdio.h include.

2008-04-18 17:40:58  Tim Janik  <timj@imendio.com>

        * tests/testglib.c: fixed gstdio.h include.

        * tests/Makefile.am: properly list testglib.c SOURCES.

svn path=/trunk/; revision=6862