Re: [gtk-list] Re: what is the pixel value of the GdkColor ?
- From: "José Miguel R. Barrientos" <jmiguel ceselsa es>
- To: luther dpt-info u-strasbg fr
- CC: "gtk-list redhat com" <gtk-list redhat com>
- Subject: Re: [gtk-list] Re: what is the pixel value of the GdkColor ?
- Date: Mon, 07 Jun 1999 12:30:01 +0000
Sven LUTHER wrote:
>
> On Mon, Jun 07, 1999 at 11:49:47AM +0000, José Miguel R. Barrientos wrote:
> > If you want the blue color, perhaps you can do it with:
> >
> > GdkColor color;
> > GdkColormap *cmap = my_funtion_to_obtain_colormap();
> > GdkGC *gc = my_function_to_obtain_a_gc();
> >
> > color.red = color.green = 0;
> > color.blue = 65535;
> > gdk_colormap_alloc_color(cmap, &color, FALSE, TRUE);
> >
> > gdk_gc_set_foreground(gc, &color);
> > gdk_draw_something(drawable, gc);
>
> Hey just noticed that this also change the color of the quit button label, that was
> not what i wanted ...
>
> Friendly,
>
> Sven LUTHER
Sorry, what button?
I've re-read my mail, and I don't have the original "what is the pixel value of
the GdkColor ?"
But I think you're using the same gc for the button and
_whatever_you're_drawing_ ...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]