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

svn: r22161
This commit is contained in:
Jérôme Rapinat 2013-05-04 14:23:23 +00:00
parent 2b3c2190d8
commit 98d3606aff

View File

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