Re: subclassing textitem



>
> I think this should work:
>
>  GOO_CANVAS_ITEM_SIMPLE_CLASS (my_text_parent_class)->simple_paint
>    (simple, cr, bounds);
>
> The my_text_parent_class variable is set up automatically by the
> G_DEFINE_TYPE macros, and depends on the prefix you used there.
>
> Damon

This works perfectly, thanks a lot. Also thanks for pointing out that
the G_DEFINE_TYPE defines the my_text_parent_class. I had already
studied the goocanvasrect.c code and wondered where the
goo_canvas_rect_parent_class had been defined.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]