[clutter] Clutter model warning: Invalid type GEnum?

From: Pizza <pizzanicky_at_gmail.com>
Date: Mon, 22 Sep 2008 13:26:30 +0800

Hi,
I tried to use

clutter_list_model_new (N_COLUMNS,G_TYPE_BOOLEAN, "Icon",G_TYPE_ENUM,
"Content")

to create a list model, but when I ran my program, a warning message
appeared:

Clutter-WARNING **: clutter-list-model.c:741: Invalid type GEnum

It seems that it returns FALSE in clutter_model_check_type(GType gtype) at:

if (! G_TYPE_IS_VALUE_TYPE (gtype))
return FALSE;

I've tried other types such as G_TYPE_STRING, G_TYPE_INT, and they all
work fine. It doesn't work only when G_TYPE_ENUM is used.
I also test this in ~/tidy/test/test-list-view.c, and it's just the same.
Could anyone tell me where is my problem or just give me a hint? Thank you!

Pizza

-- 
To unsubscribe send a mail to clutter+unsubscribe_at_o-hand.com
Received on Mon Sep 22 2008 - 01:26:30 EDT

This archive was generated by hypermail 2.2.0 : Mon Sep 22 2008 - 02:00:15 EDT