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 136987 - Alt-Up for GtkFileChooser
Alt-Up for GtkFileChooser
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.3.x
Other Linux
: High normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2004-03-12 15:42 UTC by Mark McLoughlin
Modified: 2011-02-04 16:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (4.99 KB, patch)
2004-03-12 15:42 UTC, Mark McLoughlin
none Details | Review
For reference, alternate try using GtkPathbar (5.30 KB, patch)
2004-03-15 01:36 UTC, Owen Taylor
none Details | Review

Description Mark McLoughlin 2004-03-12 15:42:04 UTC
It feels very odd that even though we retain our original context in the
path bar with Alt-Up, we don't support the analogous Alt-Down to go back
down the hierarchy we've just come up.

Attached is a patch to implement it.
Comment 1 Mark McLoughlin 2004-03-12 15:42:42 UTC
Created attachment 25564 [details] [review]
patch
Comment 2 Jonathan Blandford 2004-03-13 08:00:14 UTC
What a good idea!  I'll look at it.
Comment 3 Owen Taylor 2004-03-15 01:36:17 UTC
Created attachment 25656 [details] [review]
For reference, alternate try using GtkPathbar
Comment 4 Owen Taylor 2004-03-15 01:51:37 UTC
First looking at the patch, I said "wait, why didn't he
just hack in _gtk_path_bar_down" - but with experimentation,
it then doesn't reverse the action of Alt-Up on rerooting.

Of course, I don't think Alt-Up from
 
 [Home] [*otaylor*] [cvs]

you with 

 [FS] [home]

I think it should leave you with 

 [FS] [*home*] [otaylor] [cvs]

But that looks like a pain to implement. 
Comment 5 Owen Taylor 2004-03-15 02:00:35 UTC
Hmm, playing around with the two patches, I really like
my patch where Alt-Up/Alt-Down are confined to the pathbar
a lot better. It feels solider and more physical. 

You don't get 

 [*Home*] Alt-down
 [Home][*cvs*] Alt-down
 [Home][cvs][*gnome*] Alt-down
 [Home][cvs][gnome][*gtk+*]

Which feels like it is pulling stuff out of it's hat.
Comment 6 Owen Taylor 2004-03-15 02:10:23 UTC
Decided to go ahead and commit my version.

Sun Mar 14 21:03:15 2004  Owen Taylor  <otaylor@redhat.com>
                                                                     
                                            
        * gtk/gtkpathbar.[ch]: Add _gtk_path_bar_up()/
        _gtk_path_bar_down().
                                                                     
                                            
        * gtk/gtkfilechooserdefault.c: Use _gtk_path_bar_up()/
        _gtk_path_bar_down() as bindings for Alt-Up
        and new Alt-Down. (Partly based on a patch by
        Mark McLoughlin, #136987)