Re: subclassing textitem
- From: control H <control h gmail com>
- To: Damon Chaplin <damon karuna eclipse co uk>
- Cc: goocanvas-list gnome org
- Subject: Re: subclassing textitem
- Date: Fri, 14 Oct 2011 22:13:48 +0200
>
> 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]