[gnome-music/wip/merge: 284/343] Fix Long artists to not span on two rows
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/merge: 284/343] Fix Long artists to not span on two rows
- Date: Thu, 25 Jul 2013 11:36:30 +0000 (UTC)
commit 0fde5a36cd7e5a75a1a9ae8320e940c0a361c02b
Author: Seif Lotfy <seif lotfy com>
Date: Fri Jul 19 12:53:51 2013 +0200
Fix Long artists to not span on two rows
gnomemusic/view.py | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index 6d4c523..fbc989a 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -448,8 +448,17 @@ class Artists (ViewContainer):
cols = list_widget.get_columns()
cells = cols[0].get_cells()
- cells[2].set_alignment(xalign=0, yalign=0.5)
- cells[2].set_fixed_size(width=220, height=48)
+ cells[1].set_visible(False)
+ cells[2].set_visible(False)
+ type_renderer = Gd.StyledTextRenderer(
+ xpad=16,
+ ypad=16,
+ ellipsize=Pango.EllipsizeMode.END,
+ xalign=0.0
+ )
+ list_widget.add_renderer(type_renderer, lambda *args: None, None)
+ cols[0].clear_attributes(type_renderer)
+ cols[0].add_attribute(type_renderer, "text", 2)
def _on_item_activated(self, widget, item_id, path):
children = self._artistAlbumsWidget.get_children()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]