Re: color gradients in windows?



>I've looked through some of the documentation but I haven't been able
>to figure out whether it is possible to have gtk windows with
>background color gradients.  For example, I wrote a gtk program for
>psychoacoustic tests that lets the user move items (buttons) around in
>a gtk_layout widget.  We'd now like to define regions within the
>gtk_layout widget by having different background colors.  Is that
>currently possible?

if the layout is fixed size, you can use a background pixmap to get
the effect you want.

you might want to look at the GtkCanvas object, thankfully backported
from GNOME by some helpful soul. it is probably closer to what you're
looking for than a GtkLayout.

--p




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