From 198e3f1e2cf738ce493b266e34ef2ba3cf068468 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 14 Jun 2003 00:58:38 +0000 Subject: [PATCH] * src/EditPerson.py: Removed the conflict of using pmap for two seperate purposes - mapping places to iterators and places to keys. The place to key map is now pdmap * src/EditPlace.py: Handle drag and drop with places * src/EditPerson.py: Handle exchange of perferred name and selected name in the alternate name list svn: r1723 --- src/EditPerson.py | 6 +++--- src/EditPlace.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/EditPerson.py b/src/EditPerson.py index 60dc30068..d000f234b 100644 --- a/src/EditPerson.py +++ b/src/EditPerson.py @@ -1521,10 +1521,10 @@ class EditPerson: self.draw_lds() def change_name(self,obj): - if self.name_list.selection: + sel_objs = self.ntree.get_selected_objects() + if sel_objs: old = self.pname - row = self.name_list.selection[0] - new = self.name_list.get_row_data(row) + new = sel_objs[0] self.nlist.remove(new) self.nlist.append(old) self.redraw_name_list() diff --git a/src/EditPlace.py b/src/EditPlace.py index a73f89e5a..74e77a4ca 100644 --- a/src/EditPlace.py +++ b/src/EditPlace.py @@ -204,8 +204,8 @@ class EditPlace: self.redraw_url_list() def url_source_drag_data_get(self,widget, context, sel_data, info, time): - ev = widget.get_row_data(widget.focus_row) - + + ev = self.web_model.get_selected_objects()[0] bits_per = 8; # we're going to pass a string pickled = pickle.dumps(ev); data = str(('url',self.place.getId(),pickled));