summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorMatti Niemenmaa <matti.niemenmaa+git@iki.fi>2015-01-12 20:42:42 +0100
committerCray Elliott <MP2E@archlinux.us>2015-01-13 00:40:51 -0800
commit85e405c1eb7ad6ffc4e4932bfa98ccc35516473e (patch)
tree05a28552147a7b4eebd5807b0e5f5fb34843bdc3 /pkgs/tools
parent29b3353a9e129aa94258132f9f77dc97ad50bf70 (diff)
downloadnixpkgs-85e405c1eb7ad6ffc4e4932bfa98ccc35516473e.tar
nixpkgs-85e405c1eb7ad6ffc4e4932bfa98ccc35516473e.tar.gz
nixpkgs-85e405c1eb7ad6ffc4e4932bfa98ccc35516473e.tar.bz2
nixpkgs-85e405c1eb7ad6ffc4e4932bfa98ccc35516473e.tar.lz
nixpkgs-85e405c1eb7ad6ffc4e4932bfa98ccc35516473e.tar.xz
nixpkgs-85e405c1eb7ad6ffc4e4932bfa98ccc35516473e.tar.zst
nixpkgs-85e405c1eb7ad6ffc4e4932bfa98ccc35516473e.zip
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.
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/networking/wicd/default.nix1
-rw-r--r--pkgs/tools/networking/wicd/urwid-api-update.patch21
2 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/tools/networking/wicd/default.nix b/pkgs/tools/networking/wicd/default.nix
index a32654696be..d4463b42ec6 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 00000000000..a794f6caaee
--- /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