summaryrefslogtreecommitdiff
path: root/gtk/gtktextviewchild.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-10 09:14:25 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-10 16:25:28 -0400
commit3f548327b56d5751b2d9899ee9a3ed8ba4793afe (patch)
tree4ec2532d79cc53ac0b648954d7ed191e80db1077 /gtk/gtktextviewchild.c
parentf6a4e68973fcf78504e320453c576abb789d9e03 (diff)
downloadgtk+-3f548327b56d5751b2d9899ee9a3ed8ba4793afe.tar.gz
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
Diffstat (limited to 'gtk/gtktextviewchild.c')
-rw-r--r--gtk/gtktextviewchild.c2
1 files changed, 1 insertions, 1 deletions
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: