purple: replace deprecated glib2 functions
commit02227220cd1543e47452e133f4e1bc24eb9bb094
authorStefan Becker <chemobejk@gmail.com>
Tue, 28 Feb 2012 19:27:34 +0000 (28 21:27 +0200)
committerStefan Becker <chemobejk@gmail.com>
Tue, 28 Feb 2012 19:27:34 +0000 (28 21:27 +0200)
tree88b171fe1746893c85e18c8c89f350f1b0eea642
parent6c4eb70b01a3540ad163930724f9055bafda13a0
purple: replace deprecated glib2 functions

In glib2 2.31 GValueArray functions are marked with the GCC attribute
"deprecated". In the upcoming GCC 4.7.0 -Wdeprecated-declarations is
enabled by default and therefore the build fails, e.g. for Fedora 17.

Replaced the code with an equivalent implementation using GArray.
src/purple/purple-media.c