label: No need to special case single-line mode

It's already taken care of by the layout.
This commit is contained in:
Benjamin Otte 2011-04-18 04:25:53 +02:00
parent 38676ef718
commit 9bd206a65c

View File

@ -3559,7 +3559,7 @@ gtk_label_get_preferred_layout_size (GtkLabel *label,
pango_layout_get_extents (layout, NULL, natural);
natural->x = natural->y = 0;
if (priv->single_line_mode || priv->wrap)
if (priv->wrap)
natural->height = get_single_line_height (GTK_WIDGET (label), layout);
if (priv->ellipsize || priv->wrap)