Several fixes for the object type registry and the activity registry.

This commit is contained in:
Tomeu Vizoso
2007-06-12 21:57:49 +02:00
parent cc604e0815
commit 22689ed1da
11 changed files with 106 additions and 76 deletions
+9 -2
View File
@@ -35,11 +35,18 @@ from sugar import env
sys.path.append(env.get_service_path('clipboard'))
from clipboardservice import ClipboardService
from objecttypeservice import ObjectTypeRegistry
logging.info('Starting clipboard service.')
gobject.threads_init()
dbus.glib.threads_init()
app = ClipboardService()
app.run()
clipboard_service = ClipboardService()
object_type_registry = ObjectTypeRegistry()
loop = gobject.MainLoop()
try:
loop.run()
except KeyboardInterrupt:
print 'Ctrl+C pressed, exiting...'