[gnome-shell] Don't line wrap application names in wells, fix running alignment



commit adfb419cebdb5ba0b6158d0f1ca4a0baeba8fd7a
Author: Colin Walters <walters verbum org>
Date:   Mon Jul 27 17:47:28 2009 -0400

    Don't line wrap application names in wells, fix running alignment
    
    The experiment with avoiding ellipsization was a definite failure;
    several translations have very long names, and we'd end up
    with a single column.
    
    Also fix extra padding; we only want some space at the top, not
    left/right.

 js/ui/appDisplay.js |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index a939a83..ded639b 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -506,8 +506,7 @@ WellDisplayItem.prototype = {
         this._name = new Clutter.Text({ color: GenericDisplay.ITEM_DISPLAY_NAME_COLOR,
                                         font_name: "Sans 12px",
                                         line_alignment: Pango.Alignment.CENTER,
-                                        line_wrap: true,
-                                        line_wrap_mode: Pango.WrapMode.WORD,
+                                        ellipsize: Pango.EllipsizeMode.END,
                                         text: appInfo.get_name() });
         nameBox.append(this._name, Big.BoxPackFlags.NONE);
         if (this._windows.length > 0) {
@@ -721,7 +720,7 @@ AppWell.prototype = {
         this._runningBox = new Big.Box({ border_color: GenericDisplay.ITEM_DISPLAY_NAME_COLOR,
                                          border_top: 1,
                                          corner_radius: 3,
-                                         padding: GenericDisplay.PREVIEW_BOX_PADDING });
+                                         padding_top: GenericDisplay.PREVIEW_BOX_PADDING });
         this._runningArea = new WellArea(width, false);
         this._runningArea.connect('activated', Lang.bind(this, function (a, display) {
             this.emit('activated');



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