UI Elements do not go through register_factory
[gregoa/zavai.git] / plugins / 99_debug.py
index 6ddc17621f8359db2999dbafc1307cd287d369fd..fd34c03edd1c1697f969d31b9ad3cf03ffa2c72a 100644 (file)
@@ -30,4 +30,5 @@ class Quitter(gtk.Label, zavai.Applet):
         gtk.main_quit()
 
 def init(conf = None, registry = None, **kw):
-    registry.register_factory("menu.main.debug.quit", Quitter, _("Quit"))
+    name = "menu.main.debug.quit"
+    registry.register(name, Quitter(registry, name), _("Quit"))