Re: Any RGB macro in Gtk?

2010-08-16 Thread Ken Resander
is a full colour defined for an index of the lookup palette. 'unallocated' means there is no colour yet or that the full colour value has been removed from the palette index by gdk_colormap_free_colors. --- On Sun, 15/8/10, Paul Davis wrote: From: Paul Davis Subject: Re: Any RGB macro

Re: Any RGB macro in Gtk?

2010-08-15 Thread Paul Davis
tter, but if you only write applications with GTK and don't tend to hack on GTK itself, you will probably need to worry about them. --p > > > > > > --- On *Fri, 13/8/10, Ken Resander * wrote: > > > From: Ken Resander > Subject: Any RGB macro in Gtk? > T

Re: Any RGB macro in Gtk?

2010-08-14 Thread Ken Resander
Colormaps and Colors Reference contains several functions, but I did not use any of them. It still worked with the colours coming out the way I expected. When are these functions used/needed? Or are they becoming obsolete?   --- On Fri, 13/8/10, Ken Resander wrote: From: Ken Resander Subject

Any RGB macro in Gtk?

2010-08-13 Thread Ken Resander
I would like to port some Windows programs to Ubuntu+Gtk. These contain several large colour lookup tables using the Windows RGB macro. For example: static COLALTINFO safealts [ NUMCOLITEMS ]    =    {    { RGB(0xF0,0xF8,0xFF),RGB(0xFF,0xFF,0xFF) ,RGB(0x00,0x00,0x00) },    { RGB(0xFA,0xEB,0xD7),R