ftp manager plugin added to the main repository

This commit is contained in:
Denis Fomin
2010-11-05 16:41:00 +03:00
parent 714ba62722
commit c97e45f20a
2 changed files with 41 additions and 22 deletions

View File

@@ -1,5 +1,23 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
#
## plugins/ftp_manager/ftp_manager.py
##
## Copyright (C) 2010 Denis Fomin <fominde AT gmail.com>
##
## This file is part of Gajim.
##
## Gajim is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published
## by the Free Software Foundation; version 3 only.
##
## Gajim is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
##
import gtk import gtk
import pango import pango
import gobject import gobject

View File

@@ -57,6 +57,10 @@ class UbuntuIntegrationPlugin(GajimPlugin):
""" """
Displays gajim in the Messaging Menu. Displays gajim in the Messaging Menu.
""" """
# {(account, jid): (indicator, [event, ...]), ...}
self.events = {}
self.server = None
if not HAS_INDICATE: if not HAS_INDICATE:
raise GajimPluginException("python-indicate is missing!") raise GajimPluginException("python-indicate is missing!")
if not HAS_PYXDG: if not HAS_PYXDG:
@@ -73,9 +77,6 @@ class UbuntuIntegrationPlugin(GajimPlugin):
self.server.set_desktop_file(dfile) self.server.set_desktop_file(dfile)
self.server.show() self.server.show()
# {(account, jid): (indicator, [event, ...]), ...}
self.events = {}
gajim.events.event_added_subscribe(self.on_event_added) gajim.events.event_added_subscribe(self.on_event_added)
gajim.events.event_removed_subscribe(self.on_event_removed) gajim.events.event_removed_subscribe(self.on_event_removed)