summaryrefslogtreecommitdiff
path: root/gtk/gtkfilesystem.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2013-03-05 13:59:04 -0600
committerFederico Mena Quintero <federico@gnome.org>2013-03-05 17:17:42 -0600
commit56bcb1933f6de613e5d8689e23420d47b65425c3 (patch)
treec25e63649c9f9915377005bd9e7771fdad1814a6 /gtk/gtkfilesystem.c
parentcf216d780cb2c889a3bcb5faa825fc1b21af8896 (diff)
downloadgtk+-56bcb1933f6de613e5d8689e23420d47b65425c3.tar.gz
filechooser: Rename _gtk_file_is_path_not_local() to _gtk_file_has_native_path()
Negatives in names of boolean functions are confusing. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Diffstat (limited to 'gtk/gtkfilesystem.c')
-rw-r--r--gtk/gtkfilesystem.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/gtk/gtkfilesystem.c b/gtk/gtkfilesystem.c
index db09c9a654..2fdfa3df9d 100644
--- a/gtk/gtkfilesystem.c
+++ b/gtk/gtkfilesystem.c
@@ -1274,16 +1274,15 @@ _gtk_file_info_consider_as_directory (GFileInfo *info)
}
gboolean
-_gtk_file_is_path_not_local (GFile *file)
+_gtk_file_has_native_path (GFile *file)
{
char *local_file_path;
- gboolean is_not_local;
+ gboolean has_native_path;
- /* Don't use is_native(), as we want to support fuse paths if available */
+ /* Don't use g_file_is_native(), as we want to support FUSE paths if available */
local_file_path = g_file_get_path (file);
- is_not_local = (local_file_path == NULL);
+ has_native_path = (local_file_path != NULL);
g_free (local_file_path);
- return is_not_local;
+ return has_native_path;
}
-