Re: Virtualizing paint functions



On Tue, 2006-04-04 at 00:12 +0200, Anders Carlsson wrote:
> Owen Taylor skrev:
> >
> > So:
> >
> >  if (GDK_IS_PAINTABLE(window)->impl)) 
> >    {
> >      GDK_PAINTABLE(impl)->invalidate_region(region);
> >      return;
> >    }
> >
> >  [ Current implementation ]
> >
> >   
> > That *is* another way of doing backend customization from what we have
> > as well, but at least it's a way that fits into the general GObject
> > patterns. 
> >
> >   
> Ah, that looks way better that the hack I had. When I was looking at 
> inheritance, I was concerned with not being able to provide a default 
> implementation.
> 
> I guess the remaining issue now is how to override 
> gdk_window_process_all_updates, without requiring copies of the function 
> in the different backend implementations.

Can you explain the issue here more?
						Owen





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]