[gnome-music] Fix ellipsizing for the song titles in the songs view



commit 68f913bfc184e0103a4a50d682fb19bf61b3be7c
Author: Seif Lotfy <seif lotfy com>
Date:   Sun May 19 22:20:50 2013 +0200

    Fix ellipsizing for the song titles in the songs view

 src/view.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/view.js b/src/view.js
index e6931e8..bef3765 100644
--- a/src/view.js
+++ b/src/view.js
@@ -428,7 +428,7 @@ const Songs = new Lang.Class({
         let cols = listWidget.get_columns();
         let cells = cols[0].get_cells();
         cells[2].visible = false;
-        let nowPlayingSymbolRenderer = new Gtk.CellRendererPixbuf({ xpad: 0,ypad: 14 });
+        let nowPlayingSymbolRenderer = new Gtk.CellRendererPixbuf();
         var columnNowPlaying = new Gtk.TreeViewColumn();
         nowPlayingSymbolRenderer.set_property("xalign", 1.0);
         columnNowPlaying.pack_start(nowPlayingSymbolRenderer, false);
@@ -443,6 +443,7 @@ const Songs = new Lang.Class({
             titleRenderer.set_property("xalign",0.0);
             titleRenderer.set_property("yalign", 0.5);
             titleRenderer.set_property("height", 48);
+            titleRenderer.set_property("ellipsize", 3);
             titleRenderer.text = item.get_title();
         }))
         let starRenderer = new Gtk.CellRendererPixbuf({xpad: 32});


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