mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
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:
parent
c2faaa4f39
commit
c274118a8f
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user