Deprecate GValueArray
authorEmmanuele Bassi <ebassi@gnome.org>
Wed, 4 Jan 2012 09:31:12 +0000 (09:31 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 25 Jan 2012 04:37:24 +0000 (23:37 -0500)
commit0ac9ab4e271c8dbaaddd3e748aa687faa4a75523
tree2779beef78bf2778f9f360a1fdb5791d5881acd6
parentc602a5f887233bdd75544a290023d10029ca4fda
Deprecate GValueArray

The GValueArray type was added in a time, during the Jurassic era or so,
when GArray did not have a representable GType. The GValueArray API has
various issues as well:

  - it doesn't match the other GLib array types;
  - it is not reference counted;
  - the structure is fully exposed on the stack, so it cannot be
    extended to add reference counting;
  - it cannot be forcibly resized.

The nice thing is that now we have a GArray type that can replace in
full GValueArray, so we can deprecate the latter, and reduce the
complexity in GLib, application code, and bindings.

https://bugzilla.gnome.org/show_bug.cgi?id=667228
gobject/gboxed.c
gobject/gboxed.h
gobject/gparamspecs.c
gobject/gparamspecs.h
gobject/gvaluearray.c
gobject/gvaluearray.h
gobject/tests/valuearray.c