On Tue, May 28, 2002 at 02:39:57PM +0200, Andre Poenitz wrote: > > Why does the GraphicCacheItem contain a list of insets that reference it? > > Just to be able to call back if something has changed?
Yes. And to be able to delete the GraphicCacheItem when no insets referenced it any more. I think that the callback is currently subverted by the use of current_view (code I know nothing about; Juergen's your man here), but the GraphicCacheItem should IMO just emit a signal to say something's changed. Then it's up to the interested party to connect to this signal. That'll still leave you with the problem of an inset that knows it must redraw itself but doesn't know which BufferView it is visible in, but that's another problem (and the reason for the current_view hack). Angus