Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2016-03-06 17:39:54 +0300
committerYann Leboulanger <asterix@lagaule.org>2016-03-06 17:39:54 +0300
commit50d19f3cbdd70a78e3df50cd3b0906ba1f93de35 (patch)
tree69faba71754ee209267b829720b70c825282fc13 /plugin_installer
parent28f01f7e3570206c42ff64f90abba015125e7e96 (diff)
fix a few warnings
Diffstat (limited to 'plugin_installer')
-rw-r--r--plugin_installer/manifest.ini2
-rw-r--r--plugin_installer/plugin_installer.py22
2 files changed, 12 insertions, 12 deletions
diff --git a/plugin_installer/manifest.ini b/plugin_installer/manifest.ini
index bc19015..56efcbb 100644
--- a/plugin_installer/manifest.ini
+++ b/plugin_installer/manifest.ini
@@ -1,7 +1,7 @@
[info]
name: Plugin Installer
short_name: plugin_installer
-version: 0.12.2
+version: 0.13.0
description: Install and upgrade plugins from ftp
authors: Denis Fomin <fominde@gmail.com>
Yann Leboulanger <asterix@lagaule.org>
diff --git a/plugin_installer/plugin_installer.py b/plugin_installer/plugin_installer.py
index 9061495..35d7981 100644
--- a/plugin_installer/plugin_installer.py
+++ b/plugin_installer/plugin_installer.py
@@ -37,7 +37,7 @@ import zipfile
from common import gajim
from plugins import GajimPlugin
from plugins.helpers import log_calls, log
-from conversation_textview import ConversationTextview
+from htmltextview import HtmlTextView
from dialogs import WarningDialog, HigDialog, YesNoDialog
from plugins.gui import GajimPluginConfigDialog
@@ -192,7 +192,7 @@ class PluginInstaller(GajimPlugin):
self.xml.add_objects_from_file(self.Gtk_BUILDER_FILE_PATH, ['hpaned2'])
self.hpaned = self.xml.get_object('hpaned2')
self.page_num = self.notebook.append_page(self.hpaned,
- Gtk.Label(_('Available')))
+ Gtk.Label.new(_('Available')))
widgets_to_extract = ('plugin_name_label1',
'available_treeview', 'progressbar', 'inslall_upgrade_button',
@@ -237,10 +237,10 @@ class PluginInstaller(GajimPlugin):
if GObject.signal_lookup('error_signal', self.window) is 0:
GObject.signal_new('error_signal', self.window,
- GObject.SIGNAL_RUN_LAST, GObject.TYPE_STRING,
+ GObject.SignalFlags.RUN_LAST, GObject.TYPE_STRING,
(GObject.TYPE_STRING,))
GObject.signal_new('plugin_downloaded', self.window,
- GObject.SIGNAL_RUN_LAST, GObject.TYPE_STRING,
+ GObject.SignalFlags.RUN_LAST, GObject.TYPE_STRING,
(GObject.TYPE_PYOBJECT,))
id_ = self.window.connect('error_signal', self.on_some_ftp_error)
@@ -256,9 +256,9 @@ class PluginInstaller(GajimPlugin):
self._clear_available_plugin_info()
- self.plugin_description_textview = ConversationTextview(None)
+ self.plugin_description_textview = HtmlTextView()
sw = self.xml.get_object('scrolledwindow1')
- sw.add(self.plugin_description_textview.tv)
+ sw.add(self.plugin_description_textview)
self.xml.connect_signals(self)
self.window.show_all()
@@ -363,9 +363,9 @@ class PluginInstaller(GajimPlugin):
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 = ConversationTextview(None)
+ self.plugin_description_textview = HtmlTextView()
sw = self.xml.get_object('scrolledwindow1')
- sw.add(self.plugin_description_textview.tv)
+ sw.add(self.plugin_description_textview)
sw.show_all()
if iter:
self.plugin_name_label1.set_text(model.get_value(iter, C_NAME))
@@ -382,9 +382,9 @@ class PluginInstaller(GajimPlugin):
desc = '<body xmlns=\'http://www.w3.org/1999/xhtml\'>' + \
desc + ' </body>'
desc = desc.replace('\n', '<br/>')
- self.plugin_description_textview.tv.display_html(
- desc, self.plugin_description_textview)
- self.plugin_description_textview.tv.set_property('sensitive', True)
+ self.plugin_description_textview.display_html(
+ desc, self.plugin_description_textview, None)
+ self.plugin_description_textview.set_property('sensitive', True)
else:
self._clear_available_plugin_info()