avoids a deprecation warning; the function is not even deprecated, the vala bindings just have a bug here, but this also fixes it