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.
This commit is contained in:
Ondrej Holy 2020-06-15 17:44:26 +02:00
parent f489f6c4ee
commit a8f97cbe8e
3 changed files with 5 additions and 5 deletions

View File

@ -2516,7 +2516,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;
}
@ -2538,7 +2538,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;
static gsize initialized;

View File

@ -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);

View File

@ -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);