Commit 10e26848 authored by Andrea Cimitan's avatar Andrea Cimitan Committed by Benjamin Otte

shadow: add blur to icon-shadow (icon)

parent 7c3864ba
......@@ -404,6 +404,9 @@ _gtk_css_shadow_value_paint_icon (const GtkCssValue *shadow,
cairo_save (cr);
pattern = cairo_pattern_reference (cairo_get_source (cr));
cr = gtk_css_shadow_value_start_drawing (shadow, cr);
gdk_cairo_set_source_rgba (cr, _gtk_css_rgba_value_get_rgba (shadow->color));
cairo_translate (cr,
......@@ -411,6 +414,8 @@ _gtk_css_shadow_value_paint_icon (const GtkCssValue *shadow,
_gtk_css_number_value_get (shadow->voffset, 0));
cairo_mask (cr, pattern);
cr = gtk_css_shadow_value_finish_drawing (shadow, cr);
cairo_restore (cr);
cairo_pattern_destroy (pattern);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment