changeset 168:a2655a0a4eac

Primitivus: 2 bugs fixes - fixed bad focus when using removeWindow - UnselectAll was incomplete in contactList
author Goffi <goffi@goffi.org>
date Mon, 09 Aug 2010 22:06:56 +0800
parents 6fd053c99421
children 06985b6ad23a
files frontends/primitivus/contact_list.py frontends/primitivus/primitivus
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/primitivus/contact_list.py	Mon Aug 09 21:58:28 2010 +0800
+++ b/frontends/primitivus/contact_list.py	Mon Aug 09 22:06:56 2010 +0800
@@ -119,6 +119,7 @@
 
     def unselectAll(self):
         """Unselect all contacts"""
+        self.selected = None
         for widget in self.frame.body.body:
             if widget.__class__ == custom_widgets.SelectableText:
                 widget.setState(False, invisible=True)
--- a/frontends/primitivus/primitivus	Mon Aug 09 21:58:28 2010 +0800
+++ b/frontends/primitivus/primitivus	Mon Aug 09 22:06:56 2010 +0800
@@ -257,6 +257,7 @@
         assert(len(self.center_part.widget_list)<=2)
         wid_idx = len(self.center_part.widget_list)-1
         self.center_part.widget_list[wid_idx] = urwid.Filler(urwid.Text(''))
+        self.center_part.set_focus(0)
         self.redraw()
     
     def contactSelected(self, contact_list):