Re: GDK Set_Background



Thanks for responding.  In my sample program, the one you suggested, I have no problems
with the background being redrawn every time I occlude/expose a window on my sample
window.  It is the main application I have developed from the past that is having the problems.
I still need to track down why when I occlude/expose a window on my application window
that it doesn't draw the background.  I looked at the set_back_pixmap calls and my pixmap
isn't null.  Maybe I need to debug it with a debugger and figure out what is going on.

News at 11.....

Chris Sparks

Owen Taylor wrote:
On Sat, 2003-08-23 at 00:36, Chris Sparks wrote:
  
Hi all,

I have noticed that when I use Set_Background for a GDK window, it works 
the first time in drawing the color, however, upon new expose events 
(windows covering windows) the background looks transparent.  The image 
of either the previous window or one below is coming through.

Anybody know why this is?
    

This doesn't make any sense to me. Maybe you can show a few lines
of code to let us see what you are doing?

"Background looks transparent" sounds like you are  doing
gdk_window_set_back_pixmap (window, NULL, FALSE). (It's not
actually transparent, just that it won't automatically repaint
on expose events.)

Regards,
						Owen



  



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