6672: Gallery: 'TreePath' object does not support indexing; it also works with pygobject 3.3.2

svn: r22162
This commit is contained in:
Jérôme Rapinat 2013-05-04 14:30:14 +00:00
parent 0509177b08
commit 4ecedd6148

View File

@ -481,7 +481,7 @@ class GalleryTab(ButtonTab, DbGUIElement):
data = self.iconlist.get_dest_item_at_pos(x, y)
if data:
(path, pos) = data
row = path[0]
row = path.get_indices()[0]
if pos == Gtk.ICON_VIEW_DROP_LEFT:
row = max(row, 0)