update AntiSpamPlugin to py3
This commit is contained in:
@@ -1 +1 @@
|
|||||||
from anti_spam import AntiSpamPlugin
|
from .anti_spam import AntiSpamPlugin
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ Block some incoming messages
|
|||||||
:license: GPLv3
|
:license: GPLv3
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import gtk
|
from gi.repository import Gtk
|
||||||
from common import ged
|
from common import ged
|
||||||
|
|
||||||
from plugins import GajimPlugin
|
from plugins import GajimPlugin
|
||||||
@@ -89,12 +89,12 @@ class AntiSpamPluginConfigDialog(GajimPluginConfigDialog):
|
|||||||
def init(self):
|
def init(self):
|
||||||
self.GTK_BUILDER_FILE_PATH = self.plugin.local_file_path(
|
self.GTK_BUILDER_FILE_PATH = self.plugin.local_file_path(
|
||||||
'config_dialog.ui')
|
'config_dialog.ui')
|
||||||
self.xml = gtk.Builder()
|
self.xml = Gtk.Builder()
|
||||||
self.xml.set_translation_domain('gajim_plugins')
|
self.xml.set_translation_domain('gajim_plugins')
|
||||||
self.xml.add_objects_from_file(self.GTK_BUILDER_FILE_PATH,
|
self.xml.add_objects_from_file(self.GTK_BUILDER_FILE_PATH,
|
||||||
['anti_spam_config_vbox'])
|
['anti_spam_config_vbox'])
|
||||||
self.config_vbox = self.xml.get_object('anti_spam_config_vbox')
|
self.config_vbox = self.xml.get_object('anti_spam_config_vbox')
|
||||||
self.child.pack_start(self.config_vbox)
|
self.get_child().pack_start(self.config_vbox, True, True, 0)
|
||||||
|
|
||||||
self.block_pubsub_messages_checkbutton = self.xml.get_object(
|
self.block_pubsub_messages_checkbutton = self.xml.get_object(
|
||||||
'block_pubsub_messages_checkbutton')
|
'block_pubsub_messages_checkbutton')
|
||||||
|
|||||||
@@ -6,4 +6,4 @@ description: Block some incoming messages.
|
|||||||
authors = Yann Leboulanger <asterix@lagaule.org>
|
authors = Yann Leboulanger <asterix@lagaule.org>
|
||||||
Denis Fomin <fominde@gmail.com>
|
Denis Fomin <fominde@gmail.com>
|
||||||
homepage = http://trac-plugins.gajim.org/wiki/AntiSpamPlugin
|
homepage = http://trac-plugins.gajim.org/wiki/AntiSpamPlugin
|
||||||
max_gajim_version: 0.15.9
|
min_gajim_version: 0.15.10
|
||||||
|
|||||||
Reference in New Issue
Block a user