summaryrefslogtreecommitdiff
path: root/gnu/packages/patches
diff options
context:
space:
mode:
authorMark H Weaver <mhw@netris.org>2015-02-05 23:47:03 -0500
committerMark H Weaver <mhw@netris.org>2015-02-06 15:26:56 -0500
commit7747c4ca3d1de722ae6c8b59158dc64c98ba93ad (patch)
tree26b9f776632fbefbb58ba66f0eaaa69474037977 /gnu/packages/patches
parentb7921ba5a7651efbb0dedb75cb3dd0840aed041f (diff)
gnu: wicd: Fix curses client to work with urwid 1.3.
* gnu/packages/patches/wicd-urwid-1.3.patch: New file. * gnu-system (dist_patch_DATA): Add it. * gnu/packages/wicd.scm (wicd): Add patch.
Diffstat (limited to 'gnu/packages/patches')
-rw-r--r--gnu/packages/patches/wicd-urwid-1.3.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/gnu/packages/patches/wicd-urwid-1.3.patch b/gnu/packages/patches/wicd-urwid-1.3.patch
new file mode 100644
index 0000000000..1dc47f869b
--- /dev/null
+++ b/gnu/packages/patches/wicd-urwid-1.3.patch
@@ -0,0 +1,18 @@
+Update the wicd-curses client to work with urwid-1.3. Based on a patch from:
+http://technik.blogbasis.net/wicd-curses-fix-fuer-attributeerror-screen-object-no-attribute-get_input_nonblocking-04-12-2014
+
+--- wicd-1.7.3/curses/wicd-curses.py.orig 2014-12-21 14:40:46.000000000 -0500
++++ wicd-1.7.3/curses/wicd-curses.py 2015-02-05 23:41:17.530901204 -0500
+@@ -1153,9 +1153,10 @@
+ if not ui._started:
+ return False
+
+- input_data = ui.get_input_nonblocking()
++ ui.set_input_timeouts(max_wait=0)
++ input_data = ui.get_input()
+ # Resolve any "alarms" in the waiting
+- self.handle_keys(input_data[1])
++ self.handle_keys(input_data)
+
+ # Update the screen
+ canvas = self.frame.render((self.size), True)