allocating colors



I have to initialize some attributes before my widget is realized. How can
I initizalize a color, I mean: RGB & pixel, before I realize a widget. The
problem is that widget->style->colormap is NULL and I can't use
gdk_color_alloc(widget->style->colormap, &mycolor).

Any hint?

Thanks,
<ADRIAN>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]