* src/PluginUtils/_Plugins.py (PluginDialog.on_apply_clicked,
PluginDialog.on_node_selected): Pass and use require_active flag. svn: r6940
This commit is contained in:
parent
3de04d3b13
commit
75457c4650
@ -3,6 +3,8 @@
|
|||||||
the + is clicked
|
the + is clicked
|
||||||
|
|
||||||
2006-06-21 Alex Roitman <shura@gramps-project.org>
|
2006-06-21 Alex Roitman <shura@gramps-project.org>
|
||||||
|
* src/PluginUtils/_Plugins.py (PluginDialog.on_apply_clicked,
|
||||||
|
PluginDialog.on_node_selected): Pass and use require_active flag.
|
||||||
* src/DateEdit.py (DateEditorDialog.__init__): Take care of
|
* src/DateEdit.py (DateEditorDialog.__init__): Take care of
|
||||||
deleting the dialog.
|
deleting the dialog.
|
||||||
|
|
||||||
|
@ -150,10 +150,11 @@ class PluginDialog(ManagedWindow.ManagedWindow):
|
|||||||
def on_apply_clicked(self,obj):
|
def on_apply_clicked(self,obj):
|
||||||
"""Execute the selected report"""
|
"""Execute the selected report"""
|
||||||
|
|
||||||
(item_class,options_class,title,category,name) = self.item
|
(item_class,options_class,title,category,
|
||||||
|
name,require_active) = self.item
|
||||||
if self.content == REPORTS:
|
if self.content == REPORTS:
|
||||||
report(self.state,self.uistate,self.state.active,
|
report(self.state,self.uistate,self.state.active,
|
||||||
item_class,options_class,title,name,category)
|
item_class,options_class,title,name,category,require_active)
|
||||||
else:
|
else:
|
||||||
_Tool.gui_tool(self.state,self.uistate,
|
_Tool.gui_tool(self.state,self.uistate,
|
||||||
item_class,options_class,title,name,category,
|
item_class,options_class,title,name,category,
|
||||||
@ -171,16 +172,18 @@ class PluginDialog(ManagedWindow.ManagedWindow):
|
|||||||
data = self.imap[path]
|
data = self.imap[path]
|
||||||
|
|
||||||
(report_class,options_class,title,category,name,
|
(report_class,options_class,title,category,name,
|
||||||
doc,status,author,email,unsupported) = data
|
doc,status,author,email,unsupported,require_active) = data
|
||||||
self.description.set_text(doc)
|
self.description.set_text(doc)
|
||||||
if unsupported:
|
if unsupported:
|
||||||
status = UNSUPPORTED
|
status = UNSUPPORTED
|
||||||
self.status.set_text(status)
|
self.status.set_text(status)
|
||||||
self.title.set_text('<span weight="bold" size="larger">%s</span>' % title)
|
self.title.set_text('<span weight="bold" size="larger">%s</span>' \
|
||||||
|
% title)
|
||||||
self.title.set_use_markup(1)
|
self.title.set_use_markup(1)
|
||||||
self.author_name.set_text(author)
|
self.author_name.set_text(author)
|
||||||
self.author_email.set_text(email)
|
self.author_email.set_text(email)
|
||||||
self.item = (report_class,options_class,title,category,name)
|
self.item = (report_class,options_class,title,category,
|
||||||
|
name,require_active)
|
||||||
|
|
||||||
def build_plugin_tree(self,item_list,categories):
|
def build_plugin_tree(self,item_list,categories):
|
||||||
"""Populates a GtkTree with each menu item assocated with a entry
|
"""Populates a GtkTree with each menu item assocated with a entry
|
||||||
|
Loading…
Reference in New Issue
Block a user