Refactor c module code a bit in cinnamon-settings.
Cinnamon settings: hide a category if it's empty