AUTHORS: add Jonathan Neuschäfer
po: add Polish translation
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.
mpdclient_cmd_clear() calls playlist_clear(), which leaves a freed
pointer in c->song. c->song is now cleared, too.
workaround for libncurses macro warnings
screen_artist: fix variable name typo in assertion
add missing g_free in error path
cppcheck detected this little bug.
cppcheck detected this little bug.
po: update German translation
po: update Esperanto translation
po: update Chinese translation
po: update Galician translation
po: update Finnish translation
po: update Czech translation
po: regenerate ncmpc.pot
main: *settings_name: translate "unknown"
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".
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".
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.
Compile a single regex search string in list_window_jump instead of
using g_regex_match which compiles a new one each time.
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]
src/main.c: In function ‘idle_callback’:
src/main.c:385:25: error: variable ‘connection’ set but not used [-Werror=unused-but-set-variable]
screen_find.c: fix backspace bug
Use ncurses macros instead of magic numbers.
Use ncurses macros instead of magic numbers.
mpdclient.h: fix the spelling of "occurred"
13 years agofix malloc/free deadlock in signal handler by implementing a signaling pipe for sigco...
fix malloc/free deadlock in signal handler by implementing a signaling pipe for sigcont and sigwinch signal handlers
po: regenerate ncmpc.pot
Just line number changes.
Just line number changes.
po: 2 minor fixups for Russian
po: update Brazilian Portuguese translation
po: update Italian translation
po: update Galician translation
po: update French translation
po: update Spanish translation
po: update Esperanto translation
po: update German translation
po: update Czech translation
po: update Russian translation
main: show real server address in status message
Use the new mpd_settings object to determine the real server host
(libmpdclient 2.4).
Use the new mpd_settings object to determine the real server host
(libmpdclient 2.4).
configure.ac: require libmpdclient 2.2
We need a sane LIBMPDCLIENT_CHECK_VERSION macro.
We need a sane LIBMPDCLIENT_CHECK_VERSION macro.
Modify version string to post-release version 0.19~git
ncmpc version 0.18
po: regenerate ncmpc.pot
an i18n fix
screen_artist: respect artist when adding albums
po: update Brazilian Portuguese translation
po: update Hungarian translation
po: update Hebrew translation
doc: Updated manpage.
Added -m/-M options; fixed -S/--no-splash option.
As reported by Martin Hradil in Debian bug #589660.
Added -m/-M options; fixed -S/--no-splash option.
As reported by Martin Hradil in Debian bug #589660.
screen_song: show song range
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.
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.
options.c: Read mpd host from environment if not specified.
This fixes the "Connecting to localhost" message if "MPD_HOST=mpd ncmpc" is used.
This fixes the "Connecting to localhost" message if "MPD_HOST=mpd ncmpc" is used.
lyrics/leoslyrics: don't print backtrace on HTTP failure
po: update German translation
po: update Norwegian Bokmal translation
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.
This fixes a NULL pointer dereference, caused by
get_key_names(CMD_SCREEN_SONG)==NULL.
Makefile.am: add GLIB_LIBS to _LDADD
Adding GLIB_LIBS to _LDFLAGS instead of _LDADD lead to build error
when using -Wl,--as-needed.
Adding GLIB_LIBS to _LDFLAGS instead of _LDADD lead to build error
when using -Wl,--as-needed.
po: update Spanish translation
po: added Italian translation
po: update Galician translation
Modify version string to post-release version 0.18~git
ncmpc version 0.17
po: updated Swedish translation
po: updated Slovak translation
po: added Finnish translation
po: updated Czech translation
po: regenerate ncmpc.pot
20-lyricwiki.rb: recode recieved lyrics
The lyrics are recieved in Latin1, but UTF-8 is needed.
The lyrics are recieved in Latin1, but UTF-8 is needed.
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.
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.
configure.ac: disable -Wdeclaration-after-statement
ncmpc requires a C99 compliant compiler, so let's allow this C99
extension, too.
ncmpc requires a C99 compliant compiler, so let's allow this C99
extension, too.
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.
screen_help says that the lyrics can be reloaded using the spacebar
(CMD_SELECT). This patch implements the documented behavior.
screen_lyrics: some cleanup
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.
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.
po: updated Dutch translation
Make delete_lyr_hd usable
screen_lyrics.c: Add function delete_lyr_hd
screen_lyrics.c: wrapped some duplicate code
po: updated Galician translation
po: added Brazilian Portuguese translation
screen_find: strip prompt from search string
The jump prompt was left at the start of the search string. This
patch removes this.
The jump prompt was left at the start of the search string. This
patch removes this.
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.
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.
Modify version string to post-release version 0.17~git
ncmpc version 0.16.1
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.
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.
po: updated Russian translation
Merge branch 'master' of git://git.musicpd.org/avuton/ncmpc
Update copyright notices
screen_song: make the "labels" array static
Don't reinitialize the whole list each time the screen is opened.
Don't reinitialize the whole list each time the screen is opened.
screen_queue: always update the list size
This fixes an assertion failure.
This fixes an assertion failure.
list_window: check for unchanged value in set_length()
Minor optimization.
Minor optimization.
doc/ncmpc.1: fixed some typos
include "config.h" in all files using HAVE_* defines
Modify version string to post-release version 0.17~git
ncmpc version 0.16
updated the AUTHORS file
po: regenerated ncmpc.pot
Only line number changes.
Only line number changes.
po: added Esperanto translation
Anonymous Launchpad contribution.
Anonymous Launchpad contribution.
po: updated German translation
Anonymous Launchpad contribution.
Anonymous Launchpad contribution.
screen_artist: return strings without square brackets
This fixes the "jump" regression.
This fixes the "jump" regression.
screen_artist: use a list_window paint callback
The goal is to remove the square brackets from the old list_window
callback.
The goal is to remove the square brackets from the old list_window
callback.
screen_artist: don't convert _() to locale
gettext returns all strings in the locale charset.
gettext returns all strings in the locale charset.
screen_browser: export screen_browser_paint_directory()
Makefile.am: fixed include path for test/run_hscroll
Use $(srcdir) to support out-of-tree builds.
Use $(srcdir) to support out-of-tree builds.
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.
At the same time, raise the minimum required GLib version to 2.12,
because I don't have older versions to test with.
screen_browser: explicitly initialize local variable
Make gcc happy.
Make gcc happy.
screen_queue: simplified screen_readln() call in MINI
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>
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>