forked from AuroraMiddleware/gtk
widget: Use cssnode api to get the filter value
it's confusing that we use GtkStyleContext here while we use the CssNode directly elsewhere.
This commit is contained in:
parent
ca4ae81170
commit
73ce437459
@ -12670,7 +12670,8 @@ gtk_widget_create_render_node (GtkWidget *widget,
|
||||
"RenderNode for %s %p",
|
||||
G_OBJECT_TYPE_NAME (widget), widget);
|
||||
|
||||
filter_value = _gtk_style_context_peek_property (_gtk_widget_get_style_context (widget), GTK_CSS_PROPERTY_FILTER);
|
||||
filter_value = gtk_css_style_get_value (gtk_css_node_get_style (priv->cssnode), GTK_CSS_PROPERTY_FILTER);
|
||||
if (filter_value)
|
||||
gtk_css_filter_value_push_snapshot (filter_value, snapshot);
|
||||
|
||||
if (opacity < 1.0)
|
||||
|
Loading…
Reference in New Issue
Block a user