Re: disabling auto background clear



Havoc Pennington wrote:
> 
> John Cupitt <john cupitt ng-london org uk> writes:
> > This is an easy one ... how do I stop my widget being automatically
> > cleared to the background colour on a configure? I want to redraw this
> > case myself.
> >
> > I looked over the GIMP sources, but I can't see what they're doing that
> > I'm not :-(
> >
> > Thanks for any pointers!
> >
> 
> You set the background to none, I believe using gdk_window_set_background
> (window, NULL).
> 
> Of course you get a different weirdness in this case (the desktop
> under the window shows through, etc.)
> 
> Havoc

Hi, thanks for the tip.

I looked at gdk, and I think gdk_window_set_background() does
XSetWindowBackground( color->pixel ), so I'm not sure this will work :-(

You can give NULL to gdk_window_set_back_pixmap(), but that doesn't seem
to help me either.

I'll maybe poke about in GIMP a bit more.

John




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