* 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:
@@ -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))
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
Reference in New Issue
Block a user