Re: Trouble with gnome_vfs_volume_manager_get_volume_for_path()
- From: Federico Mena Quintero <federico ximian com>
- To: Alexander Larsson <alexl redhat com>
- Cc: "desktop-devel-list gnome org" <desktop-devel-list gnome org>
- Subject: Re: Trouble with gnome_vfs_volume_manager_get_volume_for_path()
- Date: Mon, 19 Jan 2004 16:03:56 -0600
On Fri, 2004-01-16 at 01:34, Alexander Larsson wrote:
> > So my question is, how do I get a user-visible volume that corresponds
> > to a given path? Or should I just do this:
> >
> > tmp_path = current_folder_path;
> >
> > do {
> > vol = gnome_vfs_volume_manager_get_volume_for_path (tmp_path);
> > tmp_path = get_parent_path (tmp_path);
> > } while (!gnome_vfs_volume_is_user_visible());
> >
> > base = gnome_vfs_volume_get_activation_uri (vol);
> > ... etc ...
>
> At the moment there is no other way, and in fact the implementation in
> gnome-vfs would be pretty much what you wrote, so I'm not sure an API
> addition is needed.
Excellent, thanks. I put that code in and it works perfectly.
Federico
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]