Re: How to draw background?



Mattias Gaertner <nc-gaertnma netcologne de> writes:
> 
> I want to draw a rectangular area in the theme button background.
> For example: If the current theme defines a gradient from white to gray for button background, then I want to draw this gradient from white to gray. If it has a tiled picture as background, I want this.
> How can this be achieved?
> 

Use gtk_paint_flat_box() (or whatever gtk_paint_* GtkButton uses, look
at gtkbutton.c) to draw your background. If applicable, pass the same
"detail" that GtkButton does.

Havoc



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