[totem] Fix the Jamendo plugin to use the latest PyGObject GTK+ overrides



commit 10695c57c6a1090b1de6bc0510f8a76142694d5f
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sun Nov 14 12:29:15 2010 +0000

    Fix the Jamendo plugin to use the latest PyGObject GTK+ overrides

 src/plugins/jamendo/jamendo.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/jamendo/jamendo.py b/src/plugins/jamendo/jamendo.py
index 1a6796b..6d92b4d 100644
--- a/src/plugins/jamendo/jamendo.py
+++ b/src/plugins/jamendo/jamendo.py
@@ -461,14 +461,14 @@ class JamendoPlugin(gobject.GObject, Peas.Activatable, PeasGtk.Configurable):
                 path = tv.get_path_at_pos(int(evt.x), int(evt.y))
                 sel  = tv.get_selection()
                 (rows, _) = sel.get_selected_rows()
-                if path[1] not in rows[1]:
+                if path[0] not in rows[1]:
                     sel.unselect_all()
-                    sel.select_path(path[1])
+                    sel.select_path(path[0])
                 tv.grab_focus()
                 self.popup.popup(None, None, None, evt.button, evt.time)
                 return True
             coords = evt.get_coords()
-            _, path, c, x, y = tv.get_path_at_pos(int(coords[0]), int(coords[1]))
+            path, c, x, y = tv.get_path_at_pos(int(coords[0]), int(coords[1]))
             if (path.get_depth() == 1):
                 if tv.row_expanded(path):
                     tv.collapse_row(path)



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