Re: Filenames, escaping, and GtkFileSystem
- From: Mark McLoughlin <mark skynet ie>
- To: Federico Mena Quintero <federico ximian com>
- Cc: GTK+ development mailing list <gtk-devel-list gnome org>, GNOME Desktop <desktop-devel-list gnome org>
- Subject: Re: Filenames, escaping, and GtkFileSystem
- Date: Thu, 25 Mar 2004 07:06:55 +0000
Hey Federico,
On Wed, 2004-03-24 at 21:55, Federico Mena Quintero wrote:
> Hi,
>
> I started to fix #136467 and found a few interesting things:
As regards what should happen when you enter a path into the entry in
the save dialog, I'd imagine it would:
+ Check to see if folder part of the entered filename already exists
and if it does, happily save to that folder
+ If not, display an error about using the path separator in
filenames
I think this would allow a nice shortcut for people who expect entering
the full path to work, while at the same time not doing something too
clever and confusing for people who aren't trying to save to a full
path.
> There are a few things we can do:
>
> 1. Specify that GtkFileSystem::make_path() should fail if the filename
> has path components. In the context of GtkFileChooser, this would
> eventually bring up an error message box, very similar to the one
> Nautilus uses when you rename a file and try to put a slash in the name.
Yeah, I'd say this is the best bet - but also allow escaped filenames
to be passed in. That way you could change the file chooser behaviour
later to allow you to enter a slash ... ?
Cheers,
Mark.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]