From 3f548327b56d5751b2d9899ee9a3ed8ba4793afe Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 10 May 2020 09:14:25 -0400 Subject: [PATCH] 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 --- gtk/gtktextviewchild.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtktextviewchild.c b/gtk/gtktextviewchild.c index a51ddfe3ac..1462f3ecbd 100644 --- a/gtk/gtktextviewchild.c +++ b/gtk/gtktextviewchild.c @@ -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: