Re: [gtk-list] gdk_set_back_pixmap and GtkDrawingArea




raster@redhat.com writes:
> On 29 Jun, Maciej Stachowiak shouted:
> ->  
> ->  I'm trying to make a drawing area widget update faster by setting my
> ->  backing pixmap as its background pixmap, by using gdk_set_back_pixmap
> ->  on the widget's window field. However, this has two problems. First,
> ->  the pixmap is not drawn in the background initially; the background is
> ->  just set to an apparently random color from the pixmap. However,
> ->  dragging another window over my app exposes the pixmap. Second, when I
> ->  draw something to the pixmap, it does not get updated, again until I
> ->  drag another window over it so it gets exposure events. Am I totally
> ->  misunderstanding how background pixmaps are supposed to work?
> 
> when u've finished drawing on the pixmap call gdk_clear_window(); also
> do this just after setting the bg pixmap too :)
> 

Cool, that's much better. For the record, in case anyone sle was
wondering this, the function is actually gdk_window_clear(). Thanks
again,


 - Maciej



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