changeset a57123e648b3 in /home/hg/repos/gajim
branches: details:http://hg.gajim.org/gajim?cmd=changeset;node=a57123e648b3 description: easy way to clear plugin_description_textview
diffstat:
src/plugins/gui.py | 11 +++-------- 1 файлов изменено, 3 вставок(+), 8 удалений(-)
различия (28 строк):
diff -r 51c83e3e9033 -r a57123e648b3 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
( @@ -140,14 +141,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: