changeset 2b76e17f3706 in /home/hg/repos/gajim-plugins
author: Yann Leboulanger asterix@lagaule.org branches: gtk3 details:gajim-plugins?cmd=changeset;node=2b76e17f3706 description: fix a few warnings
diffstat:
plugin_installer/manifest.ini | 2 +- plugin_installer/plugin_installer.py | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-)
diffs (83 lines):
diff -r 603efa2fac1f -r 2b76e17f3706 plugin_installer/manifest.ini --- a/plugin_installer/manifest.ini Sun Mar 06 15:38:55 2016 +0100 +++ b/plugin_installer/manifest.ini Sun Mar 06 15:39:54 2016 +0100 @@ -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 -r 603efa2fac1f -r 2b76e17f3706 plugin_installer/plugin_installer.py --- a/plugin_installer/plugin_installer.py Sun Mar 06 15:38:55 2016 +0100 +++ b/plugin_installer/plugin_installer.py Sun Mar 06 15:39:54 2016 +0100 @@ -37,7 +37,7 @@ 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 @@ 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 @@
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 @@
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 @@ 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 @@ desc = '<body xmlns='http://www.w3.org/1999/xhtml%5C%27%3E' + \ 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()