From 863e4bd72a4bfa44c5dab95914dd6645efc7d618 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 3 Apr 2014 17:13:02 +0100 Subject: [PATCH] Fix drag & drop in citation editor --- gramps/gui/editors/objectentries.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gramps/gui/editors/objectentries.py b/gramps/gui/editors/objectentries.py index b7c4355a7..b0ae66d13 100644 --- a/gramps/gui/editors/objectentries.py +++ b/gramps/gui/editors/objectentries.py @@ -195,7 +195,7 @@ class ObjEntry(object): def drag_data_received(self, widget, context, x, y, selection, info, time): (drag_type, idval, obj, val) = pickle.loads(selection.get_data()) - data = self.db.get_place_from_handle(obj) + data = self.get_from_handle(obj) self.obj_added(data) def obj_added(self, data): @@ -333,9 +333,9 @@ class SourceEntry(ObjEntry): """ self.label.drag_dest_set(Gtk.DestDefaults.ALL, [], Gdk.DragAction.COPY) tglist = Gtk.TargetList.new([]) - tglist.add(DdTargets.PLACE_LINK.atom_drag_type, - DdTargets.PLACE_LINK.target_flags, - DdTargets.PLACE_LINK.app_id) + tglist.add(DdTargets.SOURCE_LINK.atom_drag_type, + DdTargets.SOURCE_LINK.target_flags, + DdTargets.SOURCE_LINK.app_id) self.label.drag_dest_set_target_list(tglist) self.label.connect('drag_data_received', self.drag_data_received)