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:
authorDenis Fomin <fominde@gmail.com>2013-01-28 16:59:11 +0400
committerDenis Fomin <fominde@gmail.com>2013-01-28 16:59:11 +0400
commit750e636f4beae043241fa34c232eb1132458d970 (patch)
treebad8259e895e07672fea865241552b26d8a9142c /anti_spam/anti_spam.py
parent34e772f2297c2bdec3033190534d36ba698c0885 (diff)
update AntiSpamPlugin to py3
Diffstat (limited to 'anti_spam/anti_spam.py')
-rw-r--r--anti_spam/anti_spam.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/anti_spam/anti_spam.py b/anti_spam/anti_spam.py
index f1ee065..d2a3912 100644
--- a/anti_spam/anti_spam.py
+++ b/anti_spam/anti_spam.py
@@ -24,7 +24,7 @@ Block some incoming messages
:license: GPLv3
'''
-import gtk
+from gi.repository import Gtk
from common import ged
from plugins import GajimPlugin
@@ -89,12 +89,12 @@ class AntiSpamPluginConfigDialog(GajimPluginConfigDialog):
def init(self):
self.GTK_BUILDER_FILE_PATH = self.plugin.local_file_path(
'config_dialog.ui')
- self.xml = gtk.Builder()
+ self.xml = Gtk.Builder()
self.xml.set_translation_domain('gajim_plugins')
self.xml.add_objects_from_file(self.GTK_BUILDER_FILE_PATH,
['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(
'block_pubsub_messages_checkbutton')