diff options
author | Kalle Wallin <kaw@linux.se> | 2004-06-18 14:21:53 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-06-18 14:21:53 +0000 |
commit | 0a40624443576a8929d9f2370d52248cab9245fe (patch) | |
tree | a4b8a0dc778f58131edba0aeda6e6e9100ebe1a4 /src/screen_utils.c | |
parent | 5661324c51dd3af2bd3e3695b09502b65222f3db (diff) | |
download | mpd-0a40624443576a8929d9f2370d52248cab9245fe.tar.gz mpd-0a40624443576a8929d9f2370d52248cab9245fe.tar.xz mpd-0a40624443576a8929d9f2370d52248cab9245fe.zip |
Added completion stuff
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1556 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/screen_utils.c')
-rw-r--r-- | src/screen_utils.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/screen_utils.c b/src/screen_utils.c index 398fdd9fe..16359c6ea 100644 --- a/src/screen_utils.c +++ b/src/screen_utils.c @@ -159,4 +159,26 @@ screen_find(screen_t *screen, return 0; } +void +screen_display_completion_list(screen_t *screen, GList *list) +{ + WINDOW *w = screen->main_window.w; + gint y=0; + colors_use(w, COLOR_STATUS_ALERT); + while( y<screen->main_window.rows ) + { + wmove(w, y++, 0); + wclrtoeol(w); + if( list ) + { + gchar *tmp = g_strdup(list->data); + waddstr(w, basename(tmp)); + g_free(tmp); + list = list->next; + } + } + wrefresh(w); + doupdate(); + colors_use(w, COLOR_LIST); +} |