5552 Commits

Author SHA1 Message Date
Matthias Clasen
09dcaddb30 Update
svn path=/branches/glib-2-16/; revision=6837
2008-04-08 04:26:43 +00:00
Matthias Clasen
165adcb71f Updates
svn path=/branches/glib-2-16/; revision=6836
2008-04-08 03:39:05 +00:00
Matthias Clasen
46029837e4 Bug 491554 – Update to Unicode 5.1.0
2008-04-07  Matthias Clasen  <mclasen@redhat.com>

        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=/branches/glib-2-16/; revision=6835
2008-04-08 03:03:47 +00:00
Matthias Clasen
3186f5297c Bug 526619 – make test-report crash
* glib/gtester.c: Allocate enough space for argv. Patch by
         Hiroyuki Ikezoe


svn path=/branches/glib-2-16/; revision=6833
2008-04-08 02:23:49 +00:00
Matthias Clasen
118e24c541 Bug 526796 – Wrong order of arguments in g_file_copy's fallback
2008-04-07  Matthias Clasen  <mclasen@redhat.com>

        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=/branches/glib-2-16/; revision=6831
2008-04-08 02:04:34 +00:00
Stanislav Brabec
5be1985fba Credits update according to #522335#c6.
svn path=/branches/glib-2-16/; revision=6828
2008-04-07 08:37:16 +00:00
Matthias Clasen
f17611fa73 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=/branches/glib-2-16/; revision=6827
2008-04-04 13:07:09 +00:00
Sebastien Bacher
1916e11efb 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=/branches/glib-2-16/; revision=6824
2008-04-04 07:33:42 +00:00
Tor Lillqvist
ab526ed5da 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 GLIB_VAR macro 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.

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


svn path=/branches/glib-2-16/; revision=6823
2008-04-03 22:46:26 +00:00
Tor Lillqvist
a9a06b789e 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=/branches/glib-2-16/; revision=6819
2008-04-03 20:19:07 +00:00
Tor Lillqvist
b6b9e918f9 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=/branches/glib-2-16/; revision=6817
2008-04-03 15:01:35 +00:00
Matthias Clasen
2e33dc0a90 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=/branches/glib-2-16/; revision=6815
2008-04-03 04:53:46 +00:00
Tor Lillqvist
7325c24f63 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=/branches/glib-2-16/; revision=6809
2008-04-02 02:48:21 +00:00
Petr Kovář
384b1ba6dd cs.po: Updated Czech translation.
svn path=/branches/glib-2-16/; revision=6807
2008-04-01 23:54:41 +00:00
Matthias Clasen
930085582d Bump version
svn path=/branches/glib-2-16/; revision=6805
2008-03-31 22:13:02 +00:00
Matthias Clasen
8b04a7f32e 2.16.2
svn path=/branches/glib-2-16/; revision=6803
GLIB_2_16_2
2008-03-31 22:11:19 +00:00
Alexander Larsson
351ca87acf Don't leak parent. (From trunk)
2008-03-31  Alexander Larsson  <alexl@redhat.com>

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


svn path=/branches/glib-2-16/; revision=6802
2008-03-31 20:05:56 +00:00
Matthias Clasen
66e07587d3 More updates
svn path=/branches/glib-2-16/; revision=6800
2008-03-31 19:49:16 +00:00
Alexander Larsson
08b47d5d14 Read readdir() info in chunks (of 1000) and sort the chunks by inode
2008-03-31  Alexander Larsson  <alexl@redhat.com>

        * glocalfileenumerator.c:
	Read readdir() info in 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.
	(From trunk)
	


svn path=/branches/glib-2-16/; revision=6798
2008-03-31 19:21:32 +00:00
Tor Lillqvist
b22b86b963 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=/branches/glib-2-16/; revision=6795
2008-03-31 18:07:15 +00:00
Alexander Larsson
49bf006ff2 Update docs for g_memory_output_stream_get_size.
2008-03-31  Alexander Larsson  <alexl@redhat.com>

	* gmemoryoutputstream.c:
	Update docs for g_memory_output_stream_get_size.


svn path=/branches/glib-2-16/; revision=6793
2008-03-31 13:53:27 +00:00
Tor Lillqvist
4df1459858 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=/branches/glib-2-16/; revision=6791
2008-03-31 13:41:43 +00:00
Tor Lillqvist
7030d82d1c 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=/branches/glib-2-16/; revision=6788
2008-03-31 07:46:41 +00:00
Matthias Clasen
608eea647b Updates
svn path=/branches/glib-2-16/; revision=6786
2008-03-31 05:17:23 +00:00
Matthias Clasen
0477673e7c Bump version
svn path=/branches/glib-2-16/; revision=6785
2008-03-31 04:58:18 +00:00
Matthias Clasen
e1d76b4230 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=/branches/glib-2-16/; revision=6783
2008-03-31 04:25:27 +00:00
Matthias Clasen
6258bfd03d 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=/branches/glib-2-16/; revision=6780
2008-03-31 03:55:50 +00:00
Matthias Clasen
6d4536b293 Fix the build with -DG_DISABLE_ASSERT. (#525060, Arfrever Frehtes
2008-03-30  Matthias Clasen  <mclasen@redhat.com>

        * glib/ghash.c: Fix the build with -DG_DISABLE_ASSERT.
        (#525060, Arfrever Frehtes Taifersar Arahesis)

svn path=/branches/glib-2-16/; revision=6778
2008-03-31 03:46:32 +00:00
Matthias Clasen
2f04b46e18 Replace occurrances of G_GNUC_PRETTY_FUNCTION by G_STRFUNC. (#524344,
2008-03-30  Matthias Clasen  <mclasen@redhat.com>

        * glib/gthread.h: Replace occurrances of G_GNUC_PRETTY_FUNCTION
        by G_STRFUNC.  (#524344, Peter, Kjellerstedt)



svn path=/branches/glib-2-16/; revision=6776
2008-03-31 03:40:21 +00:00
Matthias Clasen
c4858eabda Fix some documentation typos. (#524950, Rob Bradford)
2008-03-30  Matthias Clasen  <mclasen@redhat.com>

        * gfileenumerator.c:
        * gfile.c: Fix some documentation typos.  (#524950, Rob Bradford)


svn path=/branches/glib-2-16/; revision=6774
2008-03-31 03:32:28 +00:00
Matthias Clasen
b9f2d03ccd Fix a doc typo. (#524742, Hiroyuki Ikezoe)
2008-03-30  Matthias Clasen  <mclasen@redhat.com>

        * glib/gtestutils.c: Fix a doc typo. (#524742, Hiroyuki Ikezoe)



svn path=/branches/glib-2-16/; revision=6772
2008-03-31 03:18:45 +00:00
Changwoo Ryu
2e7bfe107c Updated Korean translation
svn path=/branches/glib-2-16/; revision=6770
2008-03-30 00:30:03 +00:00
Yair Hershkovitz
8f89dc091a updated hebrew translation
svn path=/branches/glib-2-16/; revision=6769
2008-03-28 19:28:39 +00:00
Alexander Larsson
0a810aa697 Fix up last commit.
2008-03-28  Alexander Larsson  <alexl@redhat.com>

        * gfile.c:
        (copy_stream_with_progress):
	Fix up last commit.
	


svn path=/branches/glib-2-16/; revision=6767
2008-03-28 13:58:30 +00:00
Alexander Larsson
5f10354bf0 Fallback to g_file_query_info for source size if
2008-03-28  Alexander Larsson  <alexl@redhat.com>

        * gfile.c:
        (copy_stream_with_progress):
        (file_copy_fallback):
	Fallback to g_file_query_info for source size
	if g_file_input_stream_query_info fails. (#524579)


svn path=/branches/glib-2-16/; revision=6764
2008-03-28 12:44:25 +00:00
Alexander Larsson
184395e26d Reuse old string instead of adding new one.
2008-03-28  Alexander Larsson  <alexl@redhat.com>

	* glocalfile.c (g_local_file_move):
	Reuse old string instead of adding new one.


svn path=/branches/glib-2-16/; revision=6761
2008-03-28 11:38:21 +00:00
Alexander Larsson
4a79033e0c Merge from trunk:
2008-03-27  Alexander Larsson  <alexl@redhat.com>

	Merge from trunk:

	* glocalfile.c (g_local_file_move):
	Return G_IO_ERROR_IS_DIRECTORY, not G_IO_ERROR_WOULD_MERGE when moving
	file over directory. This is according to the docs and what the move via
	copy+remove fallback does.


svn path=/branches/glib-2-16/; revision=6759
2008-03-27 20:14:05 +00:00
Philip Withnall
2ea98f2bc3 Updated British English translation.
2008-03-25  Philip Withnall  <pwithnall@svn.gnome.org>

	* en_GB.po: Updated British English translation.


svn path=/branches/glib-2-16/; revision=6756
2008-03-26 15:51:45 +00:00
Tor Lillqvist
2592b67518 Merge from trunk:
2008-03-24  Tor Lillqvist  <tml@novell.com>

	Merge from trunk:

	* Makefile.am (libgio_2_0_la_DEPENDENCIES): Make libgio-2.0.la
	depend on gio.def on Windows.

	* Makefile.am: Actually use the gio.def file when linking the
	library on Windows. Produce .lib library for Microsoft's toolchain
	when possible. Install the .lib and .def file like for the other
	libraries of GLib.


svn path=/branches/glib-2-16/; revision=6755
2008-03-24 11:48:59 +00:00
Nguyễn Thái Ngọc Duy
0a284911b6 Update Vietnamese translation
2008-03-23  Nguyễn Thái Ngọc Duy <pclouds@gmail.com>

	* vi.po: Update Vietnamese translation


svn path=/branches/glib-2-16/; revision=6753
2008-03-23 09:18:09 +00:00
Claude Paroz
169cbf840f Updated French translation.
2008-03-21  Claude Paroz  <claude@2xlibre.net>

	* fr.po: Updated French translation.

svn path=/branches/glib-2-16/; revision=6750
2008-03-21 21:29:41 +00:00
Matej Urbančič
2dd6066c5c Updated Slovenian translation
svn path=/branches/glib-2-16/; revision=6749
2008-03-21 18:14:38 +00:00
Alexander Larsson
dc899ea46e Final fixes for struct statfs.f_fstypename checks (OpenBSD). (#521045)
2008-03-20  Alexander Larsson  <alexl@redhat.com>

        * configure.in:
	Final fixes for struct statfs.f_fstypename checks (OpenBSD). (#521045)
	Patch from ephraim_owns@hotmail.com



svn path=/branches/glib-2-16/; revision=6747
2008-03-20 11:44:34 +00:00
Tor Lillqvist
7bdb3fc265 Bug 523298 - win_iconv can't convert from UTF-8 to GB18030 (or vice versa)
2008-03-19  Tor Lillqvist  <tml@novell.com>

	Bug 523298 - win_iconv can't convert from UTF-8 to GB18030 (or vice versa)

	* glib/win_iconv.c: Fixes for code page 54936 (GB18030)
	(mbtowc_flags): New function. Check if a code page is one of those
	for which the dwFlags parameter to MultiByteToWideChar() must be
	zero. Return 0 or MB_ERR_INVALID_CHARS.
	(mbcs_mblen): New function for multi-byte (more than two bytes for
	some characters) code pages. Only handles 54936 for now.
	(make_csconv): Use it for 54936.
	(kernel_mbtowc): Use mbtowc_flags().


svn path=/branches/glib-2-16/; revision=6742
2008-03-20 02:44:14 +00:00
Sebastien Bacher
029a6e2233 change from debian, consider nfs4 mounts as G_UNIX_MOUNT_TYPE_NFS
2008-03-19  Sebastien Bacher  <seb128@ubuntu.com>

	* gunixmounts.c: (guess_mount_type): change from debian,
	consider nfs4 mounts as G_UNIX_MOUNT_TYPE_NFS (#523338)

svn path=/branches/glib-2-16/; revision=6738
2008-03-19 14:09:57 +00:00
Alexander Larsson
08d9f52d68 Bump block side for copy to 64k to minimize overhead for low latency
2008-03-19  Alexander Larsson  <alexl@redhat.com>

        * gfile.c:
        (copy_stream_with_progress):
	Bump block side for copy to 64k to minimize
	overhead for low latency links. (#523015)


svn path=/branches/glib-2-16/; revision=6736
2008-03-19 12:18:13 +00:00
Sebastian Dröge
c3a094045b Bug 522292 - Gives warnings in glib/gutils.h with GCC in C99 mode
* glib/gutils.h: Use "__attribute__ ((__gnu_inline__))" for inlining
if either __GNUC_STDC_INLINE__ or __GNUC_GNU_INLINE__ are defined. In
gcc version prior to 4.3 no correct C99-inline was implemented which
has semantic differences to GNU inline.

svn path=/branches/glib-2-16/; revision=6734
2008-03-18 20:10:28 +00:00
Laurent Dhima
51227463f2 Updated Translation
svn path=/branches/glib-2-16/; revision=6731
2008-03-18 15:56:34 +00:00
Simos Xenitellis
5742577e7a Updated Greek translation by Giannis Katsampiris
svn path=/branches/glib-2-16/; revision=6730
2008-03-18 10:56:49 +00:00
Laurent Dhima
1e9738f4fe Updated Translation
svn path=/branches/glib-2-16/; revision=6727
2008-03-18 10:02:07 +00:00