[gtk+/native-layout] Reduced natural request padding for rotating ellipsizing labels



commit b0fc43e9588aa076a84c71f22a74610c918625b5
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Mon Apr 19 21:50:55 2010 -0400

    Reduced natural request padding for rotating ellipsizing labels
    
    After fixing height requests this works much smoother, although in
    some places pango seems to ellipsize a rotated label when given
    the width it requested.

 gtk/gtklabel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 0e29220..ff210fe 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -156,7 +156,7 @@ enum {
 /* When rotating ellipsizable text we want the natural size to request 
  * more to ensure the label wont ever ellipsize in an allocation of full natural size.
  * */
-#define ROTATION_ELLIPSIZE_PADDING 12
+#define ROTATION_ELLIPSIZE_PADDING 2
 
 static guint signals[LAST_SIGNAL] = { 0 };
 



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