model: Use guint for the n_columns field

clutter_model_get_n_columns is supposed to return a guint, so the
n_columns field needs to be a guint with the initial value set to 0.

http://bugzilla.openedhand.com/show_bug.cgi?id=2017

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
This commit is contained in:
Bastian Winkler 2010-03-02 09:26:57 +01:00 committed by Emmanuele Bassi
parent c2faaa4f39
commit c274118a8f

View File

@ -193,7 +193,7 @@ struct _ClutterModelPrivate
{ {
GType *column_types; GType *column_types;
gchar **column_names; gchar **column_names;
gint n_columns; guint n_columns;
ClutterModelFilterFunc filter_func; ClutterModelFilterFunc filter_func;
gpointer filter_data; gpointer filter_data;
@ -419,7 +419,7 @@ clutter_model_init (ClutterModel *self)
self->priv = priv = CLUTTER_MODEL_GET_PRIVATE (self); self->priv = priv = CLUTTER_MODEL_GET_PRIVATE (self);
priv->n_columns = -1; priv->n_columns = 0;
priv->column_types = NULL; priv->column_types = NULL;
priv->column_names = NULL; priv->column_names = NULL;