GNOME Bugzilla – Bug 739933
Make initActions better.
Last modified: 2014-11-11 06:36:33 UTC
This patchset reworks initActions a bit (and renames it to addActions) and adds support for setting accelerators to actions. Overall this is how I would have written it back when if I had known what I know now.
Created attachment 290389 [details] [review] Utils: Simplify initActions Rename initActions to addActions (showing that the util calls add_action in the end) and make it less boilerplaty to use.
Created attachment 290390 [details] [review] Utils: Move accel setup into addActions Setting upp accelerators (keybindings) inside addActions feels more natural since you're already working with setting up the actions there to begin with.
Review of attachment 290389 [details] [review]: Looks neat.
Review of attachment 290390 [details] [review]: Agreed!
Comment on attachment 290389 [details] [review] Utils: Simplify initActions Pushed (o/
Comment on attachment 290390 [details] [review] Utils: Move accel setup into addActions Pushed \o)