GtkGradient: Handle symbolic gradients.

The css parser has been modified to parse correctly radial gradients:

background-image: -gtk-gradient (radial,
                                 center center, 0,
                                 center center, 0.8,
                                 from (#000), to (#fff));

The theming engine has been modified to correctly animate these,
as well as transitions between different pattern types.
This commit is contained in:
Carlos Garnacho
2010-10-12 21:48:23 +02:00
parent 2e8b1cd358
commit 88a3c2daae
4 changed files with 294 additions and 177 deletions

View File

@ -49,6 +49,12 @@ GtkGradient * gtk_gradient_new_linear (gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1);
GtkGradient * gtk_gradient_new_radial (gdouble x0,
gdouble y0,
gdouble radius0,
gdouble x1,
gdouble y1,
gdouble radius1);
void gtk_gradient_add_color_stop (GtkGradient *gradient,
gdouble offset,