render: Render builtin images as regular CSS images

This not only reduces code, but also allows for builtin images to have
shadows or be transformed using -gtk-icon-transform.
This commit is contained in:
Benjamin Otte
2015-01-19 17:30:43 +01:00
parent 45541cbf10
commit cc4d34e688
2 changed files with 23 additions and 80 deletions

View File

@ -877,6 +877,12 @@ gtk_css_image_builtin_draw (GtkCssImage *image,
double height,
GtkCssImageBuiltinType image_type)
{
if (!GTK_IS_CSS_IMAGE_BUILTIN (image))
{
_gtk_css_image_draw (image, cr, width, height);
return;
}
switch (image_type)
{
default: