From 753c727f6e197ef9b87ae98ecefec7eca55f9ba7 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 15 Feb 2014 21:08:54 +0100 Subject: [PATCH] some gtk3 fixes in plugins window --- src/plugins/gui.py | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/plugins/gui.py b/src/plugins/gui.py index 508906fbe..bc99e52cf 100644 --- a/src/plugins/gui.py +++ b/src/plugins/gui.py @@ -37,7 +37,6 @@ from dialogs import WarningDialog, YesNoDialog, ArchiveChooserDialog from htmltextview import HtmlTextView from common import gajim from plugins.helpers import log_calls, log -from conversation_textview import ConversationTextview from plugins.helpers import GajimPluginActivateException from plugins.plugins_i18n import _ from common.exceptions import PluginsystemError @@ -103,7 +102,7 @@ class PluginsWindow(object): self.installed_plugins_treeview_selection_changed) selection.set_mode(Gtk.SelectionMode.SINGLE) - #self._clear_installed_plugin_info() + self._clear_installed_plugin_info() self.fill_installed_plugins_model() root_iter = self.installed_plugins_model.get_iter_first() @@ -125,11 +124,6 @@ class PluginsWindow(object): @log_calls('PluginsWindow') def installed_plugins_treeview_selection_changed(self, treeview_selection): model, iter = treeview_selection.get_selected() - self.xml.get_object('scrolledwindow').get_children()[0].destroy() - self.plugin_description_textview = ConversationTextview(None) - sw = self.xml.get_object('scrolledwindow') - sw.add(self.plugin_description_textview.tv) - sw.show_all() if iter: plugin = model.get_value(iter, PLUGIN) plugin_name = model.get_value(iter, NAME) @@ -158,10 +152,10 @@ class PluginsWindow(object): if not txt.startswith('' + txt txt += ' ' - self.plugin_description_textview.tv.display_html(txt, + self.plugin_description_textview.display_html(txt, self.plugin_description_textview, None) - self.plugin_description_textview.tv.set_property('sensitive', True) + self.plugin_description_textview.set_property('sensitive', True) self.uninstall_plugin_button.set_property('sensitive', gajim.PLUGINS_DIRS[1] in plugin.__path__) self.configure_plugin_button.set_property( @@ -175,7 +169,9 @@ class PluginsWindow(object): self.plugin_homepage_linkbutton.set_label('') self.plugin_homepage_linkbutton.set_property('sensitive', False) - self.plugin_description_textview.tv.set_property('sensitive', False) + desc_textbuffer = self.plugin_description_textview.get_buffer() + desc_textbuffer.set_text('') + self.plugin_description_textview.set_property('sensitive', False) self.uninstall_plugin_button.set_property('sensitive', False) self.configure_plugin_button.set_property('sensitive', False)