[gnome-music/wip/merge: 162/343] widgets: handle renderer correctly



commit e73b3279809a1d168c91d29f1898e511358e1540
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Tue Jul 16 17:14:59 2013 +0200

    widgets: handle renderer correctly

 gnomemusic/widgets.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/widgets.py b/gnomemusic/widgets.py
index cd3473c..d3ed845 100644
--- a/gnomemusic/widgets.py
+++ b/gnomemusic/widgets.py
@@ -153,12 +153,12 @@ class AlbumWidget(Gtk.EventBox):
     def _typeRendererText(self, col, cell, model, iter, data):
         pass
 
-    def _durationRendererText(self, col, cell, model, iter, data):
+    def _durationRendererText(self, col, widget, model, iter, data):
         item = self.model.get_value(iter, 5)
         duration = item.get_duration()
         if item is None:
             return
-        self.durationRenderer.text = self.player.secondsToString(duration)
+        widget.text = self.player.secondsToString(duration)
 
     def update(self, artist, album, item, header_bar, selection_toolbar):
         released_date = item.get_publication_date()


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