From c274118a8f7ed18e5bc703e614a9ea0a7cdb553c Mon Sep 17 00:00:00 2001 From: Bastian Winkler Date: Tue, 2 Mar 2010 09:26:57 +0100 Subject: [PATCH] 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 --- clutter/clutter-model.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clutter/clutter-model.c b/clutter/clutter-model.c index c2e975f74..545c9f3b4 100644 --- a/clutter/clutter-model.c +++ b/clutter/clutter-model.c @@ -193,7 +193,7 @@ struct _ClutterModelPrivate { GType *column_types; gchar **column_names; - gint n_columns; + guint n_columns; ClutterModelFilterFunc filter_func; gpointer filter_data; @@ -419,7 +419,7 @@ clutter_model_init (ClutterModel *self) self->priv = priv = CLUTTER_MODEL_GET_PRIVATE (self); - priv->n_columns = -1; + priv->n_columns = 0; priv->column_types = NULL; priv->column_names = NULL;