mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 22:46:15 +01:00
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:
parent
f489f6c4ee
commit
a8f97cbe8e
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user