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:
- enable the GNOME option type in AbstractShortcutHint.h
- inside ShortcutHint.cpp read the options from:
org.gnome.settings-daemon.plugins.media-keys <key_name>
You can see how to read gsettings from UnitySettings.cpp,
while in GnomeGrabber::Impl::GrabDBusAccelerator you can see how
to parse them.
- In CompizShortcutModeller.cpp you should add something like:
std::make_shared<shortcut::Hint>(menubar, "", "", _("Take a screenshot."), shortcut::OptionType::GNOME, "screenshot")
std::make_shared<shortcut::Hint>(menubar, "", "", _("Take a screenshot of the current window."), shortcut::OptionType::GNOME, "window-screenshot")
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 :)