This commit adjusts the app chooser code to GTK+ coding style: - line up prototypes - remove some excess {} - remove tabs and trailing whitespace - add docs
This way applications can append items to the menu, which will automatically show when there's more than one item in it.