Re: [gtk-list] Re: what is the pixel value of the GdkColor ?



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]