• Niels De Graef's avatar
    libgimpconfig: Prevent GIR conflicts in GimpConfigWriter · 284ba5c8
    Niels De Graef authored
    GimpConfigWriter contains several constructors with the convention
    `gimp_config_writer_new_* ()`. This will lead to problems however with
    languages like Vala, where it cannot disambiguate the following:
    // calls config_writer_new_string()
    Gimp.ConfigWriter w = new ConfigWriter.string("xxx");
    // calls config_writer_string()
    Using `from_` in constructors is general practice in GObject-bsed
    libraries because of this.
    This also fixes an error when trying to use vapigen on the GIMP .GIR
gimpconfigwriter.c 21.5 KB