[gnome-builder] application: use most-recent workbench for shortcuts parent



commit 9dd58979924f2472da9a07e3d2b7526676f4d12a
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jan 4 18:53:28 2017 -0800

    application: use most-recent workbench for shortcuts parent
    
    We were not breaking after finding the first match, so we ended up showing
    the window above the least recently used window. Instead we want the first
    match (they are reordered when focused).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=776863

 libide/application/ide-application-actions.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libide/application/ide-application-actions.c b/libide/application/ide-application-actions.c
index c73e1c7..6d1ccf7 100644
--- a/libide/application/ide-application-actions.c
+++ b/libide/application/ide-application-actions.c
@@ -253,7 +253,10 @@ ide_application_actions_shortcuts (GSimpleAction *action,
         }
 
       if (IDE_IS_WORKBENCH (window))
-        parent = window;
+        {
+          parent = window;
+          break;
+        }
     }
 
   window = g_object_new (IDE_TYPE_SHORTCUTS_WINDOW,


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