trace/simple.c: fix deprecated glib2 interface