[gimp] app: keep focus on the quit dialog when saving.



commit 8aa0a048543039600467058d61ba6335897a61a1
Author: Jehan <jehan girinstud io>
Date:   Tue Oct 4 12:08:55 2016 +0200

    app: keep focus on the quit dialog when saving.
    
    Otherwise the quit dialog is still in front yet it has no focus and
    one doesn't see this immediately.
    Hitting ctrl-d to exit and ignore any subsequent files for instance
    duplicates the current active image instead.

 app/dialogs/quit-dialog.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/dialogs/quit-dialog.c b/app/dialogs/quit-dialog.c
index 1f1d7f1..0b4da80 100644
--- a/app/dialogs/quit-dialog.c
+++ b/app/dialogs/quit-dialog.c
@@ -528,6 +528,9 @@ quit_close_all_dialog_save_clicked (GtkCellRenderer *cell,
                   manager = gimp_image_window_get_ui_manager (window);
 
                   gimp_display_shell_present (shell);
+                  /* Make sure the quit dialog kept keyboard focus when
+                   * the save dialog will exit. */
+                  gtk_window_present (GTK_WINDOW (private->dialog));
 
                   if (state & GDK_SHIFT_MASK)
                     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]