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:
Don Allingham 2006-04-30 23:26:38 +00:00
parent 2945365fe8
commit 097aef7956
3 changed files with 12 additions and 3 deletions

View File

@ -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> 2006-04-30 Brian Matherly <brian@gramps-project.org>
* src/plugins/CountAncestors.py: Use positive numbers for generations to be * src/plugins/CountAncestors.py: Use positive numbers for generations to be
consistent with the rest of GRAMPS consistent with the rest of GRAMPS

View File

@ -638,7 +638,8 @@ class PersonView(PageView.PersonNavView):
for path in paths: for path in paths:
node = self.model.on_get_iter(path) node = self.model.on_get_iter(path)
handle = self.model.on_get_value(node, PeopleModel.COLUMN_INT_ID) handle = self.model.on_get_value(node, PeopleModel.COLUMN_INT_ID)
mlist.append(handle) if handle:
mlist.append(handle)
return mlist return mlist
def remove_from_person_list(self,person): def remove_from_person_list(self,person):

View File

@ -384,8 +384,11 @@ class MonitoredDataType:
return (value[0],'') return (value[0],'')
def update(self): def update(self):
if self.get_val(): val = self.get_val()
self.sel.set_values(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): def on_change(self, obj):
value = self.fix_value(self.sel.get_values()) value = self.fix_value(self.sel.get_values())