Initialize the console

This commit is contained in:
Marco Pesenti Gritti 2006-07-06 16:06:07 +02:00
parent 85ff44db1c
commit 6f9ae0c769
2 changed files with 6 additions and 4 deletions

View File

@ -8,7 +8,6 @@ import gtk
import gobject
from sugar.activity.Activity import Activity
from sugar.LogWriter import LogWriter
from sugar.presence import Service
from sugar.chat.Chat import Chat
from sugar.chat.BuddyChat import BuddyChat
@ -105,9 +104,6 @@ class ChatShell:
chat.connect_to_shell()
return False
log_writer = LogWriter("Chat")
log_writer.start()
chat_shell = ChatShell.get_instance()
chat_shell.start()

View File

@ -8,6 +8,8 @@ import pygtk
pygtk.require('2.0')
import gtk, gobject
from sugar.LogWriter import LogWriter
SHELL_SERVICE_NAME = "com.redhat.Sugar.Shell"
SHELL_SERVICE_PATH = "/com/redhat/Sugar/Shell"
@ -81,7 +83,11 @@ def create(activity_name, service = None, args = None):
def main(activity_name, activity_class):
"""Starts the activity main loop."""
log_writer = LogWriter(activity_name)
log_writer.start()
factory = ActivityFactory(activity_name, activity_class)
gtk.main()
class ActivityDbusService(dbus.service.Object):