Commit 6f15b1b5 authored by Dicson's avatar Dicson

PluginInstallerPlugin. Correctly remove 'Available' page

parent 931bb4f0
[info]
name: Plugin Installer
short_name: plugin_installer
version: 0.11.1
version: 0.11.2
description: Install and upgrade plugins from ftp
authors: Denis Fomin <fominde@gmail.com>
Yann Leboulanger <asterix@lagaule.org>
......
......@@ -152,7 +152,7 @@ class PluginInstaller(GajimPlugin):
def deactivate(self):
self.pl_menuitem.disconnect(self.id_)
if hasattr(self, 'page_num'):
self.notebook.remove_page(self.page_num)
self.notebook.remove_page(self.notebook.page_num(self.hpaned))
self.notebook.set_current_page(0)
for id_, widget in list(self.connected_ids.items()):
widget.disconnect(id_)
......@@ -181,8 +181,8 @@ class PluginInstaller(GajimPlugin):
self.xml = Gtk.Builder()
self.xml.set_translation_domain('gajim_plugins')
self.xml.add_objects_from_file(self.Gtk_BUILDER_FILE_PATH, ['hpaned2'])
hpaned = self.xml.get_object('hpaned2')
self.page_num = self.notebook.append_page(hpaned,
self.hpaned = self.xml.get_object('hpaned2')
self.page_num = self.notebook.append_page(self.hpaned,
Gtk.Label(_('Available')))
widgets_to_extract = ('plugin_name_label1',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment