Commit Graph

5639 Commits

Author SHA1 Message Date
Behdad Esfahbod
123dfdc5c2 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
2008-05-20 19:42:07 +00:00
14:31:18 Tim Janik
8fb03be5a9 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
2008-05-20 13:03:15 +00:00
Tor Lillqvist
7100c410d2 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
2008-05-20 08:03:03 +00:00
Tor Lillqvist
445bb2718b 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
2008-05-19 12:42:14 +00:00
Tor Lillqvist
4b2a571e43 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
2008-05-19 12:39:24 +00:00
Hans Breuer
1ad74c4459 added gi18n.c
2008-05-19  Hans Breuer  <hans@breuer.org>

	* glib/makefile.msc : added gi18n.c


svn path=/trunk/; revision=6913
2008-05-19 05:22:06 +00:00
Hans Breuer
fd86d833b3 EXTRA_DIST += makefile.msc
2008-05-19  Hans Breuer  <hans@breuer.org>

	* Makefile.am : EXTRA_DIST += makefile.msc


svn path=/trunk/; revision=6912
2008-05-19 05:18:10 +00:00
Tor Lillqvist
b7b9be3526 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
2008-05-18 21:44:16 +00:00
Tor Lillqvist
eda18d8e02 More verbiage.
svn path=/trunk/; revision=6910
2008-05-18 21:39:31 +00:00
Tor Lillqvist
fa60c1ecdf #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
2008-05-18 21:38:50 +00:00
Tor Lillqvist
78bdc9397b Remove leftover svn conflict indicator.
svn path=/trunk/; revision=6908
2008-05-18 19:46:49 +00:00
Matthias Clasen
4b06cf6ce9 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
2008-05-18 19:15:32 +00:00
Matthias Clasen
4f21fe18cb 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
2008-05-18 02:50:48 +00:00
Jeffrey Stedfast
d238669ef0 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
2008-05-17 16:53:54 +00:00
Matthias Clasen
a30f8df3c8 fix free space information for ncpfs
svn path=/trunk/; revision=6902
2008-05-17 06:08:08 +00:00
Matthias Clasen
67b2f9a99b 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
2008-05-17 06:01:43 +00:00
Matthias Clasen
537075e94c Bug 528648 – Extra >s in Object Construction section...
* gobject/tut_howto.xml: Fix a formatting glitch


svn path=/trunk/; revision=6900
2008-05-17 05:56:29 +00:00
Matthias Clasen
ce40942306 Bug 528667 – Typos in testing module documentation
* glib/gtestutils.c: Fix typos in the documentation.


svn path=/trunk/; revision=6899
2008-05-17 05:52:36 +00:00
Tor Lillqvist
b8eefbc99d 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
2008-05-17 02:34:17 +00:00
Tor Lillqvist
2ded70ee94 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
2008-05-17 02:25:59 +00:00
Tor Lillqvist
b9cf431b95 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
2008-05-17 01:36:40 +00:00
Yair Hershkovitz
49734ebc7f 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
2008-05-16 22:52:42 +00:00
Tor Lillqvist
a6cd26d656 #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
2008-05-16 17:16:37 +00:00
Tor Lillqvist
e3127daf4e 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
2008-05-16 16:42:52 +00:00
Tor Lillqvist
9480455b94 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
2008-05-14 14:19:59 +00:00
Michael Natterer
198b4b9770 #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
2008-05-14 12:05:24 +00:00
Kjartan Maraas
3be6b6e4f9 #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
2008-05-13 15:33:09 +00:00
Bastien Nocera
a495d32f36 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
2008-05-13 12:42:40 +00:00
Yair Hershkovitz
6ff895239a 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
2008-05-12 10:04:21 +00:00
Tor Lillqvist
5e96ad041f Add g_i18n_init.
2008-05-12  Tor Lillqvist  <tml@novell.com>

	* glib/glib.symbols: Add g_i18n_init.


svn path=/trunk/; revision=6884
2008-05-12 07:57:21 +00:00
Tor Lillqvist
e9f4abe46c 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
2008-05-12 06:58:50 +00:00
Yair Hershkovitz
7ab77ec9cd 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
2008-05-11 09:34:29 +00:00
Alexander Shopov
e210eda09d 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
2008-05-08 20:07:33 +00:00
Michael Natterer
d922bf632a 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
2008-05-05 15:12:13 +00:00
Michael Natterer
62c4c3e2da 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
2008-05-05 15:05:40 +00:00
Michael Natterer
70af00fc06 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
2008-05-05 15:04:58 +00:00
Michael Natterer
b6cf0addba 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
2008-05-05 15:04:00 +00:00
Michael Natterer
e0aa9d8a61 #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
2008-05-05 15:02:15 +00:00
13:24:13 Tim Janik
02e2b95393 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
2008-05-02 11:22:10 +00:00
David Zeuthen
27dba4c28b 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
2008-04-28 22:38:49 +00:00
Yannig MARCHEGAY
11f85653a8 Updated Occitan translation
svn path=/trunk/; revision=6871
2008-04-23 08:45:23 +00:00
Michael Natterer
13567ad757 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
2008-04-22 13:51:37 +00:00
Adam Weinberger
8c7921c0bb Updated Canadian English translation.
2008-04-22  Adam Weinberger  <adamw@gnome.org>

	* en_CA.po: Updated Canadian English translation.



svn path=/trunk/; revision=6869
2008-04-22 04:01:33 +00:00
Tor Lillqvist
cca1c88ea1 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
2008-04-21 12:24:49 +00:00
Tor Lillqvist
336cc8436b 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
2008-04-21 08:38:36 +00:00
Lin Ma
6965703ad2 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
2008-04-21 02:40:40 +00:00
Yair Hershkovitz
e4d486dc32 updated hebrew translation
svn path=/trunk/; revision=6864
2008-04-20 15:33:02 +00:00
Kjartan Maraas
adf3251b84 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
2008-04-19 09:10:46 +00:00
17:40:58 Tim Janik
d6682a1f2d 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
2008-04-18 15:40:38 +00:00
Emmanuele Bassi
62b18e67b7 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
2008-04-17 11:29:26 +00:00