Merge lp:~azzar1/unity/fix-971332 into lp:unity
Proposed by
Andrea Azzarone
Status: | Merged |
---|---|
Approved by: | Gord Allott |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2230 |
Proposed branch: | lp:~azzar1/unity/fix-971332 |
Merge into: | lp:unity |
Diff against target: |
173 lines (+66/-14) 5 files modified
plugins/unityshell/src/ShortcutHint.cpp (+1/-1) plugins/unityshell/src/ShortcutHintPrivate.cpp (+27/-0) plugins/unityshell/src/ShortcutHintPrivate.h (+1/-0) plugins/unityshell/src/ShortcutView.cpp (+36/-12) plugins/unityshell/src/ShortcutView.h (+1/-1) |
To merge this branch: | bzr merge lp:~azzar1/unity/fix-971332 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gord Allott (community) | Approve | ||
Tim Penhey (community) | Needs Information | ||
Review via email: mp+100673@code.launchpad.net |
Commit message
Use gtk_accelerator
Description of the change
== The problem ==
Overlay key bindings are not fully translatable.
== The fix ==
Use gtk_accelerator
== Test ==
The shortcut overlay has already tests. No need to test gtk_accelerator
To post a comment you must log in.
41 + glib::String key(gtk_ accelerator_ get_label( accelerator_ key, accelerator_mods));
42 +
43 + std::string temp(key.Str());
44 + if (temp.empty())
45 + return "";
This could just be:
std::string key(glib: :String( gtk_accelerator _get_label( accelerator_ key, accelerator_ mods)). Str())
or... use std::string const& temp = key.Str()