[aseprite] 26/308: Show keyboard shortcuts in all popup menus

Tobias Hansen thansen at moszumanska.debian.org
Tue Mar 8 02:44:48 UTC 2016


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit 41d308f5daa9ac8204b25167c87bd939a18344e5
Author: David Capello <davidcapello at gmail.com>
Date:   Fri Nov 27 11:40:07 2015 -0300

    Show keyboard shortcuts in all popup menus
---
 src/app/app_menus.cpp | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/src/app/app_menus.cpp b/src/app/app_menus.cpp
index e3d64d9..a5fe752 100644
--- a/src/app/app_menus.cpp
+++ b/src/app/app_menus.cpp
@@ -275,7 +275,24 @@ Widget* AppMenus::createInvalidVersionMenuitem()
 
 void AppMenus::applyShortcutToMenuitemsWithCommand(Command* command, const Params& params, Key* key)
 {
-  applyShortcutToMenuitemsWithCommand(m_rootMenu, command, params, key);
+  // TODO redesign the list of popup menus, it might be an
+  //      autogenerated widget from 'gen'
+  Menu* menus[] = {
+    m_rootMenu,
+    m_tabPopupMenu,
+    m_documentTabPopupMenu,
+    m_layerPopupMenu,
+    m_framePopupMenu,
+    m_celPopupMenu,
+    m_celMovementPopupMenu,
+    m_frameTagPopupMenu,
+    m_palettePopupMenu,
+    m_inkPopupMenu
+  };
+
+  for (Menu* menu : menus)
+    if (menu)
+      applyShortcutToMenuitemsWithCommand(menu, command, params, key);
 }
 
 void AppMenus::applyShortcutToMenuitemsWithCommand(Menu* menu, Command* command, const Params& params, Key* key)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list