Re: [gtk-list] gdk_set_back_pixmap and GtkDrawingArea



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 :)

->  
->   - Maciej Stachowiak
->  

-- 
--------------- Codito, ergo sum - "I code, therefore I am" --------------------
raster@rasterman.com       /\___ /\ ___/||\___ ____/|/\___  raster@redhat.com
Carsten Haitzler           | _ //__\\ __||_ __\\ ___|| _ /  Red Hat Advanced
218/21 Conner Drive        || // __ \\_ \ | |   \ _/_|| /   Development Labs
Chapel Hill NC 27514 USA   ||\\\/  \//__/ |_|   /___/||\\   919 547 0012 ext 282
+1 (919) 929 9443, 801 4392   For pure Enlightenmenthttp://www.rasterman.com/ 



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