changeset 1202d5cdfec3 in /home/hg/repos/gajim-plugins
buthor: Yann Leboulanger asterix@lagaule.org ranches: gajim_0.15 details:gajim-plugins?cmd=changeset;node=1202d5cdfec3 description: plugin installer: don't use HtmlTextView in 0.15 branch
diffstat:
plugin_installer/plugin_installer.py | 16 ++++++++-------- wrong_layout/plugin.py | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-)
diffs (61 lines):
diff -r add6ddda8fe6 -r 1202d5cdfec3 plugin_installer/plugin_installer.py --- a/plugin_installer/plugin_installer.py Wed Aug 28 13:27:26 2013 +0200 +++ b/plugin_installer/plugin_installer.py Wed Aug 28 13:42:21 2013 +0200 @@ -34,7 +34,7 @@ from common import gajim from plugins import GajimPlugin from plugins.helpers import log_calls, log -from htmltextview import HtmlTextView +from conversation_textview import ConversationTextview from dialogs import WarningDialog, HigDialog, YesNoDialog from plugins.gui import GajimPluginConfigDialog
@@ -256,9 +256,9 @@
self._clear_available_plugin_info()
- self.plugin_description_textview = HtmlTextView() + self.plugin_description_textview = ConversationTextview(None) sw = self.xml.get_object('scrolledwindow1') - sw.add(self.plugin_description_textview) + sw.add(self.plugin_description_textview.tv)
self.xml.connect_signals(self) self.window.show_all() @@ -366,9 +366,9 @@ 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 = HtmlTextView() + self.plugin_description_textview = ConversationTextview(None) sw = self.xml.get_object('scrolledwindow1') - sw.add(self.plugin_description_textview) + sw.add(self.plugin_description_textview.tv) sw.show_all() if iter: self.plugin_name_label1.set_text(model.get_value(iter, C_NAME)) @@ -385,9 +385,9 @@ desc = '<body xmlns='http://www.w3.org/1999/xhtml%5C%27%3E' + \ desc + ' </body>' desc = desc.replace('\n', '<br/>') - self.plugin_description_textview.display_html(desc, - self.plugin_description_textview, None) - self.plugin_description_textview.set_property('sensitive', True) + self.plugin_description_textview.tv.display_html(desc, + self.plugin_description_textview) + self.plugin_description_textview.tv.set_property('sensitive', True) else: self._clear_available_plugin_info()
diff -r add6ddda8fe6 -r 1202d5cdfec3 wrong_layout/plugin.py --- a/wrong_layout/plugin.py Wed Aug 28 13:27:26 2013 +0200 +++ b/wrong_layout/plugin.py Wed Aug 28 13:42:21 2013 +0200 @@ -12,7 +12,7 @@ @log_calls('WrongLayoutPlugin') def init(self): self.description = _('Press alt+r to convert chars typed in ' - 'wrong layout Rus<>Eng') + 'wrong layout Rus<>Eng') self.config_dialog = None self.gui_extension_points = { 'chat_control_base': (self.connect_with_chat_control,