Inspecting `GtkLabel` very slow when it has a few paragraphs and wraps.
The following UI causes the GtkLabel
to be very slow when it's being inspected.
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<template class="LargePlaylistHeader" parent="GtkBox">
<property name="orientation">1</property>
<child>
<object class="GtkStack" id="description_stack">
<property name="vhomogeneous">false</property>
<property name="hhomogeneous">false</property>
<child>
<object class="GtkLabel" id="description">
<property name="hexpand">true</property>
<property name="wrap">true</property>
<property name="lines">3</property>
<property name="ellipsize">3</property>
<property name="single-line-mode">true</property>
<property name="width-chars">10</property>
<property name="max-width-chars">10</property>
<property name="label">Aubrey Drake Graham is a Canadian rapper, singer, and songwriter. An influential figure in contemporary popular music, Drake has been credited for popularizing singing and R&B sensibilities in hip hop. Gaining recognition by starring as Jimmy Brooks in the CTV teen drama series Degrassi: The Next Generation, he pursued a career in music releasing his debut mixtape Room for Improvement in 2006. He followed this with the mixtapes Comeback Season and So Far Gone before signing with Young Money Entertainment.
Drake's first three albums, Thank Me Later, Take Care and Nothing Was the Same, were all critical successes and propelled him to the forefront of hip hop. His fourth album, Views, saw exploration of dancehall and stood atop the Billboard 200 for 13 non-consecutive weeks, making it the first album by a male artist to do so in over a decade, and featured the chart record-setting lead single "One Dance". In 2018, Drake released the double album Scorpion, which contained the Billboard Hot 100 number-one singles "God's Plan", "Nice for What", and "In My Feelings".
From Wikipedia (https://en.wikipedia.org/wiki/Drake_(musician)) under Creative Commons Attribution CC-BY-SA 3.0 (http://creativecommons.org/licenses/by-sa/3.0/legalcode)</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkExpander" id="more">
<property name="label">More</property>
</object>
</child>
</template>
</interface>
cc @matthiasc