Comment out the printf() statements in the event callback.

This commit also fixes an issue where the GUI is not given the correct initial size.