Adapting new API in GTK frontend