Re: libgoocanvasmm



[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]