On Wed, 2008-01-30 at 17:07 +0100, Matteo Cappadonna wrote:
> Hi all,
> 
> I wanto to create an object ClutterGrid, extending the ClutterActor
> main class, but I have a problem.
> 
> I have followed this tutorial:
> http://www.openismus.com/misc/clutter_tutorial/docs/tutorial/html/apa.html
> 
> The object is the same but I've a property in addition to the "color"
> in example; this is the struct of private object:
> 
> struct _ClutterGridPrivate
> {
>     ClutterColor    color;
>     gint        step;
> };
> 
> I've modified the functions "clutter_grid_set_property" and
> "clutter_grid_get_property", to manage the PROP_STEP enumeration,
> and I don't receive any compilation problem....
> 
> .... but ....
> 
> When I try to executing the test program I receive this errors:

you are trying to install the step property using a boxed type, but step
is just an integer, and not a boxed type; you want g_param_spec_int()
instead.

you also want to read the GObject documentation on how to add properties
to a GObject class:

  http://library.gnome.org/devel/gobject/stable/gobject-properties.html

you might possibly want to use Clutter with an high level language, like
Perl, Python, C#, Vala or Ruby, and not in plain C if you're not
familiar with the GObject conventions.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi, OpenedHand Ltd.
Unit R, Homesdale Business Centre
216-218 Homesdale Rd., Bromley - BR12QZ
http://www.o-hand.com

-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to