tooltipwindow: Don't restrict minimum tooltip label length

We only care about wrapping at that length, we still want short tooltips
for short labels.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3741
This commit is contained in:
Alexander Mikhaylenko 2022-04-16 03:48:21 +04:00
parent dd18c7dedf
commit 7871f1e13b

View File

@ -418,7 +418,6 @@ update_label_width (GtkLabel *label)
len = g_utf8_strlen (text, -1);
gtk_label_set_width_chars (label, MIN (len, 50));
gtk_label_set_max_width_chars (label, MIN (len, 50));
gtk_label_set_wrap (label, TRUE);
}