Code

ncmpc.git
13 years agoAUTHORS: add Jonathan Neuschäfer
Max Kellermann [Fri, 22 Jul 2011 10:46:14 +0000 (12:46 +0200)]
AUTHORS: add Jonathan Neuschäfer

13 years agopo: add Polish translation
Krzysztof Krakowiak [Wed, 20 Jul 2011 18:49:15 +0000 (20:49 +0200)]
po: add Polish translation

13 years agompdclient: fix crash after "clear" command
Max Kellermann [Wed, 20 Jul 2011 18:47:23 +0000 (20:47 +0200)]
mpdclient: fix crash after "clear" command

mpdclient_cmd_clear() calls playlist_clear(), which leaves a freed
pointer in c->song.  c->song is now cleared, too.

13 years agoworkaround for libncurses macro warnings
Max Kellermann [Mon, 18 Jul 2011 20:40:22 +0000 (22:40 +0200)]
workaround for libncurses macro warnings

13 years agoscreen_artist: fix variable name typo in assertion
Max Kellermann [Mon, 18 Jul 2011 20:43:18 +0000 (22:43 +0200)]
screen_artist: fix variable name typo in assertion

13 years agoadd missing g_free in error path
Jonathan Neuschäfer [Mon, 18 Jul 2011 10:23:50 +0000 (12:23 +0200)]
add missing g_free in error path

cppcheck detected this little bug.

13 years agopo: update German translation
Christoph Mende [Thu, 23 Jun 2011 08:59:03 +0000 (10:59 +0200)]
po: update German translation

13 years agopo: update Esperanto translation
Aleksej [Thu, 23 Jun 2011 08:58:58 +0000 (10:58 +0200)]
po: update Esperanto translation

13 years agopo: update Chinese translation
Yang Hui [Thu, 23 Jun 2011 08:58:52 +0000 (10:58 +0200)]
po: update Chinese translation

13 years agopo: update Galician translation
Miguel Anxo Bouzada [Thu, 23 Jun 2011 08:58:39 +0000 (10:58 +0200)]
po: update Galician translation

13 years agopo: update Finnish translation
Sami Sankala [Thu, 23 Jun 2011 08:58:31 +0000 (10:58 +0200)]
po: update Finnish translation

13 years agopo: update Czech translation
Zbyněk Schwarz [Thu, 23 Jun 2011 08:58:24 +0000 (10:58 +0200)]
po: update Czech translation

13 years agopo: regenerate ncmpc.pot
Max Kellermann [Thu, 23 Jun 2011 08:54:39 +0000 (10:54 +0200)]
po: regenerate ncmpc.pot

13 years agomain: *settings_name: translate "unknown"
Jonathan Neuschäfer [Wed, 15 Jun 2011 20:01:40 +0000 (22:01 +0200)]
main: *settings_name: translate "unknown"

13 years agomain: don't show (null) as the server name
Jonathan Neuschäfer [Wed, 15 Jun 2011 20:00:24 +0000 (22:00 +0200)]
main: don't show (null) as the server name

With libmpdclient older than version 2.4.0, connection_settings_name()
will return g_strdup(options.host), but options.host can be NULL.

Return g_strdup("localhost") in that case, assuming localhost is
mpd_connection_new's "default host".

13 years agouse glib regex for list_window_jump.
matt [Sat, 2 Apr 2011 17:29:26 +0000 (18:29 +0100)]
use glib regex for list_window_jump.

Compile a single regex search string in list_window_jump instead of
using g_regex_match which compiles a new one each time.

13 years agomain.c: fix compiler warning
matt [Sat, 2 Apr 2011 14:56:36 +0000 (15:56 +0100)]
main.c: fix compiler warning

src/main.c: In function ‘idle_callback’:
src/main.c:385:25: error: variable ‘connection’ set but not used [-Werror=unused-but-set-variable]

13 years agoscreen_find.c: fix backspace bug
matt [Sat, 2 Apr 2011 17:11:25 +0000 (18:11 +0100)]
screen_find.c: fix backspace bug

Use ncurses macros instead of magic numbers.

13 years agompdclient.h: fix the spelling of "occurred"
Jonathan Neuschäfer [Thu, 31 Mar 2011 19:38:57 +0000 (21:38 +0200)]
mpdclient.h: fix the spelling of "occurred"

13 years agofix malloc/free deadlock in signal handler by implementing a signaling pipe for sigco...
Emil Karlson [Fri, 7 Jan 2011 16:43:38 +0000 (17:43 +0100)]
fix malloc/free deadlock in signal handler by implementing a signaling pipe for sigcont and sigwinch signal handlers

13 years agopo: regenerate ncmpc.pot
Max Kellermann [Wed, 5 Jan 2011 20:32:43 +0000 (21:32 +0100)]
po: regenerate ncmpc.pot

Just line number changes.

13 years agopo: 2 minor fixups for Russian
Max Kellermann [Wed, 5 Jan 2011 20:31:31 +0000 (21:31 +0100)]
po: 2 minor fixups for Russian

13 years agopo: update Brazilian Portuguese translation
Jamerson Albuquerque Tiossi [Wed, 5 Jan 2011 20:13:02 +0000 (21:13 +0100)]
po: update Brazilian Portuguese translation

13 years agopo: update Italian translation
Simone Sandri [Wed, 5 Jan 2011 20:12:52 +0000 (21:12 +0100)]
po: update Italian translation

13 years agopo: update Galician translation
Miguel Anxo Bouzada [Wed, 5 Jan 2011 20:12:41 +0000 (21:12 +0100)]
po: update Galician translation

13 years agopo: update French translation
Thibault Févry [Wed, 5 Jan 2011 20:12:32 +0000 (21:12 +0100)]
po: update French translation

13 years agopo: update Spanish translation
Paco Molinero [Wed, 5 Jan 2011 20:12:26 +0000 (21:12 +0100)]
po: update Spanish translation

13 years agopo: update Esperanto translation
Aleksej [Wed, 5 Jan 2011 20:12:17 +0000 (21:12 +0100)]
po: update Esperanto translation

13 years agopo: update German translation
Mathias Gert Hennersdorf [Wed, 5 Jan 2011 20:12:02 +0000 (21:12 +0100)]
po: update German translation

13 years agopo: update Czech translation
Pavel Konkol [Wed, 5 Jan 2011 20:11:37 +0000 (21:11 +0100)]
po: update Czech translation

13 years agopo: update Russian translation
Max Arnold [Wed, 5 Jan 2011 19:49:46 +0000 (20:49 +0100)]
po: update Russian translation

13 years agomain: show real server address in status message
Max Kellermann [Thu, 23 Dec 2010 19:28:42 +0000 (20:28 +0100)]
main: show real server address in status message

Use the new mpd_settings object to determine the real server host
(libmpdclient 2.4).

13 years agoconfigure.ac: require libmpdclient 2.2
Max Kellermann [Thu, 23 Dec 2010 19:30:36 +0000 (20:30 +0100)]
configure.ac: require libmpdclient 2.2

We need a sane LIBMPDCLIENT_CHECK_VERSION macro.

14 years agoModify version string to post-release version 0.19~git
Avuton Olrich [Thu, 23 Sep 2010 01:48:39 +0000 (18:48 -0700)]
Modify version string to post-release version 0.19~git

14 years agoncmpc version 0.18 release-0.18 v0.18
Avuton Olrich [Thu, 23 Sep 2010 01:48:39 +0000 (18:48 -0700)]
ncmpc version 0.18

14 years agopo: regenerate ncmpc.pot
Max Kellermann [Wed, 22 Sep 2010 16:19:44 +0000 (18:19 +0200)]
po: regenerate ncmpc.pot

14 years agoan i18n fix
Jonathan Neuschäfer [Sat, 21 Aug 2010 18:29:23 +0000 (20:29 +0200)]
an i18n fix

14 years agoscreen_artist: respect artist when adding albums
Jonathan Neuschäfer [Sat, 21 Aug 2010 18:26:20 +0000 (20:26 +0200)]
screen_artist: respect artist when adding albums

14 years agopo: update Brazilian Portuguese translation
Guilherme Lindner [Tue, 7 Sep 2010 18:41:00 +0000 (20:41 +0200)]
po: update Brazilian Portuguese translation

14 years agopo: update Hungarian translation
Kiszel Kristóf [Tue, 7 Sep 2010 18:36:38 +0000 (20:36 +0200)]
po: update Hungarian translation

14 years agopo: update Hebrew translation
Itai Kloog [Tue, 7 Sep 2010 18:35:40 +0000 (20:35 +0200)]
po: update Hebrew translation

14 years agodoc: Updated manpage. sh/next
Sebastian Harl [Fri, 30 Jul 2010 12:25:06 +0000 (14:25 +0200)]
doc: Updated manpage.

Added -m/-M options; fixed -S/--no-splash option.

As reported by Martin Hradil in Debian bug #589660.

14 years agoscreen_song: show song range
Max Kellermann [Sun, 25 Jul 2010 12:48:31 +0000 (14:48 +0200)]
screen_song: show song range

14 years agoscreen_artist: tracks w/o album tag != all tracks
Jonathan Neuschäfer [Wed, 14 Jul 2010 14:33:26 +0000 (16:33 +0200)]
screen_artist: tracks w/o album tag != all tracks

The `album' variable used to store a pointer to an empty string, which was
somewhere in memory, for the virtual album `All tracks', but this didn't allow
seeing all tracks without an album tag as one album.
Now, the address of the char array `ALL_TRACKS' is assigned to `album', when
`All Tracks' are viewed.

14 years agooptions.c: Read mpd host from environment if not specified.
Daniel Friesel [Fri, 30 Apr 2010 17:05:11 +0000 (19:05 +0200)]
options.c: Read mpd host from environment if not specified.

This fixes the "Connecting to localhost" message if "MPD_HOST=mpd ncmpc" is used.

14 years agolyrics/leoslyrics: don't print backtrace on HTTP failure
Anthoine Bourgeois [Wed, 21 Jul 2010 06:02:09 +0000 (08:02 +0200)]
lyrics/leoslyrics: don't print backtrace on HTTP failure

14 years agopo: update German translation
Mathias Gert Hennersdorf [Wed, 21 Jul 2010 05:56:11 +0000 (07:56 +0200)]
po: update German translation

14 years agopo: update Norwegian Bokmal translation
Mathias Bøhn Grytemark [Wed, 21 Jul 2010 05:44:24 +0000 (07:44 +0200)]
po: update Norwegian Bokmal translation

14 years agoscreen_help: remove CMD_SCREEN_SONG if song screen is disabled
Ihar Hrachyshka [Wed, 21 Jul 2010 05:43:01 +0000 (07:43 +0200)]
screen_help: remove CMD_SCREEN_SONG if song screen is disabled

This fixes a NULL pointer dereference, caused by
get_key_names(CMD_SCREEN_SONG)==NULL.

14 years agoMakefile.am: add GLIB_LIBS to _LDADD
Kacper Kowalik [Wed, 14 Jul 2010 06:10:04 +0000 (08:10 +0200)]
Makefile.am: add GLIB_LIBS to _LDADD

Adding GLIB_LIBS to _LDFLAGS instead of _LDADD lead to build error
when using -Wl,--as-needed.

14 years agopo: update Spanish translation
Luis Miguel Domínguez Peinado [Thu, 1 Jul 2010 07:27:43 +0000 (09:27 +0200)]
po: update Spanish translation

14 years agopo: added Italian translation
Luis Miguel Domínguez Peinado [Thu, 1 Jul 2010 07:20:35 +0000 (09:20 +0200)]
po: added Italian translation

14 years agopo: update Galician translation
Miguel Anxo Bouzada [Thu, 1 Jul 2010 07:25:59 +0000 (09:25 +0200)]
po: update Galician translation

14 years agoModify version string to post-release version 0.18~git
Avuton Olrich [Wed, 23 Jun 2010 01:13:01 +0000 (18:13 -0700)]
Modify version string to post-release version 0.18~git

14 years agoncmpc version 0.17 release-0.17 v0.17
Avuton Olrich [Wed, 23 Jun 2010 01:13:01 +0000 (18:13 -0700)]
ncmpc version 0.17

14 years agopo: updated Swedish translation
Rickard Närström [Sat, 19 Jun 2010 15:36:26 +0000 (17:36 +0200)]
po: updated Swedish translation

14 years agopo: updated Slovak translation
Roman Horník [Sat, 19 Jun 2010 15:31:01 +0000 (17:31 +0200)]
po: updated Slovak translation

14 years agopo: added Finnish translation
Katja Viljakainen [Sat, 19 Jun 2010 15:27:53 +0000 (17:27 +0200)]
po: added Finnish translation

14 years agopo: updated Czech translation
Pavel Konkol [Sat, 19 Jun 2010 15:26:24 +0000 (17:26 +0200)]
po: updated Czech translation

14 years agopo: regenerate ncmpc.pot
Max Kellermann [Sat, 19 Jun 2010 15:25:08 +0000 (17:25 +0200)]
po: regenerate ncmpc.pot

14 years ago20-lyricwiki.rb: recode recieved lyrics
Jonathan Neuschäfer [Wed, 26 May 2010 21:13:12 +0000 (23:13 +0200)]
20-lyricwiki.rb: recode recieved lyrics

The lyrics are recieved in Latin1, but UTF-8 is needed.

14 years agoscreen_browser: check for error before adding song to playlist
Max Kellermann [Sat, 19 Jun 2010 11:05:02 +0000 (13:05 +0200)]
screen_browser: check for error before adding song to playlist

The function enqueue_and_play() may cause an assertion failure,
because it evaluates the filelist_entry object after
mpdclient_get_connection() call.  However, mpdclient_get_connection() may
indirectly invalidate the filelist_entry object, when it sees that the
connection has become invalid; it will return a NULL connection then.
This results in an assertion failure or a segmentation fault.

14 years agoconfigure.ac: disable -Wdeclaration-after-statement
Max Kellermann [Sat, 19 Jun 2010 10:58:22 +0000 (12:58 +0200)]
configure.ac: disable -Wdeclaration-after-statement

ncmpc requires a C99 compliant compiler, so let's allow this C99
extension, too.

14 years agoscreen_lyrics: handle the spacebar
Jonathan Neuschäfer [Sat, 24 Apr 2010 09:13:19 +0000 (10:13 +0100)]
screen_lyrics: handle the spacebar

screen_help says that the lyrics can be reloaded using the spacebar
(CMD_SELECT). This patch implements the documented behavior.

14 years agoscreen_lyrics: some cleanup
Jonathan Neuschäfer [Sat, 24 Apr 2010 09:01:23 +0000 (10:01 +0100)]
screen_lyrics: some cleanup

14 years agoscreen_queue: fix range selection check on "shuffle"
Max Kellermann [Tue, 20 Apr 2010 20:02:54 +0000 (22:02 +0200)]
screen_queue: fix range selection check on "shuffle"

When list_window_get_range() was changed to become more robust, its
return value changed when no range was selected.  This patch makes
CMD_SHUFFLE assume that range selection is disabled when only one song
is selected, and shuffling one song doesn't make sense anyway.

14 years agopo: updated Dutch translation
Tom Postma [Mon, 5 Apr 2010 17:18:46 +0000 (19:18 +0200)]
po: updated Dutch translation

14 years agoMake delete_lyr_hd usable
Jonathan Neuschäfer [Sat, 3 Apr 2010 19:35:36 +0000 (21:35 +0200)]
Make delete_lyr_hd usable

14 years agoscreen_lyrics.c: Add function delete_lyr_hd
Jonathan Neuschäfer [Sat, 3 Apr 2010 19:35:35 +0000 (21:35 +0200)]
screen_lyrics.c: Add function delete_lyr_hd

14 years agoscreen_lyrics.c: wrapped some duplicate code
Jonathan Neuschäfer [Sat, 3 Apr 2010 19:35:34 +0000 (21:35 +0200)]
screen_lyrics.c: wrapped some duplicate code

14 years agopo: updated Galician translation
Miguel Anxo Bouzada [Fri, 19 Feb 2010 09:34:56 +0000 (10:34 +0100)]
po: updated Galician translation

14 years agopo: added Brazilian Portuguese translation
Carlos Eduardo Coelho Baptista Shinagawa [Fri, 19 Feb 2010 08:19:43 +0000 (09:19 +0100)]
po: added Brazilian Portuguese translation

14 years agoscreen_find: strip prompt from search string
Matt Portas [Thu, 28 Jan 2010 19:38:28 +0000 (20:38 +0100)]
screen_find: strip prompt from search string

The jump prompt was left at the start of the search string.  This
patch removes this.

14 years agoscreen_find: fix garbage control chars in search string
Matt Portas [Thu, 28 Jan 2010 19:38:21 +0000 (20:38 +0100)]
screen_find: fix garbage control chars in search string

Went a control key was pressed it would exit, but still append some
garbage to the end of the search string. This meant that the find
next/previous command didn't work.  This patch moves the loop
condition to after getting the key input.

14 years agoModify version string to post-release version 0.17~git
Avuton Olrich [Sun, 17 Jan 2010 23:55:35 +0000 (15:55 -0800)]
Modify version string to post-release version 0.17~git

14 years agoncmpc version 0.16.1 release-0.16.1 v0.16.1
Avuton Olrich [Sun, 17 Jan 2010 23:55:35 +0000 (15:55 -0800)]
ncmpc version 0.16.1

14 years agoscreen_browser: fixed jump to playlist file
Max Kellermann [Sun, 17 Jan 2010 16:46:19 +0000 (17:46 +0100)]
screen_browser: fixed jump to playlist file

Don't add asterisks around the playlist file name in
browser_lw_callback().  This was useless since we are using the
list_window paint callback, and the formatted playlist name isn't used
anymore for painting.

14 years agopo: updated Russian translation
Damir Shayhutdinov [Sun, 17 Jan 2010 16:05:48 +0000 (17:05 +0100)]
po: updated Russian translation

14 years agoMerge branch 'master' of git://git.musicpd.org/avuton/ncmpc
Max Kellermann [Fri, 1 Jan 2010 14:01:52 +0000 (15:01 +0100)]
Merge branch 'master' of git://git.musicpd.org/avuton/ncmpc

14 years agoUpdate copyright notices
Avuton Olrich [Fri, 1 Jan 2010 13:58:10 +0000 (05:58 -0800)]
Update copyright notices

14 years agoscreen_song: make the "labels" array static
Max Kellermann [Mon, 2 Nov 2009 20:25:23 +0000 (21:25 +0100)]
screen_song: make the "labels" array static

Don't reinitialize the whole list each time the screen is opened.

14 years agoscreen_queue: always update the list size
Max Kellermann [Wed, 30 Dec 2009 20:06:31 +0000 (21:06 +0100)]
screen_queue: always update the list size

This fixes an assertion failure.

14 years agolist_window: check for unchanged value in set_length()
Max Kellermann [Wed, 30 Dec 2009 20:28:50 +0000 (21:28 +0100)]
list_window: check for unchanged value in set_length()

Minor optimization.

14 years agodoc/ncmpc.1: fixed some typos
Sebastian Harl [Sun, 27 Dec 2009 19:06:53 +0000 (20:06 +0100)]
doc/ncmpc.1: fixed some typos

14 years agoinclude "config.h" in all files using HAVE_* defines
Sebastian Harl [Sun, 27 Dec 2009 19:02:34 +0000 (20:02 +0100)]
include "config.h" in all files using HAVE_* defines

14 years agoModify version string to post-release version 0.17~git
Avuton Olrich [Sat, 26 Dec 2009 01:43:26 +0000 (17:43 -0800)]
Modify version string to post-release version 0.17~git

14 years agoncmpc version 0.16 release-0.16 v0.16
Avuton Olrich [Sat, 26 Dec 2009 01:43:26 +0000 (17:43 -0800)]
ncmpc version 0.16

14 years agoupdated the AUTHORS file
Max Kellermann [Fri, 25 Dec 2009 12:15:38 +0000 (13:15 +0100)]
updated the AUTHORS file

14 years agopo: regenerated ncmpc.pot
Max Kellermann [Fri, 25 Dec 2009 11:50:25 +0000 (12:50 +0100)]
po: regenerated ncmpc.pot

Only line number changes.

14 years agopo: added Esperanto translation
Max Kellermann [Tue, 8 Dec 2009 19:03:54 +0000 (20:03 +0100)]
po: added Esperanto translation

Anonymous Launchpad contribution.

14 years agopo: updated German translation
Max Kellermann [Tue, 8 Dec 2009 19:03:32 +0000 (20:03 +0100)]
po: updated German translation

Anonymous Launchpad contribution.

14 years agoscreen_artist: return strings without square brackets
Max Kellermann [Fri, 25 Dec 2009 11:12:33 +0000 (12:12 +0100)]
screen_artist: return strings without square brackets

This fixes the "jump" regression.

14 years agoscreen_artist: use a list_window paint callback
Max Kellermann [Fri, 25 Dec 2009 10:45:57 +0000 (11:45 +0100)]
screen_artist: use a list_window paint callback

The goal is to remove the square brackets from the old list_window
callback.

14 years agoscreen_artist: don't convert _() to locale
Max Kellermann [Fri, 25 Dec 2009 10:54:35 +0000 (11:54 +0100)]
screen_artist: don't convert _() to locale

gettext returns all strings in the locale charset.

14 years agoscreen_browser: export screen_browser_paint_directory()
Max Kellermann [Fri, 25 Dec 2009 10:44:46 +0000 (11:44 +0100)]
screen_browser: export screen_browser_paint_directory()

14 years agoMakefile.am: fixed include path for test/run_hscroll
Max Kellermann [Thu, 10 Dec 2009 07:10:33 +0000 (08:10 +0100)]
Makefile.am: fixed include path for test/run_hscroll

Use $(srcdir) to support out-of-tree builds.

14 years agocompatibility fixes for GLib 2.12
Max Kellermann [Thu, 10 Dec 2009 06:51:48 +0000 (07:51 +0100)]
compatibility fixes for GLib 2.12

At the same time, raise the minimum required GLib version to 2.12,
because I don't have older versions to test with.

14 years agoscreen_browser: explicitly initialize local variable
Max Kellermann [Thu, 10 Dec 2009 06:36:42 +0000 (07:36 +0100)]
screen_browser: explicitly initialize local variable

Make gcc happy.

14 years agoscreen_queue: simplified screen_readln() call in MINI
Max Kellermann [Wed, 2 Dec 2009 12:34:11 +0000 (13:34 +0100)]
screen_queue: simplified screen_readln() call in MINI

14 years agoFix compiling with --disable-locale
Thomas Adam [Mon, 30 Nov 2009 00:50:37 +0000 (00:50 +0000)]
Fix compiling with --disable-locale

locale_width() was previously broken when trying to compile ncmpc
without locale support.  This was due to stale code in an #if block.

Signed-off-by: Thomas Adam <thomas.adam22@gmail.com>