From 85e405c1eb7ad6ffc4e4932bfa98ccc35516473e Mon Sep 17 00:00:00 2001 From: Matti Niemenmaa Date: Mon, 12 Jan 2015 20:42:42 +0100 Subject: wicd: fix wicd-curses with new urwid MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- pkgs/tools/networking/wicd/default.nix | 1 + pkgs/tools/networking/wicd/urwid-api-update.patch | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/tools/networking/wicd/urwid-api-update.patch (limited to 'pkgs/tools') diff --git a/pkgs/tools/networking/wicd/default.nix b/pkgs/tools/networking/wicd/default.nix index a32654696be7..d4463b42ec64 100644 --- a/pkgs/tools/networking/wicd/default.nix +++ b/pkgs/tools/networking/wicd/default.nix @@ -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? diff --git a/pkgs/tools/networking/wicd/urwid-api-update.patch b/pkgs/tools/networking/wicd/urwid-api-update.patch new file mode 100644 index 000000000000..a794f6caaeee --- /dev/null +++ b/pkgs/tools/networking/wicd/urwid-api-update.patch @@ -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 -- cgit 1.4.1