Re: GtkFileChooser API work

On Tue, 2003-09-02 at 05:59, Federico Mena Quintero wrote:

> Feature: configurable directory list
> --
> New versions of Mac OS X have a feature where you can drag directories
> from the file manager and drop on them on the side bar of the file
> dialog.  To remove a directory from the side bar, you just drag it
> off.  The idea is to keep your working set of directories there; you
> tend to work on a few projects at a time and so it makes sense to keep
> your frequently-accessed directories close at hand.  When your
> projects change, you just change the directories in the side bar.  See
> the screenshots here:
> This is easy to support, but we need a way to save the set of
> directories that the user has configured.  Should GTK+ simply write a
> ~/.file-chooser-directories, or do we need something more complicated?
> I'd love to have this in the base GTK+ file selector rather than
> having to create a replacement in libgnomeui or gnome-vfs -- as far
> as I can tell, GTK+ has never written configuration data in the past,
> but for such a simple thing we should not need something exotic.
> For the sake of completeness, we may want
> 	GSList *gtk_file_chooser_list_user_directories (GtkFileChooser
> *chooser);
> 	[returns a list of const gchar *]
> And do we need a way to set a default list of directories?  Can we
> just populate the immutable part of the list from a few well-known
> locations like ~, ~/Desktop, removable volumes, etc.?

Regarding the immutable part here and removable volumes in particular.
This should probably be at least partly synchronized with the nautilus
tree sidebar. At some point this means sharing the code that does volume
scanning and mount detection. This part of nautilus is horrible, and
could do well with a rewrite, perhaps pushing it to a lower level so
that gnome apps could use it in the file selector.

 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a short-sighted shark-wrestling vagrant on a search for his missing 
sister. She's a virginal mutant opera singer with the power to bend men's 
minds. They fight crime! 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]