mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
Add is_supported() to GNativeVolumeMonitorClass so that we can avoid
2007-12-17 Alexander Larsson <alexl@redhat.com> * gnativevolumemonitor.h: * gunionvolumemonitor.c: * gunixvolumemonitor.c: Add is_supported() to GNativeVolumeMonitorClass so that we can avoid having to create an object to see if the backend is supported at runtime. Also add name member and an env var to pick a specific volume monitor backend. * gmountprivate.h: * glocalfile.c: Add cancellable to _g_mount_get_for_mount_path() * glocaldirectorymonitor.c: * glocalfilemonitor.c: Avoid loading and unloading modules while sorting. svn path=/trunk/; revision=6144
This commit is contained in:
committed by
Alexander Larsson
parent
feb5258cf9
commit
c4e3cfbf40
@@ -898,7 +898,7 @@ g_local_file_find_enclosing_mount (GFile *file,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
mount = _g_mount_get_for_mount_path (mountpoint);
|
||||
mount = _g_mount_get_for_mount_path (mountpoint, cancellable);
|
||||
g_free (mountpoint);
|
||||
if (mount)
|
||||
return mount;
|
||||
|
Reference in New Issue
Block a user