349 Commits

Author SHA1 Message Date
Matthias Clasen
93f878856b Fix the build
svn path=/branches/glib-2-16/; revision=7470
2008-09-11 19:27:36 +00:00
Matthias Clasen
13cd3a4a34 Use non-blocking pipe for mount helper I/O. Fixes #550647.
* gunixmount.c (eject_unmount_read_error), (eject_unmount_do):
        * gunixvolume.c (eject_mount_read_error), (eject_mount_do):
        Use non-blocking pipe for mount helper I/O. Fixes #550647.


svn path=/branches/glib-2-16/; revision=7469
2008-09-11 19:21:25 +00:00
Matthias Clasen
327d4e7242 Bug 551149 – xdgmime mem leak
* xdgmime/xdgmime.c (xdg_mime_init_from_directory): Plug
        a memory leak. Patch by Christian Persch


svn path=/branches/glib-2-16/; revision=7468
2008-09-11 19:19:40 +00:00
Matthias Clasen
bf271c2530 Add zfs to ignore_fs array in guess_system_internal: Fix for #542156.
* gunixmounts.c: Add zfs to ignore_fs array in guess_system_internal:
        Fix for #542156.


svn path=/branches/glib-2-16/; revision=7467
2008-09-11 19:14:49 +00:00
Matthias Clasen
62b42594db Bug 547080 – g_file_copy leaks expected errors
* gfile.c: (g_file_copy): Clear G_IO_ERROR_NOT_SUPPORTED errors
        before trying the next fallback routine.


svn path=/branches/glib-2-16/; revision=7466
2008-09-11 19:07:35 +00:00
Matthias Clasen
45151f5d40 Bug 546017 – Don't copy attributes when copying a symlink
* gfile.c (g_file_copy_attributes): Specify
        G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS in the call to
        g_file_set_attributes_from_info. Patch by Christian Kellner


svn path=/branches/glib-2-16/; revision=7465
2008-09-11 19:05:47 +00:00
Matthias Clasen
c0c69ece01 Bug 546079 – leak in xdgmime
* xdgmime/xdgmime.c (xdg_mime_shutdown): Fix memory leak.


svn path=/branches/glib-2-16/; revision=7464
2008-09-11 19:02:23 +00:00
Matthias Clasen
73ea169266 Bug 545457 – gdmsetup crashed with SIGSEGV in
g_unix_mount_guess_should_display()

        * gunixvolumemonitor.c (get_mount_for_mount_path): Don't
        crash if no mount is found.


svn path=/branches/glib-2-16/; revision=7463
2008-09-11 19:00:18 +00:00
Matthias Clasen
5a7af0fbf4 Bug 545157 – wrong/no list of "open with" applications for .cc and
.cpp files

        * gdesktopappinfo.c (get_all_desktop_entries_for_mime_type):
        Collect all ancestors, not just direct parents. Pointed
        out by Bastien Nocera


svn path=/branches/glib-2-16/; revision=7462
2008-09-11 18:57:25 +00:00
Matthias Clasen
c0b0dbe65d Bug 544140 - fam-helper 64-bit issue?
* fam/fam-helper.c: Added missing include so compiler doesn't complain.

svn path=/branches/glib-2-16/; revision=7461
2008-09-11 18:55:15 +00:00
Loïc Minier
4ba8781eaf Merge r7323 from trunk
2008-08-08  Loïc Minier  <lool@dooz.org>

	Bug 535124 – umask 002 not being applied for new directories, new
	files get the correct umask

	* glocalfile.c: (g_local_file_make_directory): Use 0777 instead of
	0755 as umask

svn path=/branches/glib-2-16/; revision=7324
2008-08-08 09:33:59 +00:00
Matthias Clasen
8d0cba5adb 2.16.5
svn path=/branches/glib-2-16/; revision=7217
2008-07-20 03:40:06 +00:00
Matthias Clasen
a670fe2ea6 Fix the build
svn path=/branches/glib-2-16/; revision=7216
2008-07-20 03:10:56 +00:00
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