* 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
This commit is contained in:
parent
d71ba8ad36
commit
40b7437a6a
@ -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()
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user