diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-05-02 01:08:21 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-05-02 01:41:23 +0000 |
commit | 6e0b13b81f634808d872cab3e092ee3bd00e401c (patch) | |
tree | 4ebab8d6f8ce58ba4172bfd8c1b6b65cc008ffa7 /gtk/gtkfilechooserdialog.c | |
parent | 78d254370c5240b76d320f8ceb374da153843926 (diff) | |
download | gtk+-6e0b13b81f634808d872cab3e092ee3bd00e401c.tar.gz |
Make file chooser saving work again
I was a little overzealous when going
for the new default handling here. We
can't switch to gtk_widget_activate_default
before we actually handle the default.activate
action.
Diffstat (limited to 'gtk/gtkfilechooserdialog.c')
-rw-r--r-- | gtk/gtkfilechooserdialog.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk/gtkfilechooserdialog.c b/gtk/gtkfilechooserdialog.c index de42a77c70..5b92797905 100644 --- a/gtk/gtkfilechooserdialog.c +++ b/gtk/gtkfilechooserdialog.c @@ -395,9 +395,16 @@ static void file_chooser_widget_response_requested (GtkWidget *widget, GtkFileChooserDialog *dialog) { + GtkWidget *button; + dialog->priv->response_requested = TRUE; - gtk_widget_activate_default (widget); + button = get_accept_action_widget (GTK_DIALOG (dialog), TRUE); + if (button) + { + gtk_widget_activate (button); + return; + } dialog->priv->response_requested = FALSE; } |