Show plugin information in the preferences page

This commit is contained in:
Andrew Resch 2008-11-13 22:39:57 +00:00
parent fb3e51d3e9
commit 1725ab7569
2 changed files with 748 additions and 686 deletions

File diff suppressed because it is too large Load Diff

View File

@ -803,6 +803,14 @@ class Preferences(component.Component):
def on_plugin_selection_changed(self, treeselection):
log.debug("on_plugin_selection_changed")
(model, itr) = treeselection.get_selected()
name = model[itr][0]
plugin_info = component.get("PluginManager").get_plugin_info(name)
self.glade.get_widget("label_plugin_author").set_text(plugin_info["Author"])
self.glade.get_widget("label_plugin_version").set_text(plugin_info["Version"])
self.glade.get_widget("label_plugin_email").set_text(plugin_info["Author-email"])
self.glade.get_widget("label_plugin_homepage").set_text(plugin_info["Home-page"])
self.glade.get_widget("label_plugin_details").set_text(plugin_info["Description"])
def _on_button_plugin_install_clicked(self, widget):
log.debug("_on_button_plugin_install_clicked")
@ -854,4 +862,3 @@ class Preferences(component.Component):
component.get("PluginManager").scan_for_plugins()
client.rescan_plugins()
self.show()