summaryrefslogtreecommitdiff
path: root/gtk/ui
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2023-01-28 10:32:19 -0500
committerMatthias Clasen <mclasen@redhat.com>2023-01-28 13:07:26 -0500
commit1e9dbf2df06c80d62645f705b9d5ad5c37b8695f (patch)
tree958957c6687819b60b66fc1565f6221f77b269d2 /gtk/ui
parentdce21f06ddbab1cdbd25621897df32b472fd72c7 (diff)
downloadgtk+-1e9dbf2df06c80d62645f705b9d5ad5c37b8695f.tar.gz
tooltip: Prevent too-wide tooltip windows
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
Diffstat (limited to 'gtk/ui')
-rw-r--r--gtk/ui/gtktooltipwindow.ui1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/ui/gtktooltipwindow.ui b/gtk/ui/gtktooltipwindow.ui
index 2cecd58c73..d0fc9bc1c6 100644
--- a/gtk/ui/gtktooltipwindow.ui
+++ b/gtk/ui/gtktooltipwindow.ui
@@ -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>