diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-07-13 08:47:36 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-07-13 08:47:36 (GMT) |
commit | cc66d7d4df08a8654bfe2050eeea6575ffe2ddac (patch) | |
tree | e90c22921cc810bfbe378bb77c1727a66c736e7a /shell/PeopleWindow.py | |
parent | 326f372f54d812044a1d20ce41dbc306371af4d8 (diff) |
Merge presence window and chat in one window
Diffstat (limited to 'shell/PeopleWindow.py')
-rw-r--r-- | shell/PeopleWindow.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/shell/PeopleWindow.py b/shell/PeopleWindow.py new file mode 100644 index 0000000..ee16352 --- /dev/null +++ b/shell/PeopleWindow.py @@ -0,0 +1,28 @@ +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_skip_taskbar_hint(True) + self.set_decorated(False) + self.set_default_size(620, 460) + + hbox = gtk.HBox(False, 12) + hbox.set_border_width(12) + + presence_view = PresenceView(shell) + presence_view.set_activity(activity) + hbox.pack_start(presence_view, False) + presence_view.show() + + chat = ActivityChat(activity) + hbox.pack_start(chat) + chat.show() + + self.add(hbox) + hbox.show() |