First pass at replacing deprecated APIs in Glib 3 with the new names.