Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] no background on GTK

Silenio_Quarti@xxxxxxx writes:
> Havoc, 
> 
> We are trying to implement the SWT.NO_BACKGROUND style. This
> style determines with a widget will fill the background when
> an expose event happens.
> 
> On X, it is possible to do this by setting the background
> pixmap of a Window to None.
> 
> On GTK, the equivalent API is gdk_window_set_back_pixmap().
> 
> If you run the test below, you will see that the shell
> will fill its background even though the test is setting
> the back pixmap to NULL.
> 
> It seems that the background is not filled by X, but it is
> been filled by GTK. Havoc is there a away of avoiding this?
> 

My guess is that gdk/gdkwindow.c:gdk_window_paint_init_bg() should be
handling a background of NULL and isn't. cc'ing Owen to see if he
agrees.

Havoc


Back to the top