primitivus: removed deprecated use of set_focus

This commit is contained in:
Goffi 2014-03-21 15:04:03 +01:00
commit 7feab1c6d9

View file

@ -323,7 +323,7 @@ class Chat(urwid.WidgetWrap, QuickChat):
if self.text_list.get_focus()[1] == len(self.content) - 2:
#we don't change focus if user is not at the bottom
#as that mean that he is probably watching discussion history
self.text_list.set_focus(len(self.content) - 1)
self.text_list.focus_position = len(self.content) - 1
self.host.redraw()
if not self.host.x_notify.hasFocus():
if self.type == "one2one":