summaryrefslogtreecommitdiff
diff options
authorMarco Trevisan (TreviƱo) <mail@3v1n0.net>2015-12-18 00:01:26 +0000
committerCI Train Bot <ci-train-bot@canonical.com>2015-12-18 00:01:26 +0000
commite0af9581780becee3b8bf46ac93cead4d1242935 (patch)
tree92869332cc44103e25458e403212ee80bd7d42dc
parent4321320e490073b0f4012909c3b945f7a71aa3c6 (diff)
parent35b41f000c96b93b020f10419029ad76439e334b (diff)
CompizShortcutModeller: show menus keybinding can be read from settings
Approved by: PS Jenkins bot, Andrea Azzarone (bzr r4065)
-rw-r--r--shortcuts/CompizShortcutModeller.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/shortcuts/CompizShortcutModeller.cpp b/shortcuts/CompizShortcutModeller.cpp
index d792227f9..de2f30d02 100644
--- a/shortcuts/CompizShortcutModeller.cpp
+++ b/shortcuts/CompizShortcutModeller.cpp
@@ -70,6 +70,7 @@ namespace
const std::string UNITYSHELL_OPTION_LAUNCHER_SWITCHER_FORWARD = "launcher_switcher_forward";
const std::string UNITYSHELL_OPTION_SHOW_HUD = "show_hud";
const std::string UNITYSHELL_OPTION_PANEL_FIRST_MENU = "panel_first_menu";
+ const std::string UNITYSHELL_OPTION_SHOW_MENUS = "show_menu_bar";
const std::string UNITYSHELL_OPTION_SPREAD_APP_WINDOWS = "spread_app_windows";
const std::string UNITYSHELL_OPTION_SPREAD_APP_WINDOWS_ANYWHERE = "spread_app_windows_anywhere";
const std::string UNITYSHELL_OPTION_ALT_TAB_FORWARD = "alt_tab_forward";
@@ -229,8 +230,9 @@ void CompizModeller::AddMenuHints(std::list<shortcut::AbstractHint::Ptr> &hints)
hints.push_back(std::make_shared<shortcut::Hint>(menubar, "", _(" (Hold)"),
_("Reveals the application menu."),
- shortcut::OptionType::HARDCODED,
- "Alt"));
+ shortcut::OptionType::COMPIZ_KEY,
+ UNITYSHELL_PLUGIN_NAME,
+ UNITYSHELL_OPTION_SHOW_MENUS));
hints.push_back(std::make_shared<shortcut::Hint>(menubar, "", "",
_("Opens the indicator menu."),