aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_play.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2008-09-15use GArray for playlist instead of GListMax Kellermann1-10/+10
Using a doubly linked list for the local playlist copy is a huge waste of both memory and CPU cycles. Use GArray instead of GList, which is much faster in this case.
2008-09-15fix unused parameter warningsMax Kellermann1-9/+10
Add the "unused" attribute to all function parameters which are indeed going to be ignored.
2008-09-15use size_t and unsigned integersMax Kellermann1-9/+10
2008-09-15fix shadow warningsMax Kellermann1-6/+6
Rename local variables and function parameters, so they don't shadow global variables.
2008-09-15include cleanupMax Kellermann1-7/+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-15fix function prototypesMax Kellermann1-8/+11
Add missing prototypes, and fix wrong prototypes. Convert lots of functions to "static" when they are only used within the current source file.
2008-09-15const pointersMax Kellermann1-2/+2
Convert pointers to const whenever it is possible. Fixes all those -Wconst warnings.
2008-09-15code style, indent with tabsMax Kellermann1-208/+184
Follow the same code style als MPD itself. This patch only fixes parts of the code which are going to be touched in the following bunch of patches, i.e. there will be more "code style" patches in the future.
2008-09-15remove unused static functionsMax Kellermann1-1/+1
Also remove some commented code and unused function parameters.
2007-08-26Removed nested functionsAndreas Obergrusberger1-66/+112
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@6811 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2005-06-14Dont include panel.hKalle Wallin1-1/+0
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@3354 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2005-06-03Added a "hide cursor" feature #0000417Kalle Wallin1-0/+13
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@3307 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2005-02-13Enable playlist saving on the browse screenKalle Wallin1-5/+6
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@2949 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-12-13Fixed abort (Ctrl-G) handling in the save playlist promptKalle Wallin1-1/+2
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@2794 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-11-15Added a search screenKalle Wallin1-1/+1
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@2668 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-07-13Use glib's str functions (g_strlcat, g_strlcpy, g_snprintf, g_strdup_vprintf)Kalle Wallin1-3/+4
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1868 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-07-02Added basic ncurses mouse supportKalle Wallin1-0/+43
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1770 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-07-02Make shure the list scrolls when moving a songKalle Wallin1-0/+2
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1767 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-07-01Removed the trim() function, using glib's g_strstrip() insteadKalle Wallin1-1/+1
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1751 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-22Clear the main window on CMD_SCREEN_UPDATEKalle Wallin1-0/+3
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1617 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-20Added _utf8 suffix to all functions that take utf8 arguments.Kalle Wallin1-5/+1
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1587 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-19Make shure the list window is repainted after a completion list is displayedKalle Wallin1-6/+11
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1569 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-19added type argument to gcmp_list_from_path()Kalle Wallin1-7/+47
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1567 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-18Added a add command (for adding files or urls to the playlist)Kalle Wallin1-0/+78
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1554 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-16libmpdclient updated (r1507) - added path to mpdclient_cmd_db_update() Kalle Wallin1-0/+1
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1508 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-15git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1497 ↵Kalle Wallin1-10/+46
09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-14Major cleanup of the mpd client code (mpc->mpdclient)Kalle Wallin1-185/+70
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1481 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-09Updated the get_title callback.Kalle Wallin1-2/+7
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1421 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-08Display the the entire url when a streams metadata==NULLKalle Wallin1-1/+1
s no metadata, can you display the git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1394 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-07Display stream names in the list window.Kalle Wallin1-2/+4
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1382 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-06i18n - ncmpc is now bilingual (sv)Kalle Wallin1-1/+1
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1349 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-05Added initial i18n supportKalle Wallin1-11/+7
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1346 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-05Changed directory layout (for future use of gettext)Kalle Wallin1-0/+0
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1342 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-05-07Added support for moving songs in a playlist (move-up,move-down).Kalle Wallin1-4/+62
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@936 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-23Reverted back to r875Kalle Wallin1-2/+0
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@882 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-23Make shure the cursor stays on the same row when deleting.Kalle Wallin1-4/+4
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@879 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-22Changed the way songs are added/deleted from playlist (#0000220).Kalle Wallin1-17/+81
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@875 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-21Fixed resize handling (SIGWINCH).Kalle Wallin1-0/+9
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@871 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-19Major cleanup. The goal of this is to simplify addition of "screens".Kalle Wallin1-27/+87
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@832 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-14Highlight and center current track even when paused.Kalle Wallin1-5/+8
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@759 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-05Added support for (auto) center/focus playlists.Kalle Wallin1-0/+42
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@604 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-31Only delete a song if it exits.Kalle Wallin1-5/+8
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@557 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-28We now allocate and free memory with glibKalle Wallin1-3/+3
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@526 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-27Include "config.h" before "support.h"Kalle Wallin1-1/+45
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@517 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-26Replaced wrefresh() with wnoutrefresh().Kalle Wallin1-2/+2
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@499 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-26Added reversed and wrapped list search (find).Kalle Wallin1-21/+8
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@497 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-24Moved list window fuctions to list_window.c. Kalle Wallin1-33/+6
Added function list_window_cmd() for basic commands (movment). git-svn-id: https://svn.musicpd.org/ncmpc/trunk@454 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-23Use screen_status_printf() instead of screen_status_message().Kalle Wallin1-3/+2
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@418 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-22Added find (in page) functionality.Kalle Wallin1-5/+26
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@369 09075e82-0dd4-0310-85a5-a0d7c8717e4f