diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-08-09 16:29:33 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-08-09 16:29:33 (GMT) |
commit | 0dcaf314f7933a6852bd45ea1d6705bfb5659443 (patch) | |
tree | 96cf6753b900524c06146bfede49005206edb76e /shell/Shell.py | |
parent | 95d9b7fe8e7cbde413ef5f937cc1dda2b7fa8813 (diff) |
Several fixes and cleanups
Diffstat (limited to 'shell/Shell.py')
-rwxr-xr-x | shell/Shell.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/Shell.py b/shell/Shell.py index a239809..7b8074a 100755 --- a/shell/Shell.py +++ b/shell/Shell.py @@ -17,6 +17,7 @@ from sugar.presence.PresenceService import PresenceService from ActivityHost import ActivityHost from ChatController import ChatController from sugar.activity import ActivityFactory +from sugar.activity import Activity class ShellDbusService(dbus.service.Object): def __init__(self, shell, bus_name): @@ -73,8 +74,7 @@ class Shell: def __window_opened_cb(self, screen, window): if window.get_window_type() == wnck.WINDOW_NORMAL: - xid = window.get_xid() - self._hosts[xid] = ActivityHost(self, xid) + self._hosts[window.get_xid()] = ActivityHost(self, window) def __window_closed_cb(self, screen, window): if window.get_window_type() == wnck.WINDOW_NORMAL: |