Re: How to draw background?
- From: Havoc Pennington <hp redhat com>
- To: Mattias Gaertner <nc-gaertnma netcologne de>
- Cc: gtk-list gnome org
- Subject: Re: How to draw background?
- Date: 02 Jan 2002 18:10:15 -0500
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]