[glib/wip/oholy/remote-attribute-fixes: 6/7] glocalfile: Rename g_local_file_is_remote
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/oholy/remote-attribute-fixes: 6/7] glocalfile: Rename g_local_file_is_remote
- Date: Wed, 17 Jun 2020 08:21:22 +0000 (UTC)
commit 8b3097e8de85b999baab558e26a4cdaad953b96c
Author: Ondrej Holy <oholy redhat com>
Date: Mon Jun 15 17:44:26 2020 +0200
glocalfile: Rename g_local_file_is_remote
The g_local_file_is_remote function is misleading as it works only for
NFS filesystem types and only for locations in home directorly. Let's
rename it to g_local_file_is_nfs_home to make it obvious.
gio/glocalfile.c | 4 ++--
gio/glocalfile.h | 2 +-
gio/glocalfilemonitor.c | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gio/glocalfile.c b/gio/glocalfile.c
index 0495c2a94..c2672f787 100644
--- a/gio/glocalfile.c
+++ b/gio/glocalfile.c
@@ -2511,7 +2511,7 @@ g_local_file_move (GFile *source,
#ifdef G_OS_WIN32
gboolean
-g_local_file_is_remote (const gchar *filename)
+g_local_file_is_nfs_home (const gchar *filename)
{
return FALSE;
}
@@ -2539,7 +2539,7 @@ is_remote_fs_type (const gchar *fsname)
}
gboolean
-g_local_file_is_remote (const gchar *filename)
+g_local_file_is_nfs_home (const gchar *filename)
{
static gboolean remote_home = FALSE;
static gsize initialized;
diff --git a/gio/glocalfile.h b/gio/glocalfile.h
index f3ec4f294..ac0ad9d73 100644
--- a/gio/glocalfile.h
+++ b/gio/glocalfile.h
@@ -46,7 +46,7 @@ GFile * _g_local_file_new (const char *filename);
const char * _g_local_file_get_filename (GLocalFile *file);
-gboolean g_local_file_is_remote (const gchar *filename);
+gboolean g_local_file_is_nfs_home (const gchar *filename);
GFile * g_local_file_new_from_dirname_and_basename (const char *dirname,
const char *basename);
diff --git a/gio/glocalfilemonitor.c b/gio/glocalfilemonitor.c
index 3212beff7..4f1660d16 100644
--- a/gio/glocalfilemonitor.c
+++ b/gio/glocalfilemonitor.c
@@ -878,7 +878,7 @@ g_local_file_monitor_new_for_path (const gchar *pathname,
GLocalFileMonitor *monitor;
gboolean is_remote_fs;
- is_remote_fs = g_local_file_is_remote (pathname);
+ is_remote_fs = g_local_file_is_nfs_home (pathname);
monitor = g_local_file_monitor_new (is_remote_fs, is_directory, error);
@@ -900,7 +900,7 @@ g_local_file_monitor_new_in_worker (const gchar *pathname,
GLocalFileMonitor *monitor;
gboolean is_remote_fs;
- is_remote_fs = g_local_file_is_remote (pathname);
+ is_remote_fs = g_local_file_is_nfs_home (pathname);
monitor = g_local_file_monitor_new (is_remote_fs, is_directory, error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]