After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 89972 - typing ..<TAB> on file dialog doesn't go one level up (to parent directory)
typing ..<TAB> on file dialog doesn't go one level up (to parent directory)
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.0.x
Other Linux
: Normal minor
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2002-08-05 23:29 UTC by bit
Modified: 2011-02-04 16:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch, if you type ..TAB it goes to parent directory (674 bytes, patch)
2002-08-06 19:01 UTC, bit
none Details | Review

Description bit 2002-08-05 23:29:45 UTC
When usin the file dialog (tested in gimp and the background-properties
thing) if you type ..<tab> (2 dots and TAB) it stays in the current
directory instead of going up to the parent directory. You have to type
../TAB to get this result, but it worked with only ..TAB in 1.x.
Comment 1 bit 2002-08-06 19:01:26 UTC
Created attachment 10308 [details] [review]
Proposed patch, if you type ..TAB it goes to parent directory
Comment 2 Szekeres Istvan 2002-10-04 09:14:55 UTC
The proposed patch does not handle the situation correctly if you have
a directory called "...". In this case it should bring up with the
choices ".." and "...".



Comment 3 Owen Taylor 2002-12-13 01:08:36 UTC
Thu Dec 12 19:51:45 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkfilesel.c (open_new_dir): Include "."
        and ".." in the list of entries; they are needed for
        correct handling of .<TAB>, ..<TAB>; were lost
        with the GDir conversion. (Francisco Bustamante,
        #89972)

        * gtk/gtkfilesel.c (open_new_dir): If we hit
        EOF unexpectedly, that's OK... a file was just
        deleted while we were reading the directory.