Skip to content
  • Niels De Graef's avatar
    Remove GimpStringArray in favor of GStrv · 8eb7f6df
    Niels De Graef authored and Jehan's avatar Jehan committed
    GLib has a specific type of NULL-terminated string arrays:
    `G_TYPE_STRV`, which is the `GType` of `char**` aka `GStrv`.
    
    By using this type, we can avoid having a `GimpStringArray` which is a
    bit cumbersome to use for both the C API, as well as bindings. By using
    `GStrv`, we allow other languages to pass on string lists as they are
    used to, while the bindings will make sure to do the right thing.
    
    In the end, it makes the API a little bit simpler for everyone, and
    reduces confusion for people who are used to working with string arrays
    in other C/GLib based code (and not having 2 different types to denote
    the same thing).
    
    Related: #5919
    8eb7f6df