port Preferences to GResource and GtkBuilder