diff options
author | Max Kellermann <max@duempel.org> | 2008-09-18 01:49:53 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-18 01:49:53 +0200 |
commit | f0aa88e5c18de0b1e4f5d85dd5c3ae5d9be76bc3 (patch) | |
tree | ead2fd90d2a19b39c5e1a7a0942df9be77c02831 /src/screen_utils.c | |
parent | e54533bd1fad95b149e87918dffca06b0afb5074 (diff) | |
download | mpd-f0aa88e5c18de0b1e4f5d85dd5c3ae5d9be76bc3.tar.gz mpd-f0aa88e5c18de0b1e4f5d85dd5c3ae5d9be76bc3.tar.xz mpd-f0aa88e5c18de0b1e4f5d85dd5c3ae5d9be76bc3.zip |
use the glib main event loop
This big patch replaces our custom main loop with the event based glib
main loop. This has several advantages: we can make all the tiny code
bits in the main loop independent from each others, we can add
additional file descriptors for polling (e.g. the mpdclient socket).
We don't need the ncurses timeout() anymore, because glib will poll
stdin for us.
Diffstat (limited to 'src/screen_utils.c')
-rw-r--r-- | src/screen_utils.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/screen_utils.c b/src/screen_utils.c index 311c744af..21da92e1a 100644 --- a/src/screen_utils.c +++ b/src/screen_utils.c @@ -58,7 +58,6 @@ screen_getch(WINDOW *w, const char *prompt) echo(); curs_set(1); - timeout(-1); while( (key=my_wgetch(w)) == ERR ) ; @@ -71,7 +70,6 @@ screen_getch(WINDOW *w, const char *prompt) noecho(); curs_set(0); - timeout(SCREEN_TIMEOUT); return key; } |