diff frontends/src/primitivus/chat.py @ 911:b12706d164d7

primitivus: removed deprecated use of set_focus
author Goffi <goffi@goffi.org>
date Fri, 21 Mar 2014 15:04:03 +0100
parents cd02f5ef30df
children 0a9986452bba
line wrap: on
line diff
--- a/frontends/src/primitivus/chat.py	Fri Mar 21 15:03:56 2014 +0100
+++ b/frontends/src/primitivus/chat.py	Fri Mar 21 15:04:03 2014 +0100
@@ -323,7 +323,7 @@
         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":