easy way to clear plugin_description_textview
This commit is contained in:
parent
06a6d8f507
commit
0802d2af2f
|
@ -35,6 +35,7 @@ from htmltextview import HtmlTextView
|
||||||
from common import gajim
|
from common import gajim
|
||||||
from plugins.helpers import log_calls, log
|
from plugins.helpers import log_calls, log
|
||||||
from plugins.helpers import GajimPluginActivateException
|
from plugins.helpers import GajimPluginActivateException
|
||||||
|
from plugins.plugins_i18n import _
|
||||||
from common.exceptions import PluginsystemError
|
from common.exceptions import PluginsystemError
|
||||||
|
|
||||||
(
|
(
|
||||||
|
@ -140,14 +141,8 @@ class PluginsWindow(object):
|
||||||
self.plugin_homepage_linkbutton.set_uri(plugin.homepage)
|
self.plugin_homepage_linkbutton.set_uri(plugin.homepage)
|
||||||
self.plugin_homepage_linkbutton.set_label(plugin.homepage)
|
self.plugin_homepage_linkbutton.set_label(plugin.homepage)
|
||||||
self.plugin_homepage_linkbutton.set_property('sensitive', True)
|
self.plugin_homepage_linkbutton.set_property('sensitive', True)
|
||||||
|
desc_textbuffer = self.plugin_description_textview.get_buffer()
|
||||||
sw = self.xml.get_object('scrolledwindow2')
|
desc_textbuffer.set_text('')
|
||||||
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 _
|
|
||||||
txt = plugin.description
|
txt = plugin.description
|
||||||
txt.replace('</body>', '')
|
txt.replace('</body>', '')
|
||||||
if plugin.available_text:
|
if plugin.available_text:
|
||||||
|
|
Loading…
Reference in New Issue