[gimp] app: in GimpSearchPopup, activate selected action after closing popup



commit fe3339e2156c3edf540bf548e8b149abe0f0a369
Author: Ell <ell_se yahoo com>
Date:   Fri Nov 10 09:46:52 2017 -0500

    app: in GimpSearchPopup, activate selected action after closing popup
    
    Otherwise, if the action displays a dialog, the dialog doesn't have
    focus.

 app/widgets/gimpsearchpopup.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimpsearchpopup.c b/app/widgets/gimpsearchpopup.c
index 8669906..9334ea6 100644
--- a/app/widgets/gimpsearchpopup.c
+++ b/app/widgets/gimpsearchpopup.c
@@ -662,10 +662,10 @@ gimp_search_popup_run_selected (GimpSearchPopup *popup)
 
       if (gtk_action_is_sensitive (action))
         {
-          gtk_action_activate (action);
-
           /* Close the search popup on activation. */
           GIMP_POPUP_CLASS (parent_class)->cancel (GIMP_POPUP (popup));
+
+          gtk_action_activate (action);
         }
 
       g_object_unref (action);


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