Merge lp:~mcintire-evan/unity/add_screenshot_shortcut_hints into lp:unity
| Status: | Merged |
|---|---|
| Approved by: | Marco Trevisan (Treviño) on 2015-12-17 |
| Approved revision: | 4039 |
| Merged at revision: | 4057 |
| Proposed branch: | lp:~mcintire-evan/unity/add_screenshot_shortcut_hints |
| Merge into: | lp:unity |
| Diff against target: |
98 lines (+37/-4) 4 files modified
shortcuts/AbstractShortcutHint.h (+2/-1) shortcuts/CompizShortcutModeller.cpp (+10/-0) shortcuts/MockShortcutHint.h (+3/-0) shortcuts/ShortcutHint.cpp (+22/-3) |
| To merge this branch: | bzr merge lp:~mcintire-evan/unity/add_screenshot_shortcut_hints |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Marco Trevisan (Treviño) | 2015-12-16 | Approve on 2015-12-17 | |
|
Review via email:
|
|||
Commit Message
ShortcutHint: Add key shortcut hints for Screenshot and Window Screenshot
Key bindings are dynamically taken from gnome settings.
Description of the Change
ShortcutHint: Add key shortcut hints for Screenshot and Window Screenshot
Key bindings are dynamically taken from gnome settings.
| Marco Trevisan (Treviño) (3v1n0) wrote : | # |
| Evan McIntire (mcintire-evan) wrote : | # |
Thanks! Do I read and parse the settings in the files you mentioned or in ShortcitHint.cpp? Other than that, everything is pretty clear
| Marco Trevisan (Treviño) (3v1n0) wrote : | # |
> Thanks! Do I read and parse the settings in the files you mentioned or in
> ShortcitHint.cpp? Other than that, everything is pretty clear
I'd do that in ShortcutHint.cpp, in CompizShortcutM
| Marco Trevisan (Treviño) (3v1n0) wrote : | # |
That's great, there are some fixes to do though...
See the inline comments for details, main fixes are at http://
| Marco Trevisan (Treviño) (3v1n0) wrote : | # |
Sorry, there's a compilation issue because a different variable name has been used:
/«BUILDDIR»
/«BUILDDIR»
glib::String key(g_settings_
- 4040. By Evan McIntire on 2015-12-17
-
ShortcutHint: Add key shortcut hints for Screenshot and Window Screenshot
Key bindings are dynamically taken from gnome settings.


Hi, thanks for you contribution.
Please, revert the changes in the po folder, these are generated automatically.
As for making this option dynamic I think there's some little more work involved: tHint.h gnome.settings- daemon. plugins. media-keys <key_name> :Impl:: GrabDBusAcceler ator you can see how odeller. cpp you should add something like: :make_shared< shortcut: :Hint>( menubar, "", "", _("Take a screenshot."),
shortcut: :OptionType: :GNOME,
"screenshot" ) :make_shared< shortcut: :Hint>( menubar, "", "", _("Take a screenshot of the current window."),
shortcut: :OptionType: :GNOME,
"window- screenshot" )
- enable the GNOME option type in AbstractShortcu
- inside ShortcutHint.cpp read the options from:
org.
You can see how to read gsettings from UnitySettings.cpp,
while in GnomeGrabber:
to parse them.
- In CompizShortcutM
std:
std:
It should be fun :)