2007-12-10 Emmanuele Bassi <ebassi@openedhand.com>

* clutter/clutter-model.c (clutter_model_iter_get_value): Initialise
	the passed GValue like the other getters do.
This commit is contained in:
Emmanuele Bassi 2007-12-10 16:02:46 +00:00
parent be8fdbe5c1
commit 002adaf305
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-12-10 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-model.c (clutter_model_iter_get_value): Initialise
the passed GValue like the other getters do.
2007-12-10 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-model.h:

View File

@ -2081,12 +2081,15 @@ clutter_model_iter_get_value (ClutterModelIter *iter,
GValue *value)
{
ClutterModelIterClass *klass;
ClutterModel *model;
g_return_if_fail (CLUTTER_IS_MODEL_ITER (iter));
klass = CLUTTER_MODEL_ITER_GET_CLASS (iter);
g_return_if_fail (klass->get_value != NULL);
model = iter->priv->model;
g_value_init (value, clutter_model_get_column_type (model, column));
klass->get_value (iter, column, value);
}