2006-04-30 Don Allingham <don@gramps-project.org>
* src/DataViews.py/_PersonView.py: don't add handles of top level objects * src/GrampsWidgets.py: handle both types and tuples svn: r6502
This commit is contained in:
parent
2945365fe8
commit
097aef7956
@ -1,3 +1,8 @@
|
||||
2006-04-30 Don Allingham <don@gramps-project.org>
|
||||
* src/DataViews.py/_PersonView.py: don't add handles of top level
|
||||
objects
|
||||
* src/GrampsWidgets.py: handle both types and tuples
|
||||
|
||||
2006-04-30 Brian Matherly <brian@gramps-project.org>
|
||||
* src/plugins/CountAncestors.py: Use positive numbers for generations to be
|
||||
consistent with the rest of GRAMPS
|
||||
|
@ -638,7 +638,8 @@ class PersonView(PageView.PersonNavView):
|
||||
for path in paths:
|
||||
node = self.model.on_get_iter(path)
|
||||
handle = self.model.on_get_value(node, PeopleModel.COLUMN_INT_ID)
|
||||
mlist.append(handle)
|
||||
if handle:
|
||||
mlist.append(handle)
|
||||
return mlist
|
||||
|
||||
def remove_from_person_list(self,person):
|
||||
|
@ -384,8 +384,11 @@ class MonitoredDataType:
|
||||
return (value[0],'')
|
||||
|
||||
def update(self):
|
||||
if self.get_val():
|
||||
self.sel.set_values(self.get_val())
|
||||
val = self.get_val()
|
||||
if type(val) == tuple :
|
||||
self.sel.set_values(val)
|
||||
else:
|
||||
self.sel.set_values((int(val),str(val)))
|
||||
|
||||
def on_change(self, obj):
|
||||
value = self.fix_value(self.sel.get_values())
|
||||
|
Loading…
Reference in New Issue
Block a user