5631 Commits

Author SHA1 Message Date
Matthias Clasen
1f2eb23cea Apply type casts needed for proper compilation on 64-bit platforms.
* glib/gslice.h (g_slice_copy): Apply type casts needed
        for proper compilation on 64-bit platforms.


svn path=/branches/glib-2-16/; revision=7111
2008-06-30 22:13:45 +00:00
Matthias Clasen
041dd6b4ce Bug 540423 – unrecoverable error after g_seekable_truncate(seekable, 0,
2008-06-29  Matthias Clasen  <mclasen@redhat.com>

        Bug 540423 – unrecoverable error after g_seekable_truncate(seekable,
        0, ...)

        * gmemoryoutputstream.c (array_resize): Handle truncation to
        zero correctly. Reported by Akira Tagoh


svn path=/branches/glib-2-16/; revision=7107
2008-06-30 03:48:35 +00:00
Matthias Clasen
c69e10ffd5 Fix a doc problem
svn path=/branches/glib-2-16/; revision=7105
2008-06-30 03:06:56 +00:00
Sebastian Dröge
408471e3a9 Bug 316221 - G_LOCK warns about breaking strict-aliasing rules
* configure.in:
* glib/gthread.h: Revert previous patch as it doesn't improve the
situation and results in other warnings.

svn path=/branches/glib-2-16/; revision=7063
2008-06-20 11:28:11 +00:00
Tor Lillqvist
0f1bae710c Bug 539074 - Cannot get exit status with g_spawn_command_line_sync()
2008-06-19  Tor Lillqvist  <tml@novell.com>

	Bug 539074 - Cannot get exit status with g_spawn_command_line_sync()

	* glib/gspawn-win32-helper.c (main): Write also the exit status of
	the spawned process to the error report pipe. Patch by Hiroyuki
	Ikezoe.


svn path=/branches/glib-2-16/; revision=7061
2008-06-19 07:15:25 +00:00
Matthias Clasen
9aa9ad2989 fixed race condition where references to partially initialized classes
* gtype.c (g_type_class_ref): fixed race condition where references to
        partially initialized classes could be handed out.

svn path=/branches/glib-2-16/; revision=7054
2008-06-17 02:58:11 +00:00
Tor Lillqvist
698bee8aa5 Cosmetics.
svn path=/branches/glib-2-16/; revision=6974
2008-06-09 03:49:34 +00:00
Tor Lillqvist
4f3922f249 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=/branches/glib-2-16/; revision=6971
2008-06-07 04:05:03 +00:00
Philipp Kerling
81aac64b38 Updated German translation
2008-05-31  Philipp Kerling  <k.philipp@gmail.com>

	* de.po: Updated German translation

svn path=/branches/glib-2-16/; revision=6966
2008-05-31 08:29:07 +00:00
Tor Lillqvist
663fe6839f 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=/branches/glib-2-16/; revision=6962
2008-05-29 23:06:41 +00:00
Tor Lillqvist
1077f0a1fb 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)." And
	indeed g_print("%C", L'a') crashes. So do as gcc says then.


svn path=/branches/glib-2-16/; revision=6958
2008-05-29 02:50:51 +00:00
Wouter Bolsterlee
b833579574 Fixup Tor's "build" svn:external commit. The svn:external was not actually
2008-05-17  Wouter Bolsterlee  <wbolster@svn.gnome.org>

	* build: Fixup Tor's "build" svn:external commit. The
	svn:external was not actually removed, so this caused
	errors when updating.

svn path=/branches/glib-2-16/; revision=6904
2008-05-17 18:00:28 +00:00
Tor Lillqvist
6ae9347525 Don't include the "build" module with svn:externals any longer. Instead
2008-05-17  Tor Lillqvist  <tml@novell.com>

	* build: Don't include the "build" module with svn:externals any
	longer. Instead add the still relevant directories and files from
	it for real here in GLib.


svn path=/branches/glib-2-16/; revision=6896
2008-05-17 01:47:29 +00:00
Michael Natterer
b0cc5a4f86 Merged from trunk:
2008-05-14  Michael Natterer  <mitch@imendio.com>

	Merged from trunk:

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


svn path=/branches/glib-2-16/; revision=6890
2008-05-14 12:08:51 +00:00
Bastien Nocera
ea6d8aa365 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=/branches/glib-2-16/; revision=6886
2008-05-13 12:42:28 +00:00
Alexander Shopov
ac25ffa9d9 Updated Bulgarian translation by Alexander Shopov <ash@contact.bg>
2008-05-09  Alexander Shopov  <ash@contact.bg>

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

svn path=/branches/glib-2-16/; revision=6881
2008-05-09 19:56:17 +00:00
David Zeuthen
451558cc23 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=/branches/glib-2-16/; revision=6873
2008-04-28 22:41:15 +00:00
Tor Lillqvist
e053bb6a60 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=/branches/glib-2-16/; revision=6867
2008-04-21 12:11:05 +00:00
Matthias Clasen
ffb22c6007 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=/branches/glib-2-16/; revision=6860
2008-04-16 22:00:30 +00:00
Matthias Clasen
7ab2e4a06a 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=/branches/glib-2-16/; revision=6858
2008-04-16 17:16:12 +00:00
Matthias Clasen
7352003cc8 Use _-prefixed versions here, too.
2008-04-16  Matthias Clasen  <mclasen@redhat.com>

        * xdgmime/xdgmime.c: Use _-prefixed versions here, too.



svn path=/branches/glib-2-16/; revision=6856
2008-04-16 17:07:40 +00:00
Matthias Clasen
8906af742a 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=/branches/glib-2-16/; revision=6855
2008-04-16 16:56:38 +00:00
Michael Meeks
6a1256cb76 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=/branches/glib-2-16/; revision=6852
2008-04-16 16:47:41 +00:00
Tor Lillqvist
0c7c9f0c1d configure.in glibconfig.h.win32.in Revert my changes for static build for
2008-04-11  Tor Lillqvist  <tml@novell.com>

	* configure.in
	* glibconfig.h.win32.in
	* glib/gutils.c: Revert my changes for static build for Win32
	from 2008-04-03--04. They were not complete and it's not
	apropriate to do changes like that in the stable branch anyway. I
	will continue that effort in trunk.


svn path=/branches/glib-2-16/; revision=6849
2008-04-11 15:28:53 +00:00
Federico Mena Quintero
7faf0095ff Don't leak apps_by_name in GBookmarkFile metadata items
2008-04-09  Federico Mena Quintero  <federico@novell.com>

	Merged from trunk:

	* 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=/branches/glib-2-16/; revision=6847
2008-04-09 20:22:12 +00:00
Padraig O'Briain
d386e074e8 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=/branches/glib-2-16/; revision=6845
2008-04-09 15:00:08 +00:00
Tomas Bzatek
60916ca936 Doc update
2008-04-08  Tomas Bzatek  <tbzatek@redhat.com> 

        * gfile.c: (g_file_replace):
        Doc update


svn path=/branches/glib-2-16/; revision=6842
2008-04-08 15:59:47 +00:00
Matthias Clasen
2754f7c8a4 Bump version
svn path=/branches/glib-2-16/; revision=6840
2008-04-08 04:59:38 +00:00
Matthias Clasen
0c8815715e 2.16.3
svn path=/branches/glib-2-16/; revision=6838
GLIB_2_16_3
2008-04-08 04:55:38 +00:00
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