[nautilus] vfs-file: use API to get file type
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] vfs-file: use API to get file type
- Date: Fri, 1 Dec 2017 11:59:43 +0000 (UTC)
commit 2470d8293875a336fcce852bde885b6950f4b1af
Author: Ernestas Kulik <ernestask gnome org>
Date: Fri Aug 25 18:22:56 2017 +0300
vfs-file: use API to get file type
https://bugzilla.gnome.org/show_bug.cgi?id=786760
src/nautilus-vfs-file.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-vfs-file.c b/src/nautilus-vfs-file.c
index 290b74c44..f00720e58 100644
--- a/src/nautilus-vfs-file.c
+++ b/src/nautilus-vfs-file.c
@@ -435,11 +435,13 @@ vfs_file_mount (NautilusFile *file,
NautilusFileOperationCallback callback,
gpointer callback_data)
{
+ GFileType type;
NautilusFileOperation *op;
GError *error;
GFile *location;
- if (file->details->type != G_FILE_TYPE_MOUNTABLE)
+ type = nautilus_file_get_file_type (file);
+ if (type != G_FILE_TYPE_MOUNTABLE)
{
if (callback)
{
@@ -624,11 +626,13 @@ vfs_file_start (NautilusFile *file,
NautilusFileOperationCallback callback,
gpointer callback_data)
{
+ GFileType type;
NautilusFileOperation *op;
GError *error;
GFile *location;
- if (file->details->type != G_FILE_TYPE_MOUNTABLE)
+ type = nautilus_file_get_file_type (file);
+ if (type != G_FILE_TYPE_MOUNTABLE)
{
if (callback)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]