Re: Identifying drives/volumes
- From: Alexander Larsson <alexl redhat com>
- To: Federico Mena Quintero <federico ximian com>
- Cc: "gnome-vfs-list gnome org" <gnome-vfs-list gnome org>
- Subject: Re: Identifying drives/volumes
- Date: Tue, 19 Oct 2004 10:31:49 +0200
On Mon, 2004-10-18 at 12:44 -0500, Federico Mena Quintero wrote:
> 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.
There is no such guarantee. You can easily connect to server the same
uri twice.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl redhat com alla lysator liu se
He's a war-weary white trash stage actor possessed of the uncanny powers of an
insect. She's an elegant psychic queen of the dead who can talk to animals.
They fight crime!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]