platform/upstream/glib.git
16 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

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

svn path=/trunk/; revision=6926

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

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

svn path=/trunk/; revision=6910

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 years agoUse the macro GLib provides for byte-swapping as it can be optimized.
Emmanuele Bassi [Thu, 17 Apr 2008 11:29:26 +0000 (11:29 +0000)]
Use the macro GLib provides for byte-swapping as it can be optimized.

2008-04-17  Emmanuele Bassi  <ebassi@gnome.org>

* glib/gchecksum.c:
(sha_byte_reverse): Use the macro GLib provides for byte-swapping
as it can be optimized.

(g_checksum_update): Fix a compiler warning.

svn path=/trunk/; revision=6861

16 years agoRework the timestamp checking code to protect against duplicate
Matthias Clasen [Wed, 16 Apr 2008 21:55:32 +0000 (21:55 +0000)]
Rework the timestamp checking code to protect against duplicate

2008-04-16  Matthias Clasen  <mclasen@redhat.com>

        * xdgmime/xdgmime.c: Rework the timestamp checking code
        to protect against duplicate directories in XDG_DATA_DIRS.
        Fixes fd.o bug 12513, reported by Joe Shaw.

svn path=/trunk/; revision=6859

16 years agoPartically revert the last commit after realizing that
Matthias Clasen [Wed, 16 Apr 2008 17:13:19 +0000 (17:13 +0000)]
Partically revert the last commit after realizing that

2008-04-16  Matthias Clasen  <mclasen@redhat.com>

        Partically revert the last commit after realizing that
        xdg_mime_media_type_equal doesn't have to init at all.

        * xdgmime/xdgmime.h:
        * xdgmime/xdgmime.c: Get rid of _xdg_mime_media_type_equal

        * xdgmime/xdgmimecache.c: Use xdg_mime_media_type_equal

svn path=/trunk/; revision=6857

16 years agoAvoid possible memory corruption in xdgmime, fd.o bug 12512, reported by
Matthias Clasen [Wed, 16 Apr 2008 16:54:44 +0000 (16:54 +0000)]
Avoid possible memory corruption in xdgmime, fd.o bug 12512, reported by

2008-04-16  Matthias Clasen  <mclasen@redhat.com>

        Avoid possible memory corruption in xdgmime, fd.o bug 12512,
        reported by Joe Shaw and Federico Mena Quintero.

        * xdgmime/xdgmime.c(_xdg_mime_media_type_equal): Implement.
        (xdg_mime_media_type_equal): Turn into a wrapper around the
        _-prefixed version.

        * xdgmime/xdgmimecache.c: Use the _-prefixed versions of comparison
        functions throughout.

svn path=/trunk/; revision=6854

16 years agotolerate an empty TryExec= line without failing; nautilus used to create
Michael Meeks [Wed, 16 Apr 2008 16:48:23 +0000 (16:48 +0000)]
tolerate an empty TryExec= line without failing; nautilus used to create

2008-04-16  Michael Meeks  <michael.meeks@novell.com>

        * gdesktopappinfo.c (g_desktop_app_info_new_from_filename):
        tolerate an empty TryExec= line without failing; nautilus used
        to create launchers with these in previous versions. Fixes #528433

svn path=/trunk/; revision=6853

16 years agoFixed British English translation.
Philip Withnall [Tue, 15 Apr 2008 16:53:33 +0000 (16:53 +0000)]
Fixed British English translation.

2008-04-15  Philip Withnall  <pwithnall@svn.gnome.org>

* en_GB.po: Fixed British English translation.

svn path=/trunk/; revision=6851

16 years agoFixed typos in gtk-doc comments.
Mukund Sivaraman [Tue, 15 Apr 2008 14:32:58 +0000 (14:32 +0000)]
Fixed typos in gtk-doc comments.

2008-04-15  Mukund Sivaraman  <muks@mukund.org>

        * gio/gfile.c: Fixed typos in gtk-doc comments.

svn path=/trunk/; revision=6850

16 years agoBug 519137 – g_slice_dup macro needs cast for 64-bit platform
Mathias Hasselmann [Thu, 10 Apr 2008 21:40:48 +0000 (21:40 +0000)]
Bug 519137 – g_slice_dup macro needs cast for 64-bit platform

* glib/gslice.h (g_slice_copy): Apply type casts needed
  for proper compilation on 64-bit platforms.

svn path=/trunk/; revision=6848

16 years agoDon't leak apps_by_name in GBookmarkFile metadata items
Federico Mena Quintero [Wed, 9 Apr 2008 20:20:19 +0000 (20:20 +0000)]
Don't leak apps_by_name in GBookmarkFile metadata items
2008-04-09  Federico Mena Quintero  <federico@novell.com>

* glib/gbookmarkfile.c (bookmark_metadata_free): Don't leak
the apps_by_name hash table if the applications list is empty.

Signed-off-by: Federico Mena Quintero <federico@gnu.org>
svn path=/trunk/; revision=6846

16 years agoIn g_app_info_create_from_commandline set comment after name. Fixes
Padraig O'Briain [Wed, 9 Apr 2008 14:53:05 +0000 (14:53 +0000)]
In g_app_info_create_from_commandline set comment after name. Fixes

2008-04-09  Padraig O'Briain  <padraig.obriain@sun.com>

* gdesktopappinfo.c: In g_app_info_create_from_commandline set comment
after name. Fixes #527132.

svn path=/trunk/; revision=6844

16 years agoAdd ISO 15924 code comments for new scripts.
Behdad Esfahbod [Tue, 8 Apr 2008 21:31:25 +0000 (21:31 +0000)]
Add ISO 15924 code comments for new scripts.

2008-04-08  Behdad Esfahbod  <behdad@gnome.org>

        * glib/gunicode.h: Add ISO 15924 code comments for new scripts.

svn path=/trunk/; revision=6843

16 years agoDoc update
Tomas Bzatek [Tue, 8 Apr 2008 15:56:42 +0000 (15:56 +0000)]
Doc update

2008-04-08  Tomas Bzatek  <tbzatek@redhat.com>

        * gfile.c: (g_file_replace):
        Doc update

svn path=/trunk/; revision=6841

16 years ago Bug 491554 – Update to Unicode 5.1.0
Matthias Clasen [Tue, 8 Apr 2008 02:59:05 +0000 (02:59 +0000)]
    Bug 491554 – Update to Unicode 5.1.0

        * glib/gunichartables.h:
        * glib/gunicode.h:
        * glib/gunibreak.h:
        * glib/gmirroringtable.h:
        * glib/gscripttable.h:
        * glib/gen-script-table.pl: Update to Unicode 5.1.0. Patch by
        Behdad Esfahbod

svn path=/trunk/; revision=6834

16 years ago Bug 526619 – make test-report crash
Matthias Clasen [Tue, 8 Apr 2008 02:22:37 +0000 (02:22 +0000)]
    Bug 526619 – make test-report crash

        * glib/gtester.c: Allocate enough space for argv. Patch by
         Hiroyuki Ikezoe

svn path=/trunk/; revision=6832

16 years ago Bug 526796 – Wrong order of arguments in g_file_copy's fallback
Matthias Clasen [Tue, 8 Apr 2008 01:59:47 +0000 (01:59 +0000)]
    Bug 526796 – Wrong order of arguments in g_file_copy's fallback

        * gfile.c (file_copy_fallback): Fix the argument order. Patch
        by Christian Kellner.

svn path=/trunk/; revision=6830

16 years agoAdd missing *.
Matthias Clasen [Tue, 8 Apr 2008 01:54:28 +0000 (01:54 +0000)]
Add missing *.

        * gobject/tut_howto.xml: Add missing *.

svn path=/trunk/; revision=6829

16 years agoCredits update according to #522335#c6.
Stanislav Brabec [Mon, 7 Apr 2008 08:37:16 +0000 (08:37 +0000)]
Credits update according to #522335#c6.

svn path=/trunk/; revision=6828

16 years agoMake the fix for bug 448943 work.
Matthias Clasen [Fri, 4 Apr 2008 13:06:14 +0000 (13:06 +0000)]
Make the fix for bug 448943 work.

2008-04-04  Matthias Clasen  <mclasen@redhat.com>

        * glib/gmain.c: Make the fix for bug 448943 work.

svn path=/trunk/; revision=6826

16 years agoDon't list the user directory as a mount, fix potential issue when other
Sebastien Bacher [Fri, 4 Apr 2008 07:37:34 +0000 (07:37 +0000)]
Don't list the user directory as a mount, fix potential issue when other

2008-04-04  Sebastien Bacher  <seb128@ubuntu.com>

* gunixmounts.c: (g_unix_mount_guess_should_display):
Don't list the user directory as a mount, fix potential issue
when other users have a similar naming and don't special case the
gvfs mounts there since that's not required (#525866)

svn path=/trunk/; revision=6825

16 years agoDefine GLIB_STATIC_COMPILATION here also, if needed.
Tor Lillqvist [Thu, 3 Apr 2008 22:43:31 +0000 (22:43 +0000)]
Define GLIB_STATIC_COMPILATION here also, if needed.

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

* glibconfig.h.win32.in: Define GLIB_STATIC_COMPILATION here also,
if needed.

svn path=/trunk/; revision=6822

16 years agoClarification.
Tor Lillqvist [Thu, 3 Apr 2008 22:09:39 +0000 (22:09 +0000)]
Clarification.

svn path=/trunk/; revision=6821

16 years agoMake sure we don't build both shared and static at the same time on
Tor Lillqvist [Thu, 3 Apr 2008 22:03:32 +0000 (22:03 +0000)]
Make sure we don't build both shared and static at the same time on

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

* configure.in: Make sure we don't build both shared and static at
the same time on Windows. Put a #define for
GLIB_STATIC_COMPILATION into glibconfig.h in the static case, so
that the use of variables from libglib gets the dllimport stuff in
the GLIB_VAR macro as defined in gtypes.h automatically
correct. This means that a shared and static build of GLib can't
be installed in the same prefix on Windows, which sucks a bit. But
with variables in the GLib API, there isn't much we can do
otherwise. The alternative would be to force the developer who
compiles against a statically built GLib to use
-DGLIB_STATIC_COMPILATION.

svn path=/trunk/; revision=6820

16 years agoDon't enforce shared library build only on Windows. It might well make
Tor Lillqvist [Thu, 3 Apr 2008 20:17:15 +0000 (20:17 +0000)]
Don't enforce shared library build only on Windows. It might well make

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

* configure.in: Don't enforce shared library build only on
Windows. It might well make sense to build static libraries in
some use cases.

* glib/gutils.c: Don't compile the DllMain if building libglib
statically. Also in that case don't return NULL from
_glib_get_installation_directory(), but return the installation
directory of the program's .exe file.

svn path=/trunk/; revision=6818

16 years agoBug 525972 - UCS-4 not in the new win_iconv implementation
Tor Lillqvist [Thu, 3 Apr 2008 14:59:39 +0000 (14:59 +0000)]
Bug 525972 - UCS-4 not in the new win_iconv implementation

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

Bug 525972 - UCS-4 not in the new win_iconv implementation

* glib/win_iconv.c: Add UCS-4. Also add spelling of UCS-2 without
the hyphen.

svn path=/trunk/; revision=6816

16 years agoBug 448943 – g_timeout_add_seconds() problems
Matthias Clasen [Thu, 3 Apr 2008 04:51:16 +0000 (04:51 +0000)]
Bug 448943 – g_timeout_add_seconds() problems

2008-04-03  Matthias Clasen  <mclasen@redhat.com>

        Bug 448943 – g_timeout_add_seconds() problems

        * glib/gmain.c (g_timeout_set_expiration): Prevent expiration
        time going negative. Reported by Cody Russell, analyzed by
        Olivier Crete, patch by Sjoerd Simons.

svn path=/trunk/; revision=6814

16 years agoAdd credits
Matthias Clasen [Thu, 3 Apr 2008 04:18:08 +0000 (04:18 +0000)]
Add credits

svn path=/trunk/; revision=6813

16 years agoCorrect an example
Matthias Clasen [Thu, 3 Apr 2008 04:17:19 +0000 (04:17 +0000)]
Correct an example

svn path=/trunk/; revision=6812

16 years agoFix the docs
Matthias Clasen [Thu, 3 Apr 2008 04:11:13 +0000 (04:11 +0000)]
Fix the docs

svn path=/trunk/; revision=6811

16 years agoFix the docs
Matthias Clasen [Thu, 3 Apr 2008 04:07:44 +0000 (04:07 +0000)]
Fix the docs

svn path=/trunk/; revision=6810

16 years agoBug 524314 - g_convert() on Win32 implicitly converts full width
Tor Lillqvist [Wed, 2 Apr 2008 02:43:45 +0000 (02:43 +0000)]
Bug 524314 - g_convert() on Win32 implicitly converts full width

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

Bug 524314 - g_convert() on Win32 implicitly converts full width
alphanumerics into half width

* glib/win_iconv.c: Update from Yukihiro Nakadaira. Use
WC_NO_BEST_FIT_CHARS flag for WideCharToMultiByte() unless the
//translit flag was suffixed to the codeset name.

* glib/gconvert.c: Include win_iconv.c earlier so that its
definition of WINVER before it includes <windows.h> is used.

svn path=/trunk/; revision=6808

16 years agocs.po: Updated Czech translation.
Petr Kovář [Tue, 1 Apr 2008 23:50:37 +0000 (23:50 +0000)]
cs.po: Updated Czech translation.

svn path=/trunk/; revision=6806

16 years agoDon't leak parent.
Alexander Larsson [Mon, 31 Mar 2008 20:04:24 +0000 (20:04 +0000)]
Don't leak parent.

2008-03-31  Alexander Larsson  <alexl@redhat.com>

* glocalfile.c (get_parent):
Don't leak parent.

svn path=/trunk/; revision=6801

16 years agoAlways return a GFileType enum value (#520715).
A. Walton [Mon, 31 Mar 2008 19:32:58 +0000 (19:32 +0000)]
Always return a GFileType enum value (#520715).

2008-03-31  A. Walton  <awalton@svn.gnome.org>

* gfile.c (g_file_query_file_type):
Always return a GFileType enum value (#520715).

svn path=/trunk/; revision=6799

16 years agoFix typo in changelog
Alexander Larsson [Mon, 31 Mar 2008 19:21:19 +0000 (19:21 +0000)]
Fix typo in changelog

svn path=/trunk/; revision=6797

16 years agoRead readdir() info chunks (of 1000) and sort the chunks by inode before
Alexander Larsson [Mon, 31 Mar 2008 19:18:46 +0000 (19:18 +0000)]
Read readdir() info chunks (of 1000) and sort the chunks by inode before

2008-03-31  Alexander Larsson  <alexl@redhat.com>

        * glocalfileenumerator.c:
Read readdir() info chunks (of 1000) and sort
the chunks by inode before stat:ing.
This is a 20% performance increase in testing
gvfs-ls on /usr/bin with cold cache.

svn path=/trunk/; revision=6796

16 years agoImprove fix for #525192 below: Use SleepEx() so that the sleep is
Tor Lillqvist [Mon, 31 Mar 2008 18:05:47 +0000 (18:05 +0000)]
Improve fix for #525192 below: Use SleepEx() so that the sleep is

2008-03-31  Tor Lillqvist  <tml@novell.com>

* glib/gmain.c (g_poll): Improve fix for #525192 below: Use
SleepEx() so that the sleep is alertable. Thanks to John
Ehresman.

svn path=/trunk/; revision=6794

16 years agoClarify docs for g_memory_output_stream_get_size. Add
Alexander Larsson [Mon, 31 Mar 2008 13:49:46 +0000 (13:49 +0000)]
Clarify docs for g_memory_output_stream_get_size. Add

2008-03-31  Alexander Larsson  <alexl@redhat.com>

        * gmemoryoutputstream.c:
Clarify docs for g_memory_output_stream_get_size.
Add g_memory_output_stream_get_data_size.

svn path=/trunk/; revision=6792

16 years agoFix Cygwin breakage. Patch by Lieven van der Heide.
Tor Lillqvist [Mon, 31 Mar 2008 13:41:03 +0000 (13:41 +0000)]
Fix Cygwin breakage. Patch by Lieven van der Heide.

2008-03-31  Tor Lillqvist  <tml@novell.com>

* glib/gwin32.c
(g_win32_get_package_installation_directory_of_module): Fix Cygwin
breakage. Patch by Lieven van der Heide.

svn path=/trunk/; revision=6790

16 years agoreapply inlining fix from r6333 to fix: Bug 522292 - Gives warnings in
10:39:17 Tim Janik [Mon, 31 Mar 2008 08:52:23 +0000 (08:52 +0000)]
reapply inlining fix from r6333 to fix: Bug 522292 - Gives warnings in

2008-03-31 10:39:17  Tim Janik  <timj@imendio.com>

        * glib/gutils.h: reapply inlining fix from r6333 to fix:
        Bug 522292 - Gives warnings in glib/gutils.h with GCC in C99 mode
        and again:
        Bug 315437 - extern inline -> static inline

svn path=/trunk/; revision=6789

16 years agoBug 525192 - 100% CPU if run main loop with no IO sources
Tor Lillqvist [Mon, 31 Mar 2008 07:37:17 +0000 (07:37 +0000)]
Bug 525192 - 100% CPU if run main loop with no IO sources

2008-03-31  Tor Lillqvist  <tml@novell.com>

Bug 525192 - 100% CPU if run main loop with no IO sources

* glib/gmain.c (g_poll) [Win32]: Patch by Neil Roberts.

svn path=/trunk/; revision=6787

16 years agoAdd g_file_query_file_type convenience function to query the type of a
Matthias Clasen [Mon, 31 Mar 2008 04:46:22 +0000 (04:46 +0000)]
Add g_file_query_file_type convenience function to query the type of a

2008-03-30  Matthias Clasen  <mclasen@redhat.com>

        * gio.symbols:
        * gfile.c:
        * gfile.h: Add g_file_query_file_type convenience function
        to query the type of a file.  (#520715, Mikkel Kamstrup Erlandsen)

svn path=/trunk/; revision=6784

16 years agoDon't use ARG_MAX. (#522335, patch by Sebastian Dröge)
Matthias Clasen [Mon, 31 Mar 2008 04:22:55 +0000 (04:22 +0000)]
Don't use ARG_MAX. (#522335, patch by Sebastian Dröge)

2008-03-30  Matthias Clasen  <mclasen@redhat.com>

        * glib/gtester.c: Don't use ARG_MAX.  (#522335, patch by
        Sebastian Dröge)

svn path=/trunk/; revision=6782

16 years agoAdd macros wrapping the gcc alloc_size function attribute. (#523019,
Matthias Clasen [Mon, 31 Mar 2008 04:17:22 +0000 (04:17 +0000)]
Add macros wrapping the gcc alloc_size function attribute. (#523019,

2008-03-30  Matthias Clasen  <mclasen@redhat.com>

        * glib/gmacros.h: Add macros wrapping the gcc alloc_size
        function attribute.  (#523019, Rodrigo Moya)

        * glib/gmem.h:
        * glib/gslice.h:
        * glib/gstrfuncs.h: Use the new attribute where appropriate.

svn path=/trunk/; revision=6781

16 years agoSimple fixes to help building GLib on embedded systems without NLS.
Matthias Clasen [Mon, 31 Mar 2008 03:52:57 +0000 (03:52 +0000)]
Simple fixes to help building GLib on embedded systems without NLS.

2008-03-30  Matthias Clasen  <mclasen@redhat.com>

        * glib/glibintl.h:
        * glib/gstrfuncs.c:
        * glib/gutils.c: Simple fixes to help building GLib on
        embedded systems without NLS.  (#524350, Peter Kjellerstedt)

svn path=/trunk/; revision=6779