diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-06-27 01:40:04 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-07-04 00:29:24 -0400 |
commit | 9b5e00b3c418d5d6dd0bd193aa974e375669025c (patch) | |
tree | 20196ee15cb455d3d100734e195b999737789e03 /gtk/gtkfilechooserdialog.c | |
parent | e0b81faadee8e1d1d9092e3ef47c4beb7f5a341d (diff) | |
download | gtk+-9b5e00b3c418d5d6dd0bd193aa974e375669025c.tar.gz |
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.
Diffstat (limited to 'gtk/gtkfilechooserdialog.c')
-rw-r--r-- | gtk/gtkfilechooserdialog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkfilechooserdialog.c b/gtk/gtkfilechooserdialog.c index 189284213b..9fb53e9be7 100644 --- a/gtk/gtkfilechooserdialog.c +++ b/gtk/gtkfilechooserdialog.c @@ -558,7 +558,7 @@ setup_save_entry (GtkFileChooserDialog *dialog) box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12); label = gtk_label_new_with_mnemonic (_("_Name")); - entry = _gtk_file_chooser_entry_new (FALSE); + entry = _gtk_file_chooser_entry_new (FALSE, FALSE); gtk_label_set_mnemonic_widget (GTK_LABEL (label), entry); gtk_container_add (GTK_CONTAINER (box), label); gtk_container_add (GTK_CONTAINER (box), entry); |