gtk/testsuite/reftests/label-wrap-word-char-natural-size.ui
Benjamin Otte 981ed22dff label: Add gtk_label_set_natural_wrap_mode()
Allows influencing natural size requests so that labels can request more
width than necessary for a given height.

Related: !4245
Related: #4535
2021-12-20 02:28:37 +01:00

36 lines
1.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkWindow">
<property name="default-width">600</property>
<property name="default-height">300</property>
<child>
<object class="GtkBox">
<property name="halign">center</property>
<child>
<object class="GtkLabel">
<property name="label">lots
of
lines</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label">unwrappable words</property>
<property name="wrap">1</property>
<property name="wrap-mode">word-char</property>
<property name="natural-wrap-mode">word</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label">single line of text</property>
<property name="wrap">1</property>
<property name="wrap-mode">word-char</property>
<property name="natural-wrap-mode">none</property>
</object>
</child>
</object>
</child>
</object>
</interface>