Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/PeopleWindow.py
blob: 60e76a7c2125fd70afc84220361eb3eff8d2c8f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import gtk

from sugar.chat.ActivityChat import ActivityChat
from PresenceView import PresenceView

class PeopleWindow(gtk.Window):
	def __init__(self, shell, activity):
		gtk.Window.__init__(self)

		self.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_DIALOG)
		self.set_default_size(620, 440)
		self.connect("delete_event", lambda w, e: w.hide_on_delete())

		hbox = gtk.HBox(False, 12)
		hbox.set_border_width(12)

		presence_view = PresenceView(shell, activity)
		hbox.pack_start(presence_view, False)
		presence_view.show()

		self._chat = ActivityChat(activity)
		hbox.pack_start(self._chat)
		self._chat.show()

		self.add(hbox)
		hbox.show()

	def share(self):
		self._chat.share()