gcc has optimizations for include guards that only work if they are outermost in the the header. https://bugzilla.gnome.org/show_bug.cgi?id=689810
This commit adjusts the app chooser code to GTK+ coding style: - line up prototypes - remove some excess {} - remove tabs and trailing whitespace - add docs