diff options
author | younix <web2p10@wemelug.de> | 2010-11-04 13:46:28 +0100 |
---|---|---|
committer | younix <web2p10@wemelug.de> | 2010-11-04 13:46:28 +0100 |
commit | 8f432c6da4374265675541779ae4ae648e07df5f (patch) | |
tree | 0a5c68dbe2e6096bf2bb0fe23bbe4f89bd85d919 /src/interface.c | |
parent | f61c045172252232f58dafa6208f7afe16487b82 (diff) | |
parent | 3d25681eb65376f35a051196dfd316c6fcbc7fa9 (diff) | |
download | pa-sink-ctl-8f432c6da4374265675541779ae4ae648e07df5f.tar.gz pa-sink-ctl-8f432c6da4374265675541779ae4ae648e07df5f.tar.bz2 pa-sink-ctl-8f432c6da4374265675541779ae4ae648e07df5f.zip |
Merge branch 'master' of gitorious.org:pa-sink-ctl/pa-sink-ctl
Diffstat (limited to 'src/interface.c')
-rw-r--r-- | src/interface.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interface.c b/src/interface.c index 11ba6be..83f6e39 100644 --- a/src/interface.c +++ b/src/interface.c @@ -16,6 +16,7 @@ #define H_MSG_BOX 3 extern pa_context* context; +extern gboolean context_ready; static WINDOW *menu_win; static WINDOW *msg_win; @@ -167,6 +168,9 @@ gboolean get_input(gpointer data) gint c; gboolean volume_increment = TRUE; + if (!context_ready) + return FALSE; + c = wgetch(menu_win); switch (c) { case 'k': |