Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ActivityHost.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-07-26 10:57:54 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-07-26 10:57:54 (GMT)
commit0947581a113af6eaa3660ae37b2720c4806ab0e8 (patch)
tree5006567bbf0de11ad274a0ff44ca18b244433196 /shell/ActivityHost.py
parent57cc6a303c6c062c7af5544fc9469f80d92a808f (diff)
A bunch of fixes...
Diffstat (limited to 'shell/ActivityHost.py')
-rw-r--r--shell/ActivityHost.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/shell/ActivityHost.py b/shell/ActivityHost.py
index 6f3b2d1..540d1e2 100644
--- a/shell/ActivityHost.py
+++ b/shell/ActivityHost.py
@@ -2,9 +2,11 @@ import gtk
import dbus
from sugar.activity import Activity
+from PeopleWindow import PeopleWindow
class ActivityHost:
- def __init__(self, xid):
+ def __init__(self, shell, xid):
+ self._shell = shell
self._xid = xid
bus = dbus.SessionBus()
@@ -16,11 +18,13 @@ class ActivityHost:
self._id = self._activity.get_id()
self._default_type = self._activity.get_default_type()
self._window = gtk.gdk.window_foreign_new(xid)
+ self._people_window = PeopleWindow(shell, self)
def get_id(self):
return self._id
def share(self):
+ self._people_window.share()
self._activity.share()
def get_shared(self):
@@ -29,6 +33,9 @@ class ActivityHost:
def get_default_type(self):
return self._default_type
+ def show_people(self):
+ self.show_dialog(self._people_window)
+
def show_dialog(self, dialog):
dialog.show()
dialog.window.set_transient_for(self._window)