gui code cleanup

  • add two convenience functions for event listeners
  • replace tabs with spaces

@aggraef Will you just make sure this works? I did a quick glance to make sure I didn't screw anything up with the convenience functions.

Merge request reports

Loading