Remove some GTK+-only code.