336 Commits

Author SHA1 Message Date
Matthias Clasen
9cf831968f 543504 – crash in Epiphany Web Browser: Opening local file
* gappinfo.c:
        * gasyncresult.c:
        * gdesktopappinfo.c:
        * gdrive.c:
        * gfile.c:
        * gicon.c:
        * gloadableicon.c:
        * gmount.c:
        * gseekable.c:
        * gvolume.c: Register types thread-safely.
        Patch by Christian Persch


svn path=/branches/glib-2-16/; revision=7214
2008-07-20 02:52:44 +00:00
Matthias Clasen
4e9d1673e4 Bug 543040 – async reading on dummy file will crash on GIO_USE_VFS=local
Bug 543040 – async reading on dummy file will crash on
        GIO_USE_VFS=local

        * gfile.c (open_read_async_thread): Cope with read_fn being
        NULL. Reported by Lin Ma.


svn path=/branches/glib-2-16/; revision=7213
2008-07-20 02:49:45 +00:00
Matthias Clasen
a5ccc1fff1 Bug 540616 – mem leak in filechooser button
* gunixvolumemonitor.c (get_mount_for_mount_path): Free
        the mount entry. Reported by Chrisitan Persch


svn path=/branches/glib-2-16/; revision=7212
2008-07-20 02:47:15 +00:00
Matthias Clasen
c5e15e6cd0 2.16.4
svn path=/branches/glib-2-16/; revision=7132
2008-07-02 02:10:00 +00:00
Matthias Clasen
cc76a63dcc Bug 537392 – Additional colon in xattr name
2008-06-10  Matthias Clasen <mclasen@redhat.com>

        Bug 537392 – Additional colon in xattr name

        * glocalfileinfo.c (set_xattr): Skip the second colon of the prefix,
        too. Reported by  Alessandro Morandi


svn path=/branches/glib-2-16/; revision=7121
2008-07-01 02:49:59 +00:00
Matthias Clasen
67012beaa4 Bug 536641 – Filesystem querying in gio does not list AFS and autofs
file systems

        * glocalfile.c (get_fs_type): Add afs and autofs.
        Patch by Danny Baumann.


svn path=/branches/glib-2-16/; revision=7120
2008-07-01 02:43:12 +00:00
Matthias Clasen
c800a9a4f2 Bug 528600 – g_dummy_file_get_parent("scheme://example.com/")
* gdummyfile.c (g_dummy_file_get_parent): Return NULL if there
        is no parent.  (Owen Taylor, patch by Christian Neumair)


svn path=/branches/glib-2-16/; revision=7119
2008-07-01 02:39:26 +00:00
Matthias Clasen
e34b0b5c72 do not leak the output stream.
* gfile.c (g_file_replace_contents): do not leak the output stream.

svn path=/branches/glib-2-16/; revision=7118
2008-07-01 02:37:29 +00:00
Matthias Clasen
8af6c328a9 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=/branches/glib-2-16/; revision=7117
2008-07-01 02:32:12 +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
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
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
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
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
0c8815715e 2.16.3
svn path=/branches/glib-2-16/; revision=6838
2008-04-08 04:55:38 +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
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
Matthias Clasen
8b04a7f32e 2.16.2
svn path=/branches/glib-2-16/; revision=6803
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
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
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
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
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
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
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
Alexander Larsson
5d06fb21d1 Fix C89 issue (#521672) Patch from Jens Granseuer
2008-03-14  Alexander Larsson  <alexl@redhat.com>

        * gfilemonitor.c:
        (g_file_monitor_is_cancelled):
	Fix C89 issue (#521672)
	Patch from Jens Granseuer


svn path=/branches/glib-2-16/; revision=6709
2008-03-14 11:06:16 +00:00
Alexander Larsson
f6f0959db2 Shut down fam (including removing fam GSource) when module is unloaded
2008-03-14  Alexander Larsson  <alexl@redhat.com>

        * fam/fam-helper.[ch]:
        * fam/fam-module.c:
	Shut down fam (including removing fam GSource) when
	module is unloaded (#521513)
	Patch from Joe Marcus Clarke   



svn path=/branches/glib-2-16/; revision=6707
2008-03-14 11:03:32 +00:00
Alexander Larsson
c6e5298449 Add required includes for f_fstypename member check.
2008-03-14  Alexander Larsson  <alexl@redhat.com>

        * configure.in:
	Add required includes for f_fstypename member check.

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

        * glocalfile.c:
        (g_local_file_query_filesystem_info):
	Use right define name for f_fstypename member check


svn path=/branches/glib-2-16/; revision=6704
2008-03-14 09:28:17 +00:00
Tor Lillqvist
5fe2e21960 Implement as empty, returning FALSE, on Win32.
2008-03-12  Tor Lillqvist  <tml@novell.com>

	* glocalfile.c (_g_local_file_has_trash_dir): Implement as empty,
	returning FALSE, on Win32.


svn path=/trunk/; revision=6689
2008-03-12 13:16:54 +00:00
Alexander Larsson
c5a10d2650 Correctly implement can_trash by actually looking for a trash dir, not
2008-03-11  Alexander Larsson  <alexl@redhat.com>

        * glocalfile.c:
        * glocalfileinfo.[ch]:
	Correctly implement can_trash by actually
	looking for a trash dir, not just assuming
	one exists.


svn path=/trunk/; revision=6679
2008-03-11 14:48:28 +00:00
Matthias Clasen
7cff233d6e 2.16.1
svn path=/trunk/; revision=6671
2008-03-11 02:18:18 +00:00
Alexander Larsson
fd2e57c644 Fix crashes in new constructor and properties code
2008-03-11  Alexander Larsson  <alexl@redhat.com>

        * gthemedicon.c:
	Fix crashes in new constructor and properties code


svn path=/trunk/; revision=6666
2008-03-11 00:14:11 +00:00
Murray Cumming
1d77c0c7dd Minor spelling correction in documentation: existance -> existence.
2008-03-10  Murray Cumming  <murrayc@murrayc.com>

* gfile.c: Minor spelling correction in documentation:
existance -> existence.

svn path=/trunk/; revision=6663
2008-03-10 19:38:42 +00:00
Matthias Clasen
e2a4ed3287 2.16.0
svn path=/trunk/; revision=6661
2008-03-10 18:09:06 +00:00
Matthias Clasen
497387c5f3 Fix symbol list
svn path=/trunk/; revision=6659
2008-03-10 17:10:37 +00:00
Matthias Clasen
83ba7b5fba Add properties to make bindings happy. (#517676, Samuel Cormier-Iijima)
2008-03-10  Matthias Clasen <mclasen@redhat.com>

        * gthemedicon.c: Add properties to make bindings happy.  (#517676,
        Samuel Cormier-Iijima)


svn path=/trunk/; revision=6655
2008-03-10 16:08:41 +00:00
Tor Lillqvist
93bd705e78 Define FILE_READ_ONLY_VOLUME if it is missing from winnt.h. (#521145)
2008-03-08  Tor Lillqvist  <tml@novell.com>

	* glocalfile.c: Define FILE_READ_ONLY_VOLUME if it is missing from
	winnt.h. (#521145)


svn path=/trunk/; revision=6643
2008-03-08 16:06:00 +00:00
Alexander Larsson
3cacbe8178 Use struct statfs.f_fstypename if availible (e.g. on OpenBSD) Patch from
2008-03-07  Alexander Larsson  <alexl@redhat.com>

        * glocalfile.c:
        (g_local_file_query_filesystem_info):
	Use struct statfs.f_fstypename if availible (e.g. on OpenBSD)
	Patch from Jasper Lievisse Adriaanse


svn path=/trunk/; revision=6638
2008-03-07 14:36:15 +00:00
Tor Lillqvist
7332eed6ff Correct milliseconds to microseconds in the doc comments for the *_USEC
2008-03-06  Tor Lillqvist  <tml@novell.com>

	* gfileinfo.h: Correct milliseconds to microseconds in the doc
	comments for the *_USEC attributes.


svn path=/trunk/; revision=6634
2008-03-06 13:10:06 +00:00
Alexander Larsson
79ad411eb5 Add g_return_val_if_fail check (#520700)
2008-03-06  Alexander Larsson  <alexl@redhat.com>

	* gfile.c (g_file_query_exists):
	Add g_return_val_if_fail check (#520700)


svn path=/trunk/; revision=6633
2008-03-06 10:04:24 +00:00