xft_color[index].color.red = c.red; xft_color[index].color.green = c.green; xft_color[index].color.blue = c.blue; xft_color[index].color.alpha = 0xffff; xft_color[index].pixel = c.pixel;
setColor<index,set>(gdk_c, gdk_colormap);
    void setColor(const GdkColor& c)    {      set(gdk_gc, &c);            // Set the color for Xft, note that we reuse the same pixel field      // so that we don't need to reallocate the color      xft_color[index].color.red = c.red;      xft_color[index].color.green = c.green;      xft_color[index].color.blue = c.blue;      xft_color[index].color.alpha = 0xffff;      xft_color[index].pixel = c.pixel;    }