Automatically Managed Hotkeys
In the 0.3 series an onwards hotkeys are created and implicitly managed only via a hotkey registry. So we remove gtk_hotkey_
Blueprint information
- Status:
- Started
- Approver:
- None
- Priority:
- Essential
- Drafter:
- None
- Direction:
- Approved
- Assignee:
- Mikkel Kamstrup Erlandsen
- Definition:
- Approved
- Series goal:
- Accepted for 0.3
- Implementation:
- Good progress
- Milestone target:
- 0.3.0
- Started by
- Mikkel Kamstrup Erlandsen
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
So the deal is that the registry should take over the management of the hotkey lifecycle. That way one can not have "unmanaged" hotkeys.
= NEW/MODIFIED METHODS =
Hotkeys are created or looked up with:
/* Lookup or create with default sig. if necessary*/
gtk_hotkey_
/* Lookup or return NULL if non-existing */
gtk_hotkey_
Hotkeys are no longer deleted directly from the registry, but are deleted with a new method on the Hotkey class:
gtk_hotkey_
We need a new signal GtkHotkey::deleted as well. After this signal has been emitted all ops on the hotkey should fail.
/* Set the signature, rebinding the key of already bound */
gtk_hotkey_
= REMOVED METHODS =
The method gtk_hotkey_
As it says in the spec title we will also remove the gtk_hotkey_
Work Items
Dependency tree
* Blueprints in grey have been implemented.