Identifying drives/volumes
- From: Federico Mena Quintero <federico ximian com>
- To: "gnome-vfs-list gnome org" <gnome-vfs-list gnome org>
- Subject: Identifying drives/volumes
- Date: Mon, 18 Oct 2004 12:44:56 -0500
Hi,
For the GtkFileChooser's extension mechanism, I need to be able to
identify drives/volumes through a URI. Are these guaranteed to refer
uniquely to the corresponding drive/volume?
gnome_vfs_drive_get_activation_uri()
gnome_vfs_volume_get_activation_uri()
Background: a file chooser extension is an implementation of the
abstract interface GtkFileChooserExtensionIface. This has a virtual
method called "is_volume_visible", which is used to implement lock-down:
gboolean (* is_volume_visible) (GtkFileChooserExtension *extension,
const char *base_uri);
This base_uri is the URI that you would use to get to the root of a
volume. The idea is that every time the file chooser needs to display
or enter a volume, it first asks the lock-down extension whether that
volume should be visible to the user.
So, I need to know if the activation_uri for a drive/volume is what I
need. I don't want to expose the opaque GtkFileSystemVolume to
extensions.
Federico
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]