diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2013-08-16 16:55:14 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2013-08-16 16:55:14 +0400 |
commit | 78e70520fb20dc10c84d763f8ad8ea07aa0e8ef8 (patch) | |
tree | 2805e59d00959791b921ba0a1d29b1bfced24611 | |
parent | 66d2af52c6989e6d8d549306a88cfeff25302130 (diff) |
use HtmlTextView instead of ConversationTextView to show HTML in plugin description. Fixes #64
-rw-r--r-- | plugin_installer/manifest.ini | 3 | ||||
-rw-r--r-- | plugin_installer/plugin_installer.py | 16 |
2 files changed, 10 insertions, 9 deletions
diff --git a/plugin_installer/manifest.ini b/plugin_installer/manifest.ini index 2eb3599..9fdcfbc 100644 --- a/plugin_installer/manifest.ini +++ b/plugin_installer/manifest.ini @@ -1,9 +1,10 @@ [info] name: Plugin Installer short_name: plugin_installer -version: 0.11.4 +version: 0.11.5 description: Install and upgrade plugins from ftp authors: Denis Fomin <fominde@gmail.com> Yann Leboulanger <asterix@lagaule.org> homepage: http://trac-plugins.gajim.org/wiki/PluginInstallerPlugin +min_gajim_version: 0.16 max_gajim_version: 0.16.9 diff --git a/plugin_installer/plugin_installer.py b/plugin_installer/plugin_installer.py index 91e8a29..36bbcc8 100644 --- a/plugin_installer/plugin_installer.py +++ b/plugin_installer/plugin_installer.py @@ -34,7 +34,7 @@ import zipfile from common import gajim from plugins import GajimPlugin from plugins.helpers import log_calls, log -from conversation_textview import ConversationTextview +from htmltextview import HtmlTextView from dialogs import WarningDialog, HigDialog, YesNoDialog from plugins.gui import GajimPluginConfigDialog @@ -250,9 +250,9 @@ class PluginInstaller(GajimPlugin): self._clear_available_plugin_info() - self.plugin_description_textview = ConversationTextview(None) + self.plugin_description_textview = HtmlTextView() sw = self.xml.get_object('scrolledwindow1') - sw.add(self.plugin_description_textview.tv) + sw.add(self.plugin_description_textview) self.xml.connect_signals(self) self.window.show_all() @@ -360,9 +360,9 @@ class PluginInstaller(GajimPlugin): def available_plugins_treeview_selection_changed(self, treeview_selection): model, iter = treeview_selection.get_selected() self.xml.get_object('scrolledwindow1').get_children()[0].destroy() - self.plugin_description_textview = ConversationTextview(None) + self.plugin_description_textview = HtmlTextView() sw = self.xml.get_object('scrolledwindow1') - sw.add(self.plugin_description_textview.tv) + sw.add(self.plugin_description_textview) sw.show_all() if iter: self.plugin_name_label1.set_text(model.get_value(iter, C_NAME)) @@ -379,9 +379,9 @@ class PluginInstaller(GajimPlugin): desc = '<body xmlns=\'http://www.w3.org/1999/xhtml\'>' + \ desc + ' </body>' desc = desc.replace('\n', '<br/>') - self.plugin_description_textview.tv.display_html( - desc, self.plugin_description_textview) - self.plugin_description_textview.tv.set_property('sensitive', True) + self.plugin_description_textview.display_html(desc, + self.plugin_description_textview, None) + self.plugin_description_textview.set_property('sensitive', True) else: self._clear_available_plugin_info() |