wok diff wicd/stuff/835_834.patch @ rev 15325
Up tcpdump (4.4.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 27 21:59:48 2013 +0000 (2013-09-27) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/wicd/stuff/835_834.patch Fri Sep 27 21:59:48 2013 +0000 1.3 @@ -0,0 +1,43 @@ 1.4 +=== modified file 'curses/curses_misc.py' 1.5 +--- curses/curses_misc.py 2012-11-15 09:26:21 +0000 1.6 ++++ curses/curses_misc.py 2012-11-16 09:22:47 +0000 1.7 +@@ -352,7 +352,7 @@ 1.8 + if urwid.VERSION < (1, 1, 0): 1.9 + self.focus = focus 1.10 + else: 1.11 +- self.focus_position = focus 1.12 ++ self._w.focus_position = focus 1.13 + 1.14 + self.callback = callback 1.15 + self.user_args = user_args 1.16 +@@ -368,7 +368,10 @@ 1.17 + if urwid.VERSION < (1, 1, 0): 1.18 + self.focus = index 1.19 + else: 1.20 +- self.focus_position = index 1.21 ++ try: 1.22 ++ self._w.focus_position = index 1.23 ++ except IndexError: 1.24 ++ pass 1.25 + 1.26 + # API changed between urwid 0.9.8.4 and 0.9.9 1.27 + try: 1.28 +@@ -386,7 +389,7 @@ 1.29 + if urwid.VERSION < (1, 1, 0): 1.30 + index = self.focus 1.31 + else: 1.32 +- index = self.focus_position 1.33 ++ index = self._w.focus_position 1.34 + 1.35 + self.cbox = DynWrap(SelText([self.list[index]+self.DOWN_ARROW]), 1.36 + attrs=self.attrs,focus_attr=self.focus_attr) 1.37 +@@ -434,7 +437,7 @@ 1.38 + if urwid.VERSION < (1, 1, 0): 1.39 + return None, self.focus 1.40 + else: 1.41 +- return None, self.focus_position 1.42 ++ return None, self._w.focus_position 1.43 + 1.44 + def get_sensitive(self): 1.45 + return self.cbox.get_sensitive() 1.46 +