[totem] Fix get_selected_rows() calls in the Jamendo plugin
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] Fix get_selected_rows() calls in the Jamendo plugin
- Date: Wed, 7 Jul 2010 22:43:40 +0000 (UTC)
commit db49cebaf26f8f6cd88b6146723e8e21f2fff3ab
Author: Philip Withnall <philip tecnocode co uk>
Date: Wed Jul 7 23:43:20 2010 +0100
Fix get_selected_rows() calls in the Jamendo plugin
src/plugins/jamendo/jamendo.py | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/plugins/jamendo/jamendo.py b/src/plugins/jamendo/jamendo.py
index 5d79fc6..b147584 100644
--- a/src/plugins/jamendo/jamendo.py
+++ b/src/plugins/jamendo/jamendo.py
@@ -455,7 +455,7 @@ class JamendoPlugin(gobject.GObject, Peas.Activatable, PeasUI.Configurable):
if evt.button == 3:
path = tv.get_path_at_pos(int(evt.x), int(evt.y))
sel = tv.get_selection()
- rows = sel.get_selected_rows(None)
+ (rows, _) = sel.get_selected_rows()
if path[0] not in rows[1]:
sel.unselect_all()
sel.select_path(path[0])
@@ -574,8 +574,7 @@ class JamendoPlugin(gobject.GObject, Peas.Activatable, PeasUI.Configurable):
"""
ret = []
sel = self.current_treeview.get_selection()
- model = self.current_treeview.get_model()
- rows = sel.get_selected_rows(None)
+ (rows, model) = sel.get_selected_rows()
for row in rows:
if root:
it = model.get_iter((row[0],))
@@ -591,8 +590,7 @@ class JamendoPlugin(gobject.GObject, Peas.Activatable, PeasUI.Configurable):
Update the state of the previous and next buttons.
"""
sel = self.current_treeview.get_selection()
- model = self.current_treeview.get_model()
- rows = sel.get_selected_rows(None)
+ (rows, model) = sel.get_selected_rows()
try:
it = model.get_iter(rows[0])
except:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]