Annotate GVariant and GSettings _strv() functions
authorMilan Bouchet-Valat <nalimilan@club.fr>
Wed, 2 Jun 2010 14:05:13 +0000 (16:05 +0200)
committerRyan Lortie <desrt@desrt.ca>
Wed, 2 Jun 2010 17:37:30 +0000 (19:37 +0200)
commit36826661401f1912eef8c710609f4bd6454720ad
tree5b1d1a2308699450f9565a8254ba4f6e4a42cfcc
parent0e691f27ecfe1d7f86214f16c00f91fc55f95e9c
Annotate GVariant and GSettings _strv() functions

Add GObject introspection annotations so that the length parameter is
correctly detected for g_variant_new_strv(), g_variant_get_strv() and
g_variant_dup_strv(). Also specify that it can be a NULL pointer in
g_variant_get_strv() and g_variant_dup_strv().

For g_settings_set_strv(), detect that a NULL value is allowed, meaning
empty array.

Closes bug #620384.

Signed-off-by: Ryan Lortie <desrt@desrt.ca>
gio/gsettings.c
glib/gvariant.c