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

Re: color allocation





On Wed, 25 Nov 1998, Sylvain LIPPI wrote:

> Hi!
> 
> I'd like to allocate colors with their names (according to the
> rgb.txt file). Is their a gdk function like "gdk_color_alloc"
> to do this job?
> 
> PS : it seems that this functionnality already exists in
> XLib, but I am afread of directly using XLib!
> 
> 
> -- 
> Sylvain LIPPI
> 
 GdkColor mycolor;

 gdk_color_parse("green", &mycolor);
 gdk_color_alloc(gtk_widget_get_colormap(widget), &mycolor);

 Regards,
<ADRIAN>



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