summaryrefslogtreecommitdiff
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2015-12-16 10:06:00 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2015-12-16 10:06:00 +0100
commit35b41f000c96b93b020f10419029ad76439e334b (patch)
treeedbc36161fe6d3c29e8756595bb5452ded35e6b9
parentdb983ac3c26a782a54abf59f6e3c6309a773a12a (diff)
CompizShortcutModeller: show menus keybinding can be read from settings
(bzr r4054.6.1)
-rw-r--r--shortcuts/CompizShortcutModeller.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/shortcuts/CompizShortcutModeller.cpp b/shortcuts/CompizShortcutModeller.cpp
index 5d4b373fe..5f9543407 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."),