[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: color allocation
- From: Adrian Feiguin <adrian ifir ifir edu ar>
- To: gtk-app-devel-list redhat com
- Subject: Re: color allocation
- Date: Tue, 24 Nov 1998 23:41:30 +0300 (GMT-3)
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]