tooltip: Prevent too-wide tooltip windows
authorMatthias Clasen <mclasen@redhat.com>
Sat, 28 Jan 2023 15:32:19 +0000 (10:32 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 28 Jan 2023 18:07:26 +0000 (13:07 -0500)
Set the label to expand, so it actually fills
the width that we allocated for it, instead
of shrinking back to the minimum width for
its height.

Fixes: #5521
gtk/ui/gtktooltipwindow.ui

index 2cecd58c73c49200a7ac03cd0551c72f1eb8f04b..d0fc9bc1c6e1b330b5b6099a00efd71afe420250 100644 (file)
@@ -13,6 +13,7 @@
         </child>
         <child>
           <object class="GtkLabel" id="label">
+            <property name="hexpand">1</property>
             <property name="wrap">1</property>
             <property name="max-width-chars">50</property>
           </object>