dh-preferences: convert it to a templated gobject