writer: check return code as gboolean
writer: check return code as gboolean

This makes the check on return code stricter, by using the actual
gboolean value.

gtk-rs/gir,GuillaumeGomez/gir,gtk-rs/gir,GuillaumeGomez/gir,gtk-rs/gir,GuillaumeGomez/gir