From 1018b9edb2b9b1cee57d7ecd34df6b3c6624e5a6 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 19 Oct 2013 03:02:50 +0000 Subject: [PATCH] Fixed new Gtk Drag/Drop names svn: r23337 --- gramps/gui/editors/displaytabs/gallerytab.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gramps/gui/editors/displaytabs/gallerytab.py b/gramps/gui/editors/displaytabs/gallerytab.py index 39595e54c..e34d39c84 100644 --- a/gramps/gui/editors/displaytabs/gallerytab.py +++ b/gramps/gui/editors/displaytabs/gallerytab.py @@ -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())