summaryrefslogtreecommitdiff
path: root/gtk/gtktextlinedisplaycache.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-10-28 20:18:54 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-10-28 20:18:54 -0400
commit5cbc55578fb16d862cc0fa34433a90dcb70a0789 (patch)
treeff6bb51858794b17648301e485527238b3d058a1 /gtk/gtktextlinedisplaycache.c
parentf90e7b9c56fd0adfd8e35735b97b65e82c5a1cab (diff)
downloadgtk+-5cbc55578fb16d862cc0fa34433a90dcb70a0789.tar.gz
textview: Update child allocations
This was accidentally lost when display line caching was introduced.
Diffstat (limited to 'gtk/gtktextlinedisplaycache.c')
-rw-r--r--gtk/gtktextlinedisplaycache.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtktextlinedisplaycache.c b/gtk/gtktextlinedisplaycache.c
index 27f05ad660..677de11572 100644
--- a/gtk/gtktextlinedisplaycache.c
+++ b/gtk/gtktextlinedisplaycache.c
@@ -294,6 +294,9 @@ gtk_text_line_display_cache_get (GtkTextLineDisplayCache *cache,
if (!size_only && display->line == cache->cursor_line)
gtk_text_layout_update_display_cursors (layout, display->line, display);
+ if (!size_only && display->has_children)
+ gtk_text_layout_update_children (layout, display);
+
/* Move to front of MRU */
g_queue_unlink (&cache->mru, &display->mru_link);
g_queue_push_head_link (&cache->mru, &display->mru_link);
@@ -322,6 +325,9 @@ gtk_text_line_display_cache_get (GtkTextLineDisplayCache *cache,
if (line == cache->cursor_line)
gtk_text_layout_update_display_cursors (layout, line, display);
+ if (display->has_children)
+ gtk_text_layout_update_children (layout, display);
+
gtk_text_line_display_cache_take_display (cache,
gtk_text_line_display_ref (display),
layout);