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