Re: GC's



Alexandre Mathy <ardm2 cam ac uk> writes:
> Hey,
> I'm trying to get the hang of GdkGC's but I can't find any decent
> documentation...

The "scribble" example in the tutorial may help, and the Xlib
Programming Manual (vol 1) is good if you want tons of details.
 	  			
>     GdkGc selectedGC;
> 
>     //I think the following line is the problem
>     // I have tried this with the pixmap instead of widget->window
>     // but then the colormap is null.. with this code, nothing happens
>     GdkColormap *cmap = gdk_window_get_colormap (widget->window);

Suggest simply:
 gtk_widget_get_colormap (widget)
 				  
> 				  cred.red =1.0;

These values are in the range [0,G_MAXUSHORT]

Havoc




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