Visual.getColormapSize
int getColormapSize()Returns the size of a colormap for this visual.
You have to use platform-specific APIs to manipulate colormaps.
Returns
The size of a colormap that is suitable for visual.
Deprecated
This information is not useful, since GDK does not
provide APIs to operate on colormaps.