The action name, parameter and new state are all controlled by an external process, so can’t be trusted. Ensure they are validated before being passed to functions which assert that they are correctly typed and extant.
Add unit tests.
Signed-off-by: Philip Withnall pwithnall@endlessos.org
Closes #1904 (closed)
This is a whole series of commits which make similar changes to all the places where GAction
s are externally triggered. New unit tests cover everything.