fix warning in new glib
Clean up balloon formatting
fix omitting custom sounds
reduce abuse of ternary operator
The ?: operator should not be used as a generic shorthand for if/else.
(Which isn't needed here either...)