changeset 7d1ec0d3757f in /home/hg/repos/gajim
branches: gajim_0.16 details:http://hg.gajim.org/gajim?cmd=changeset;node=7d1ec0d3757f description: easy way to clear plugin_description_textview
diffstat:
src/plugins/gui.py | 11 +++-------- 1 files changed, 3 insertions(+), 8 deletions(-)
diffs (28 lines):
diff -r 11bc6f2ffb08 -r 7d1ec0d3757f src/plugins/gui.py --- a/src/plugins/gui.py Sat Aug 17 21:59:24 2013 +0400 +++ b/src/plugins/gui.py Mon Aug 19 11:28:50 2013 +0400 @@ -35,6 +35,7 @@ from common import gajim from plugins.helpers import log_calls, log from plugins.helpers import GajimPluginActivateException +from plugins.plugins_i18n import _ from common.exceptions import PluginsystemError
( @@ -142,14 +143,8 @@ self.plugin_homepage_linkbutton.set_uri(plugin.homepage) self.plugin_homepage_linkbutton.set_label(plugin.homepage) self.plugin_homepage_linkbutton.set_property('sensitive', True) - - sw = self.xml.get_object('scrolledwindow2') - old_tv = sw.get_children()[0] - old_tv.destroy() - self.plugin_description_textview = HtmlTextView() - sw.add(self.plugin_description_textview) - sw.show_all() - from plugins.plugins_i18n import _ + desc_textbuffer = self.plugin_description_textview.get_buffer() + desc_textbuffer.set_text('') txt = plugin.description txt.replace('</body>', '') if plugin.available_text: