Fixed new Gtk Drag/Drop names
svn: r23337
This commit is contained in:
parent
fbe500a5cb
commit
1018b9edb2
@ -490,12 +490,11 @@ class GalleryTab(ButtonTab, DbGUIElement):
|
||||
if data:
|
||||
(path, pos) = data
|
||||
row = path.get_indices()[0]
|
||||
|
||||
if pos == Gtk.ICON_VIEW_DROP_LEFT:
|
||||
if pos == Gtk.IconViewDropPosition.DROP_LEFT:
|
||||
row = max(row, 0)
|
||||
elif pos == Gtk.ICON_VIEW_DROP_RIGHT:
|
||||
elif pos == Gtk.IconViewDropPosition.DROP_RIGHT:
|
||||
row = min(row, len(self.get_data()))
|
||||
elif pos == Gtk.ICON_VIEW_DROP_INTO:
|
||||
elif pos == Gtk.IconViewDropPosition.DROP_INTO:
|
||||
row = min(row+1, len(self.get_data()))
|
||||
else:
|
||||
row = len(self.get_data())
|
||||
|
Loading…
Reference in New Issue
Block a user