Re: Typing dir name in a file open dialog ...




James Henstridge <james@daa.com.au> writes:

> Yes you are doing something wrong :)
> 
> Rather than following windows conventions here where pressing enter for a
> directory displays its contents, the GTK file dialog uses tab completion.
> 
> Try typing "/opt/gnome<tab>" into the dialog (where <tab> is the tab key).
> It also has some other nice features.  For instance typing
> "/usr/share/pixmaps/g<tab>" will only display files starting with g and
> "*.png<tab>" will only display .png files in the current directory.  As
> you can see, this is very powerful.  Maybe it just needs to be documented
> better.

Actually, the GNOME file selector needs to check to see if the contents
of the line are a directory when the user hits return and if so,
call the appropriate GtkFileSel function to act as if the user
hit <tab>.

The GIMP already does this, so its code would be a good reference.
(Don't cut-and-paste the code though into gnome-libs, it's 
 GPL, not LGPL)

Regards,
                                        Owen



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