textview: Give attached children a different css name

If we use "text" for the children that are attached to the
text view, they end up rendering the same background as the
main text content, causing that content to be covered up.

Fixes: #2729
This commit is contained in:
Matthias Clasen 2020-05-10 09:14:25 -04:00
parent f6a4e68973
commit 3f548327b5

View File

@ -326,7 +326,7 @@ gtk_text_view_child_constructed (GObject *object)
break;
case GTK_TEXT_WINDOW_TEXT:
gtk_css_node_set_name (css_node, g_quark_from_static_string ("text"));
gtk_css_node_set_name (css_node, g_quark_from_static_string ("child"));
break;
case GTK_TEXT_WINDOW_WIDGET: