label: Always respect width-chars and max-width-chars
Not just when labels are set to ellipsize or wrap. https://bugzilla.gnome.org/show_bug.cgi?id=647284
This commit is contained in:
committed by
Benjamin Otte
parent
264539728c
commit
2143c1835e
@@ -3081,7 +3081,7 @@ get_label_width (GtkLabel *label,
|
||||
* request was provided.
|
||||
*/
|
||||
|
||||
if (priv->ellipsize || priv->wrap)
|
||||
if (priv->ellipsize || priv->wrap || priv->width_chars > 0 || priv->max_width_chars > 0)
|
||||
{
|
||||
*minimum = char_pixels * MAX (priv->width_chars, ellipsize_chars);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user