Commit c4f3e512 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

scroll is back

conversation is not editable
parent c20266a5
......@@ -387,11 +387,14 @@ def new_user(self, user):
vp.set_position(170)
sw = gtk.ScrolledWindow()
sw.set_shadow_type(gtk.SHADOW_IN)
vp.add1(sw)
sw.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
tv = gtk.TextView()
tv.set_wrap_mode(gtk.WRAP_WORD)
sw.add_with_viewport(tv)
tv.set_editable(False)
tv.set_cursor_visible(False)
sw.add(tv)
self.widgets[user.jid]['conversation'] = tv
buffer = tv.get_buffer()
end_iter = buffer.get_end_iter()
......@@ -407,11 +410,12 @@ def new_user(self, user):
self.tagStatus[user.jid].set_property("foreground", color)
sw = gtk.ScrolledWindow()
sw.set_shadow_type(gtk.SHADOW_IN)
vp.add2(sw)
sw.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
tv = gtk.TextView()
tv.set_wrap_mode(gtk.WRAP_WORD)
sw.add_with_viewport(tv)
sw.add(tv)
self.widgets[user.jid]['message'] = tv
tv.grab_focus()
tv.connect('key_press_event', self.on_msg_key_press_event)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment