Gedcom export, complete_rebuild fix, merge support

svn: r1223
This commit is contained in:
Don Allingham
2002-12-14 05:07:09 +00:00
parent 170394d327
commit a08425ebc8
15 changed files with 194 additions and 149 deletions

View File

@ -22,7 +22,7 @@ from gobject import TYPE_STRING, TYPE_PYOBJECT
import gtk
class ListModel:
def __init__(self,tree,dlist,select_func=None,event_func=None):
def __init__(self,tree,dlist,select_func=None,event_func=None,mode=gtk.SELECTION_SINGLE):
self.tree = tree
l = len(dlist)
self.mylist = [TYPE_STRING]*l + [TYPE_PYOBJECT]
@ -30,6 +30,7 @@ class ListModel:
self.tree.set_rules_hint(gtk.TRUE)
self.new_model()
self.selection = self.tree.get_selection()
self.selection.set_mode(mode)
self.data_index = l