Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
910:9754c0ebadba | 911:b12706d164d7 |
---|---|
321 if msg == "": | 321 if msg == "": |
322 return | 322 return |
323 if self.text_list.get_focus()[1] == len(self.content) - 2: | 323 if self.text_list.get_focus()[1] == len(self.content) - 2: |
324 #we don't change focus if user is not at the bottom | 324 #we don't change focus if user is not at the bottom |
325 #as that mean that he is probably watching discussion history | 325 #as that mean that he is probably watching discussion history |
326 self.text_list.set_focus(len(self.content) - 1) | 326 self.text_list.focus_position = len(self.content) - 1 |
327 self.host.redraw() | 327 self.host.redraw() |
328 if not self.host.x_notify.hasFocus(): | 328 if not self.host.x_notify.hasFocus(): |
329 if self.type == "one2one": | 329 if self.type == "one2one": |
330 self.host.x_notify.sendNotification(_("Primitivus: %s is talking to you") % from_jid) | 330 self.host.x_notify.sendNotification(_("Primitivus: %s is talking to you") % from_jid) |
331 elif self.getUserNick().lower() in msg.lower(): | 331 elif self.getUserNick().lower() in msg.lower(): |