Got rid of deprecated glib functions