Re: libgoocanvasmm
- From: "Murray Cumming" <murrayc murrayc com>
- To: "Paul Davis" <pjdavis engineering uiowa edu>
- Cc: Murray Cumming <murrayc murrayc com>, gtkmm-list gnome org
- Subject: Re: libgoocanvasmm
- Date: Wed, 27 Sep 2006 10:55:51 +0200 (CEST)
[snip]
> Anyway, the method create_view. Its giving me problems. Any ideas would
> be
> appreciated.
>
> Wrapped as:
>
> _WRAP_VFUNC(Glib::RefPtr<ItemView> create_view( Glib::RefPtr<View>
> canvas_view, Glib::RefPtr<ItemView> parent_view ), create_view)
Remember to pass RefPtrs by const reference, by the way.
[snip]
> The error is:
>
> item.cc: In static member function 'static GooCanvasItemView*
> GooCanvas::Item_Class::create_view_vfunc_callback(GooCanvasItem*,
> GooCanvasView*, GooCanvasItemView*)':
> item.cc:221: error: no matching function for call to
> 'GooCanvas::Item::create_view_vfunc(GooCanvas::View*,
> Glib::RefPtr<GooCanvas::ItemView>)'
> ../../libgoocanvas/libgoocanvasmm/item.h:246: note: candidates are:
> virtual
> Glib::RefPtr<GooCanvas::ItemView>
> GooCanvas::Item::create_view_vfunc(Glib::RefPtr<GooCanvas::View>,
> Glib::RefPtr<GooCanvas::ItemView>)
>
>
> But, AFAIK, Glib::wrap(canvas_view) should return the Glib::RefPtr<View>
Yes. Maybe it has something to do with the lack of const reference.
> Unless my convert is messed up again. But I can't find it if it is.
>
> _CONVERSION(`GooCanvasView*',`Glib::RefPtr<View>',`Glib::wrap($3)')
> _CONVERSION(`Glib::RefPtr<View>',`GooCanvasView*',($3)->gobj())
>
> Any help is much much appreciated.
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]