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/gtkfilechooserentry.h | |
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/gtkfilechooserentry.h')
-rw-r--r-- | gtk/gtkfilechooserentry.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkfilechooserentry.h b/gtk/gtkfilechooserentry.h index dd83077097..cf7d8504ba 100644 --- a/gtk/gtkfilechooserentry.h +++ b/gtk/gtkfilechooserentry.h @@ -31,7 +31,8 @@ G_BEGIN_DECLS typedef struct _GtkFileChooserEntry GtkFileChooserEntry; GType _gtk_file_chooser_entry_get_type (void) G_GNUC_CONST; -GtkWidget * _gtk_file_chooser_entry_new (gboolean eat_tab); +GtkWidget * _gtk_file_chooser_entry_new (gboolean eat_tab, + gboolean eat_escape); void _gtk_file_chooser_entry_set_action (GtkFileChooserEntry *chooser_entry, GtkFileChooserAction action); GtkFileChooserAction _gtk_file_chooser_entry_get_action (GtkFileChooserEntry *chooser_entry); |