[gtkada] How do you specify the color?

Emmanuel Briot briot at ACT-Europe.FR
Wed Apr 17 11:10:49 CEST 2002


Preben Randhol <randhol at pvv.org> writes:

> One thing that I have never understood is whether one need to Alloc the
> colour or not. Does somebody understands the usage of Alloc and could
> explain whether one should use it or not?

Yes, you do. The only case where it isn't really needed, apparently, is if your
X server uses a depth of at least 16 bits (since then there is no palette). But
since you don't know that when programming, and although it might be true on
your machine, you should always allocated the color.




More information about the gtkada mailing list