Widget.setVisual

Sets the visual that should be used for by widget and its children for creating gdk.Windows The visual must be on the same gdk.Screen as returned by Widget.getScreen, so handling the screen-changed signal is necessary.

Setting a new visual will not cause widget to recreate its windows, so you should call this function before widget is realized.

class Widget
void
setVisual

Parameters

visual Visual

visual to be used or NULL to unset a previous one