file chooser entry: Capture Escape and emit :hide-entry
authorMatthias Clasen <mclasen@redhat.com>
Sat, 27 Jun 2015 05:40:04 +0000 (01:40 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 4 Jul 2015 04:29:24 +0000 (00:29 -0400)
commit9b5e00b3c418d5d6dd0bd193aa974e375669025c
tree20196ee15cb455d3d100734e195b999737789e03
parente0b81faadee8e1d1d9092e3ef47c4beb7f5a341d
file chooser entry: Capture Escape and emit :hide-entry

Make the file chooser entry optionally capture Escape
and emit a signal. Make the file chooser widget hide the
entry on that signal and go back to the path bar.
This gives us a two-level undo:
location entry -> path bar -> dialog close.
When the location entry is permanently displayed in the
header for save mode, we still let the first Escape close
the dialog.
gtk/gtkfilechooserdialog.c
gtk/gtkfilechooserentry.c
gtk/gtkfilechooserentry.h
gtk/gtkfilechooserwidget.c