wicd: fix wicd-curses with new urwid

See e.g. https://bugzilla.redhat.com/show_bug.cgi?id=894646 — without
this patch, wicd-curses throws an AttributeError on startup. The patch
is a cut-down version of the one added there by Pavel Zhukov.
This commit is contained in:
Matti Niemenmaa 2015-01-12 20:42:42 +01:00 committed by Cray Elliott
parent 29b3353a9e
commit 85e405c1eb
2 changed files with 22 additions and 0 deletions

View File

@ -20,6 +20,7 @@ stdenv.mkDerivation rec {
./dhclient.patch
./fix-app-icon.patch
./fix-gtk-issues.patch
./urwid-api-update.patch
];
# Should I be using pygtk's propogated build inputs?

View File

@ -0,0 +1,21 @@
--- a/curses/curses_misc.py
+++ a/curses/curses_misc.py
@@ -358,6 +358,19 @@ class ComboBox(urwid.WidgetWrap):
self.parent = None
self.ui = None
self.row = None
+
+ @property
+ def focus(self):
+ return self._focus
+
+ @focus.setter
+ def focus(self, index):
+ self._focus = index
+
+ @focus.deleter
+ def focus(self):
+ del self._focus
+
def set_list(self,list):
self.list = list