Re: GDK Set_Background
- From: Chris Sparks <mrada catalina-inter net>
- To: gtk-app-devel-list gnome org
- Subject: Re: GDK Set_Background
- Date: Sat, 23 Aug 2003 20:17:05 -0700
Well I think I figured it out. I call set_back_pixmap prior to any "show"
of the windows on
my sample and that is why the backgrounds come out each time I occlude/expose
a top window.
When I do another set_back_pixmap after the windows are up so that I can
set the background
to another color, then I get not what I expect (the new color). I get in
this app the original color.
In my other application I get a white background for my child windows which
I don't know where
that comes from yet.
Chris Sparks wrote:
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
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
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.....
Owen Taylor wrote:
On Sat, 2003-08-23 at 00:36, Chris Sparks wrote:
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.)
] [Thread Prev