aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_artist.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2008-09-22screen: simplified CMD_SCREEN_UPDATE handlersMax Kellermann1-2/+0
Since screen.c has default code for CMD_SCREEN_UPDATE, return 0 from the command handlers and let screen.c do the rest.
2008-09-22screen: don't set list_window->repaintMax Kellermann1-2/+0
Several screens ignore the attribute list_window->repaint. Don't set it there. It will be replaced with a more intelligent repaint algorithm later.
2008-09-21browse: ensure that filelist!=NULLMax Kellermann1-0/+3
There are several places where browser.filelist can become NULL. Catch that everywhere and generate an empty filelist in this case.
2008-09-21screen_artist: check if anything is selectedMax Kellermann1-0/+8
Don't try to call add_query() with no valid selection, this causes a segfault. This usually happens when ncmpc isn't connected.
2008-09-19filelist: provide more functions for working with a filelistMax Kellermann1-9/+4
Avoid direct accesses to the filelist struct, provide an API for that.
2008-09-19filelist: drop "mpdclient" prefixMax Kellermann1-3/+3
The separate filelist library does not depend on mpdclient, so the prefix is superfluous.
2008-09-18screen_browser: moved code to browser_playlist_changed()Max Kellermann1-13/+2
Merge code from all 3 browser screens into one generic browser function.
2008-09-18screen_browser: moved code to screen_browser.cMax Kellermann1-9/+6
Isolate the generic browser code from the directory browser.
2008-09-18screen_browser: added struct screen_browserMax Kellermann1-79/+91
We are going to separate the browser functions from screen_file.c. Move all variables which are going to be needed by this code.
2008-09-18renamed screen_browse.h to screen_browser.hMax Kellermann1-1/+1
2008-09-18screen: removed empty methodsMax Kellermann1-6/+0
Declaring empty methods is of no use. If a method is empty, we should set it to NULL in the screen_functions struct.
2008-09-17screen_artist: fix compilation errorsMax Kellermann1-26/+29
Unfortunately when I fixed the GCC warnings and refactored lots of the code, the "artist" screen was disabled. This patch applies all API changes and fixes all warnings.
2008-09-17code style, indent with tabs IVMax Kellermann1-335/+316
Follow the same code style als MPD itself.
2008-09-17list_window: don't reset *highlight to 0Max Kellermann1-1/+0
Since the list_window code sets highlight to 0 before it calls the list_callback, the callback itself doesn't have to reset the flag.
2008-09-17replaced get_screen_X() with static screen_functions variableMax Kellermann1-20/+12
Compile time initialization saves resources, compared to run-time initialization. Declare all screen_function structs as global variables, and remove all get functions.
2008-09-15include cleanupMax Kellermann1-6/+7
A header should include all headers which he needs. Move local includes on top, and let foo.c include foo.h in the first line, to automatically test its dependencies.
2008-09-15remove unused static functionsMax Kellermann1-2/+2
Also remove some commented code and unused function parameters.
2006-11-11Daniel rocked the houseAndreas Obergrusberger1-0/+34
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@5041 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2005-06-16sort artists and albums (metalist)Kalle Wallin1-0/+18
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@3361 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2005-06-14Added exact_match parameter to mpdclient_filelist_search()Kalle Wallin1-36/+94
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@3357 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2005-06-14Moved list window state code to list_window.cKalle Wallin1-53/+50
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@3353 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2005-06-06Added an experimental artist (browser) screenKalle Wallin1-0/+389
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@3322 09075e82-0dd4-0310-85a5-a0d7c8717e4f