Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/chat/Chat.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-06-16 20:29:51 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-06-16 20:29:51 (GMT)
commit0363ed5457e96ef8527a950f2eed95a60d24e13c (patch)
tree6c257b5e0a56f1eef651cbcc6a0574214553d13f /sugar/chat/Chat.py
parent99d26223e50a303aa0a44e38a5e758161ac94cbb (diff)
More work on chats
Diffstat (limited to 'sugar/chat/Chat.py')
-rw-r--r--sugar/chat/Chat.py19
1 files changed, 7 insertions, 12 deletions
diff --git a/sugar/chat/Chat.py b/sugar/chat/Chat.py
index c06bbc1..f6e7270 100644
--- a/sugar/chat/Chat.py
+++ b/sugar/chat/Chat.py
@@ -17,17 +17,15 @@ import richtext
PANGO_SCALE = 1024 # Where is this defined?
-class Chat(gtk.Window):
+class Chat(gtk.VBox):
SERVICE_TYPE = "_olpc_chat._tcp"
SERVICE_PORT = 6100
def __init__(self):
- gtk.Window.__init__(self, gtk.WINDOW_POPUP)
-
- self._stream_writer = None
+ gtk.VBox.__init__(self, False, 6)
- vbox = gtk.VBox(False, 6)
- vbox.set_border_width(12)
+ self._stream_writer = None
+ self.set_border_width(12)
chat_vbox = gtk.VBox()
chat_vbox.set_spacing(6)
@@ -46,21 +44,18 @@ class Chat(gtk.Window):
chat_vbox.pack_start(self._chat_sw)
self._chat_sw.show()
- vbox.pack_start(chat_vbox)
+ self.pack_start(chat_vbox)
chat_vbox.show()
self._editor = ChatEditor()
toolbar = ChatToolbar(self._editor.get_buffer())
- vbox.pack_start(toolbar, False)
+ self.pack_start(toolbar, False)
toolbar.show()
- vbox.pack_start(self._editor, False)
+ self.pack_start(self._editor, False)
self._editor.show()
- self.add(vbox)
- vbox.show()
-
def __get_browser_shell(self):
bus = dbus.SessionBus()
proxy_obj = bus.get_object('com.redhat.Sugar.Browser', '/com/redhat/Sugar/Browser')