--- zim/zim/plugins/sourceview.py 2016-07-21 22:28:42.000000000 -0700 +++ zim-0.65.orig/zim/plugins/sourceview.py 2015-10-14 10:21:43.000000000 -0700 @@ -80,12 +68,11 @@ @classmethod def check_dependencies(klass): - check = gtk is None or not gtksourceview2 is None + check = not gtksourceview2 is None return check, [('gtksourceview2', check, True)] def __init__(self, config=None): PluginClass.__init__(self, config) - ObjectManager.register_object(OBJECT_TYPE, self.create_object) # register the plugin in the main init so it works for a non-gui export self.connectto(self.preferences, 'changed', self.on_preferences_changed) def create_object(self, attrib, text): @@ -116,7 +103,7 @@ def __init__(self, plugin, window): WindowExtension.__init__(self, plugin, window) - #ObjectManager.register_object(OBJECT_TYPE, self.plugin.create_object) already registered in the main init + ObjectManager.register_object(OBJECT_TYPE, self.plugin.create_object) # XXX use pageview attribute instead of singleton def teardown(self):