[totem] Remove an outdated hack from the Jamendo plugin
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] Remove an outdated hack from the Jamendo plugin
- Date: Sat, 23 Oct 2010 13:37:44 +0000 (UTC)
commit 765d5d6dd1bec29aadf4a204b16eb77a613103f8
Author: Philip Withnall <philip tecnocode co uk>
Date: Sat Oct 23 14:34:10 2010 +0100
Remove an outdated hack from the Jamendo plugin
src/plugins/jamendo/jamendo.py | 16 ----------------
1 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/src/plugins/jamendo/jamendo.py b/src/plugins/jamendo/jamendo.py
index ef35b5d..1a6796b 100644
--- a/src/plugins/jamendo/jamendo.py
+++ b/src/plugins/jamendo/jamendo.py
@@ -212,7 +212,6 @@ class JamendoPlugin(gobject.GObject, Peas.Activatable, PeasGtk.Configurable):
col = Gtk.TreeViewColumn(cell_renderer=cell, markup=2)
col.set_expand(True)
w.append_column(col)
- w.connect_after('size-allocate', self.on_treeview_size_allocate, col, cell)
# duration column
cell = Gtk.CellRendererText()
@@ -479,21 +478,6 @@ class JamendoPlugin(gobject.GObject, Peas.Activatable, PeasGtk.Configurable):
except:
pass
- def on_treeview_size_allocate(self, tv, allocation, col, cell):
- """
- Hack to autowrap text of the title colum.
- """
- # Further hack to run away if we're using GTK+ 3, where GtkAllocation
- # disappeared.
- if not hasattr(allocation, 'width'):
- return
-
- cols = (c for c in tv.get_columns() if c != col)
- w = allocation.width - sum(c.get_width() for c in cols)
- if cell.props.wrap_width == w or w <= 0:
- return
- cell.props.wrap_width = w
-
def on_previous_button_clicked(self, *args):
"""
Called when the user clicked the previous button.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]