Re: New widget - style inheritance?



Neil Bird <neil fnxweb com> writes: 
>   My gut feeling would be to base this upon a GtkArea (or similar) and do
> the drawing roughly myself - but what would be the best way of inheriting
> theme/style settings (of say Buttons) such that the area's b/g, fill &
> outline colours matched 'normal' buttons?
> 

Use the functions in gtkpaint.h to do your drawing when possible, and
if that isn't possible (there aren't functions there to draw triangles
for example), use the colors and graphics contexts in widget->style.

Havoc




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