]> git.pld-linux.org Git - packages/wicd.git/blob - urwid-fix2.patch
- updated gettext BR
[packages/wicd.git] / urwid-fix2.patch
1 === modified file 'curses/curses_misc.py'
2 --- curses/curses_misc.py       2012-11-15 09:26:21 +0000
3 +++ curses/curses_misc.py       2012-11-16 09:22:47 +0000
4 @@ -352,7 +352,7 @@
5          if urwid.VERSION < (1, 1, 0):
6              self.focus = focus
7          else:
8 -            self.focus_position = focus
9 +            self._w.focus_position = focus
10  
11          self.callback = callback
12          self.user_args = user_args
13 @@ -368,7 +368,10 @@
14          if urwid.VERSION < (1, 1, 0):
15              self.focus = index
16          else:
17 -            self.focus_position = index
18 +            try:
19 +                self._w.focus_position = index
20 +            except IndexError:
21 +                pass
22  
23          # API changed between urwid 0.9.8.4 and 0.9.9
24          try:
25 @@ -386,7 +389,7 @@
26          if urwid.VERSION < (1, 1, 0):
27              index = self.focus
28          else:
29 -            index = self.focus_position
30 +            index = self._w.focus_position
31  
32          self.cbox = DynWrap(SelText([self.list[index]+self.DOWN_ARROW]),
33                  attrs=self.attrs,focus_attr=self.focus_attr)
34 @@ -434,7 +437,7 @@
35              if urwid.VERSION < (1, 1, 0):
36                  return None, self.focus
37              else:
38 -                return None, self.focus_position
39 +                return None, self._w.focus_position
40  
41      def get_sensitive(self):
42          return self.cbox.get_sensitive()
43
This page took 0.063082 seconds and 3 git commands to generate.