radically change Keyboard/Binding API design to disconnect Gtk::Action lookup from binding definition

We need this because we need binding information/objects before all
Actions have been defined.
This commit is contained in:
Paul Davis 2015-08-08 08:36:29 -04:00
parent 29b69b0ab4
commit 67e19c177f
25 changed files with 734 additions and 922 deletions

View file

@ -365,10 +365,11 @@ UI::set_tip (Widget *w, const gchar *tip, const gchar *hlp)
}
if (action) {
#warning Paul fix this before you think tabbed is done
Gtk::AccelKey key;
ustring ap = action->get_accel_path();
if (!ap.empty()) {
string shortcut = ActionManager::get_key_representation (ap, key);
string shortcut = string(); // ActionManager::get_key_representation (ap, key);
if (!shortcut.empty()) {
replace_all (shortcut, "<", "");
replace_all (shortcut, ">", "-");