mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 11:05:14 +00:00
wicd: wicd-curses fix for ...
... AttributeError: 'Screen' object has no attribute 'get_input_nonblocking' fixes #10281
This commit is contained in:
parent
44a6a5ed34
commit
3d932ba135
@ -24,6 +24,7 @@ stdenv.mkDerivation rec {
|
||||
./fix-app-icon.patch
|
||||
./fix-gtk-issues.patch
|
||||
./urwid-api-update.patch
|
||||
./fix-curses.patch
|
||||
];
|
||||
|
||||
# Should I be using pygtk's propogated build inputs?
|
||||
|
15
pkgs/tools/networking/wicd/fix-curses.patch
Normal file
15
pkgs/tools/networking/wicd/fix-curses.patch
Normal file
@ -0,0 +1,15 @@
|
||||
--- a/curses/wicd-curses.py 2015-01-27 22:35:25.414781192 -0300
|
||||
+++ b/curses/wicd-curses.py 2015-01-28 01:13:48.078904587 -0300
|
||||
@@ -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)
|
Loading…
Reference in New Issue
Block a user