* src/Plugins.py: Register book items with options and style instead

of the functions get_options and get_style.
* src/plugins/BookReport.py, src/plugins/FtmStyleDescendants.py,
src/plugins/FtmStyleAncestors.py: Change from functions to values,
accordingly. Also switch to a proper use of dialog.run().


svn: r1678
This commit is contained in:
Alex Roitman
2003-06-09 22:39:56 +00:00
parent 4d0aaa727a
commit 9f905eef5f
5 changed files with 64 additions and 71 deletions

View File

@@ -521,13 +521,13 @@ def relationship_function():
# Book item registration
#
#-------------------------------------------------------------------------
def register_book_item(name,category,options_dialog,write_book_item,get_options,get_style):
def register_book_item(name,category,options_dialog,write_book_item,options,style):
"""Register a book item"""
for n in _bkitems:
if n[0] == name:
return
_bkitems.append((name,category,options_dialog,write_book_item,get_options,get_style))
_bkitems.append((name,category,options_dialog,write_book_item,options,style))
#-------------------------------------------------------------------------
#