diff frontends/src/primitivus/contact_list.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 084b52afdceb
children 6f1e03068b5f
line wrap: on
line diff
--- a/frontends/src/primitivus/contact_list.py	Fri Mar 21 15:03:56 2014 +0100
+++ b/frontends/src/primitivus/contact_list.py	Fri Mar 21 15:04:03 2014 +0100
@@ -54,7 +54,7 @@
         self.frame.body = self.__buildList()
         if position:
             try:
-                self.frame.body.set_focus(position)
+                self.frame.body.focus_position = position
             except IndexError:
                 pass
         self.host.redraw()
@@ -101,7 +101,7 @@
                     continue
                 # there's sometimes a leading space
                 if text.strip() == value.strip():
-                    self.frame.body.set_focus(idx)
+                    self.frame.body.focus_position = idx
                     if select:
                         self.__contactClicked(widget, True)
                     return