Seperated out the GTK+ specific functions in their own file.