2011/7/21 Ted Gould <ted@...11...>:
I would guess, and I haven't looked closely enough to know, that it would make sense to have the Canvas widget and perhaps others inherit from GtkWidget instead of GtkObject. This would retain some of the destroy functionality. With the new Cairo renderer this could be a huge gain as basically all a Widget is in GTK3 is a Cairo surface....
I am working on replacing the entire SPCanvasItem / NRArenaItem hierarchy with plain C++ classes right now, so making any large changes to this area of code might not be very productive. I expect to merge this rewrite before 0.49.
The canvas widget (SPCanvas) derives from GtkWidget right now, but it looks like it would be better to derive from GtkDrawingArea.
Regards, Krzysztof