[gtk+] label: No need to special case single-line mode



commit 9bd206a65cd7f254b3947189d18ffba371f6ca9f
Author: Benjamin Otte <otte redhat com>
Date:   Mon Apr 18 04:25:53 2011 +0200

    label: No need to special case single-line mode
    
    It's already taken care of by the layout.

 gtk/gtklabel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 0ef1f7f..3f83745 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]