Code

ncmpc.git
15 years agofixed crash while saving a playlist
Romain Bignon [Tue, 3 Mar 2009 21:09:56 +0000 (22:09 +0100)]
fixed crash while saving a playlist

It happens when there isn't any playlist in browser

15 years agopo: updated Spanish translation
Feder Sáiz [Tue, 3 Mar 2009 07:50:30 +0000 (08:50 +0100)]
po: updated Spanish translation

15 years agolist_window: page up goes too far
Jeffrey Middleton [Fri, 27 Feb 2009 08:11:24 +0000 (09:11 +0100)]
list_window: page up goes too far

There's a sign error in the page up (previous screen) - instead of
going up by one less than the number of rows, it goes up by one
more. Patch attached, though it's just a single character change. I'm
kind of weirded out that I never noticed this before, since it seems
to have been like this forever!

15 years agopo: updated Korean translation
Atie [Tue, 24 Feb 2009 13:22:54 +0000 (14:22 +0100)]
po: updated Korean translation

15 years agopo: added Simplified Chinese translation
Gao Jie [Tue, 17 Feb 2009 20:27:23 +0000 (21:27 +0100)]
po: added Simplified Chinese translation

15 years agopo: updated ncmpc.pot
Max Kellermann [Tue, 17 Feb 2009 13:55:34 +0000 (14:55 +0100)]
po: updated ncmpc.pot

15 years agorange requires unsigned integers.
Romain Bignon [Sun, 15 Feb 2009 22:42:34 +0000 (23:42 +0100)]
range requires unsigned integers.

15 years agoscreen_play: move selection when moving a single song in playlist
jefromi [Thu, 12 Feb 2009 14:34:00 +0000 (15:34 +0100)]
screen_play: move selection when moving a single song in playlist

Selection didn't move when moving a single song in playlist.
Introduced by the visual selection - selection is only updated when
moving in visual mode, not when moving a single song (nonvisual
mode).

15 years agouse the new mpd shufflerange command.
Romain Bignon [Fri, 13 Feb 2009 09:56:35 +0000 (10:56 +0100)]
use the new mpd shufflerange command.

15 years agopo: Removed a few colons because of 6f1f7f9ecc4.
Patrick Hallen [Thu, 12 Feb 2009 18:17:18 +0000 (19:17 +0100)]
po: Removed a few colons because of 6f1f7f9ecc4.

15 years agoRemoved colons to simplify translation.
Patrick Hallen [Thu, 12 Feb 2009 17:44:31 +0000 (18:44 +0100)]
Removed colons to simplify translation.

In wreadln() is a hard-coded colon, so there must not be colons at the end
of the prompts.

15 years agopo: Updated the german translation.
Patrick Hallen [Thu, 12 Feb 2009 15:01:03 +0000 (16:01 +0100)]
po: Updated the german translation.

Added a german translation for the new visual selection and jump
command.

15 years agopo: Removed the colon from the find prompt.
Patrick Hallen [Thu, 12 Feb 2009 14:57:11 +0000 (15:57 +0100)]
po: Removed the colon from the find prompt.

This change was made because of 146580f18.

15 years agoAUTHORS: added Romain Bignon, Patrick Hallen
Max Kellermann [Wed, 11 Feb 2009 22:53:12 +0000 (23:53 +0100)]
AUTHORS: added Romain Bignon, Patrick Hallen

Also added translators Jon Bergli Heier, Jay Whang, Atie.

15 years agolist_window: Added message when selection is enabled/disabled.
Patrick Hallen [Wed, 11 Feb 2009 19:52:53 +0000 (20:52 +0100)]
list_window: Added message when selection is enabled/disabled.

The user should get a visual feedback, when he enables or disables the visual selection,
so I added a message which is shown in the status screen. Perhaps there should be a flag
on the right top, when visual selection is enabled to not confuse users, who accidentally
enable it.

15 years agoscreen_artist: Added the jump command to the artist screen.
Patrick Hallen [Wed, 11 Feb 2009 19:30:27 +0000 (20:30 +0100)]
screen_artist: Added the jump command to the artist screen.

15 years agoscreen_play: Added the jump command to the playlist screen.
Patrick Hallen [Wed, 11 Feb 2009 19:30:27 +0000 (20:30 +0100)]
screen_play: Added the jump command to the playlist screen.

15 years agoscreen_browser: Added the jump command to the browser screen.
Patrick Hallen [Wed, 11 Feb 2009 19:30:27 +0000 (20:30 +0100)]
screen_browser: Added the jump command to the browser screen.

15 years agocommand: Added the new jump command.
Patrick Hallen [Wed, 11 Feb 2009 19:30:22 +0000 (20:30 +0100)]
command: Added the new jump command.

Added the new jump command, which queries the user for a string
and jumps to the entry which begins with that string while the user is
typing.

15 years agoscreen_utils: Added new function which jumps to an entry.
Patrick Hallen [Wed, 11 Feb 2009 19:09:33 +0000 (20:09 +0100)]
screen_utils: Added new function which jumps to an entry.

Added a new function which opens a prompt. While typing it jumps to the
entry on the screen which starts with the sequence of character you just
typed. Typing any non-printable ncmpc hotkey will exit the prompt.

15 years agoscreen_utils: Use werase() instead of wclear().
Patrick Hallen [Wed, 11 Feb 2009 19:07:07 +0000 (20:07 +0100)]
screen_utils: Use werase() instead of wclear().

Use werase() instead of wclear() in screen_readch(), because wclear() rebuilds the whole window from
scratch and flickers.

15 years agoscreen_utils: Moved the colons of the prompts to wreadln.
Patrick Hallen [Wed, 11 Feb 2009 19:07:07 +0000 (20:07 +0100)]
screen_utils: Moved the colons of the prompts to wreadln.

Moved the colons of the find prompts to wreadln to simplify translation.

15 years agolist_window: Added new function, which finds the beginning of a string
Patrick Hallen [Wed, 11 Feb 2009 19:07:03 +0000 (20:07 +0100)]
list_window: Added new function, which finds the beginning of a string

Added a new function which finds a string in a listwindow which begins with
the given characters.

15 years agoscreen_song: Added more readable table layout.
Patrick Hallen [Wed, 11 Feb 2009 16:21:41 +0000 (17:21 +0100)]
screen_song: Added more readable table layout.

Added a table layout with linebreaks to the song screen to make it nicer to
read.

15 years agocan shuffle selected list
Romain Bignon [Tue, 10 Feb 2009 13:09:32 +0000 (14:09 +0100)]
can shuffle selected list

15 years agosupport multiple lines selection
Romain Bignon [Tue, 10 Feb 2009 14:18:28 +0000 (15:18 +0100)]
support multiple lines selection

15 years agodocumentation for the new "bell-on-wrap" option
Max Kellermann [Mon, 9 Feb 2009 16:02:35 +0000 (17:02 +0100)]
documentation for the new "bell-on-wrap" option

15 years agolist_window: bell when searches wrap
jefromi [Wed, 4 Feb 2009 15:30:00 +0000 (16:30 +0100)]
list_window: bell when searches wrap

NCMPC triggers a bell whenever a search wraps. (Note that this means a
double-bell whenever a wrapped search finds nothing.) I can see this
being reasonable, if the playlist is short and the user is aware of
which direction they want to search in. However if you predominantly
use long playlists and don't know which direction your target is in,
this means you get bells on half your searches.

Since I could see people wanting it either way, my best idea is making
the bell optional. Here's a patch to do that, defaulting to the
current behavior. (I'm a little confused about defaults - looks like
there are only default values for some in options.c - but it looks
like this behaves as desired.)

15 years agoinclude "config.h" without "../"
Max Kellermann [Mon, 9 Feb 2009 15:52:15 +0000 (16:52 +0100)]
include "config.h" without "../"

Including "../config.h" breaks on some systems.

15 years agopo: updated Korean translation
Atie [Mon, 2 Feb 2009 08:57:37 +0000 (09:57 +0100)]
po: updated Korean translation

15 years agopo: added Korean translation
Jay Whang [Tue, 27 Jan 2009 06:47:59 +0000 (07:47 +0100)]
po: added Korean translation

15 years agopo: updated Norwegian translation
Jon Bergli Heier [Tue, 13 Jan 2009 13:05:40 +0000 (14:05 +0100)]
po: updated Norwegian translation

15 years agopo: renamed no.po to nb.po
Max Kellermann [Tue, 13 Jan 2009 12:40:50 +0000 (13:40 +0100)]
po: renamed no.po to nb.po

The Norwegian translation seems to be Norwegian Bokmal, according to
Launchpad's auto detection.  I have no idea of the two Norwegian
forms, but let's just rename no.po to nb.po, to get rid of the
Launchpad warning, hoping this results in better overall Norwegian
language support.

15 years agoModify version string to post-release version 0.14~git
Avuton Olrich [Fri, 9 Jan 2009 13:06:59 +0000 (05:06 -0800)]
Modify version string to post-release version 0.14~git

15 years agoncmpc version 0.13 release-0.13 v0.13
Avuton Olrich [Fri, 9 Jan 2009 13:06:59 +0000 (05:06 -0800)]
ncmpc version 0.13

15 years agolibmpdclient: fix shadow warnings
Max Kellermann [Wed, 7 Jan 2009 22:35:16 +0000 (23:35 +0100)]
libmpdclient: fix shadow warnings

Renamed "time" variables.

15 years agoscreen_browser: removed "OLD_ADD" code
Max Kellermann [Tue, 6 Jan 2009 17:21:30 +0000 (18:21 +0100)]
screen_browser: removed "OLD_ADD" code

The code was disabled via CPP.

15 years agoremoved newline from translatable strings
Max Kellermann [Tue, 6 Jan 2009 17:19:29 +0000 (18:19 +0100)]
removed newline from translatable strings

Don't make translators deal with newlines.

15 years agocommand: check_key_bindings() returns message without comment
Max Kellermann [Tue, 6 Jan 2009 16:57:46 +0000 (17:57 +0100)]
command: check_key_bindings() returns message without comment

The comment "press %s for the key editor" is only used by
timer_check_key_bindings(), move it there.  This lets us merge the two
error messages in check_key_bindings() and eases the translator's
work.

15 years agopo: updated French translation
Yann Cézard [Mon, 5 Jan 2009 21:30:15 +0000 (22:30 +0100)]
po: updated French translation

15 years agopo: updated Slovak translation
Jozef Riha [Mon, 5 Jan 2009 17:56:48 +0000 (18:56 +0100)]
po: updated Slovak translation

15 years agoMakefile.am: distribute autogen.sh
Max Kellermann [Mon, 5 Jan 2009 17:04:14 +0000 (18:04 +0100)]
Makefile.am: distribute autogen.sh

15 years agom4: deleted codeset.m4 and glib-2.0.m4
Max Kellermann [Mon, 5 Jan 2009 17:01:19 +0000 (18:01 +0100)]
m4: deleted codeset.m4 and glib-2.0.m4

Both files are unused.

15 years agoautogen.sh: removed $PWD from aclocal call
Max Kellermann [Mon, 5 Jan 2009 17:00:04 +0000 (18:00 +0100)]
autogen.sh: removed $PWD from aclocal call

This allows aclocal to generate the correct m4/*.m4 dependencies for
the "dist" target.

15 years agopo: updated Galician translation
Johám-Luís Miguéns Vila [Mon, 5 Jan 2009 14:37:21 +0000 (15:37 +0100)]
po: updated Galician translation

15 years agopo: updated Spanish translation
Johám-Luís Miguéns Vila [Mon, 5 Jan 2009 14:37:00 +0000 (15:37 +0100)]
po: updated Spanish translation

15 years agopo: updated Swedish translation
Björn Pettersson [Mon, 5 Jan 2009 14:21:40 +0000 (15:21 +0100)]
po: updated Swedish translation

15 years agopo: updated Russian translation
Max Arnold [Mon, 5 Jan 2009 14:03:24 +0000 (15:03 +0100)]
po: updated Russian translation

15 years agoconfigure.ac: moved ALL_LINGUAS to po/LINGUAS
Max Kellermann [Sun, 4 Jan 2009 11:30:14 +0000 (12:30 +0100)]
configure.ac: moved ALL_LINGUAS to po/LINGUAS

ALL_LINGUAS is deprecated according to
http://live.gnome.org/GnomeGoals/PoLinguas

Keep ALL_LINGUAS in configure.ac for now, to preserve compatibility
with older tools.

15 years agopo: added missing "\n" to Danish po file
Max Kellermann [Sun, 4 Jan 2009 11:08:53 +0000 (12:08 +0100)]
po: added missing "\n" to Danish po file

15 years agomatch: enable regular expressions when using find
Fredrik Lanker [Sat, 3 Jan 2009 11:15:28 +0000 (12:15 +0100)]
match: enable regular expressions when using find

It uses g_regex_match_simple() in glib and is case insensitive.  The
search in the NCMPC_MINI case is unchanged.

15 years agopo: updated Danish translation
Niels Anker [Sat, 3 Jan 2009 11:09:03 +0000 (12:09 +0100)]
po: updated Danish translation

15 years agopo: updated Hungarian translation
László Áshin [Fri, 2 Jan 2009 08:45:50 +0000 (09:45 +0100)]
po: updated Hungarian translation

15 years agoadded option to disable the status line clock display
Paul Collins [Thu, 1 Jan 2009 21:54:04 +0000 (22:54 +0100)]
added option to disable the status line clock display

I already have a clock, and I don't need ncmpc showing me another one.

This patch adds command line options and a config file item to allow the
user to flexibly enable or disable the clock.

[mk: patch from http://bugs.debian.org/510392; removed command line
options]

15 years agoUpdate copyright notices
Avuton Olrich [Thu, 1 Jan 2009 05:45:10 +0000 (21:45 -0800)]
Update copyright notices

15 years agopo: updated German translation
Monika Brinkert [Sun, 28 Dec 2008 13:29:54 +0000 (14:29 +0100)]
po: updated German translation

15 years agoupdated .gitignore
Max Kellermann [Sun, 28 Dec 2008 12:40:57 +0000 (13:40 +0100)]
updated .gitignore

15 years agoconfigure.ac: use AC_CONFIG_AUX_DIR
Max Kellermann [Sun, 28 Dec 2008 12:40:28 +0000 (13:40 +0100)]
configure.ac: use AC_CONFIG_AUX_DIR

Put lots of clutter into ./build/

15 years agopo: converted all PO files to UTF-8
Max Kellermann [Sun, 28 Dec 2008 12:40:17 +0000 (13:40 +0100)]
po: converted all PO files to UTF-8

Converted Danish, German, Norwegian from ISO-Latin-1 to UTF-8.
Converted Slovakian fro ISO-Latin-2 to UTF-8.

15 years agoStandardize the AC_INIT() along with other projects.
Avuton Olrich [Fri, 26 Dec 2008 06:14:01 +0000 (22:14 -0800)]
Standardize the AC_INIT() along with other projects.

15 years agopo: updated *.po
Max Kellermann [Thu, 25 Dec 2008 22:46:49 +0000 (23:46 +0100)]
po: updated *.po

15 years agopo: regenerated ncmpc.pot
Max Kellermann [Thu, 25 Dec 2008 22:41:37 +0000 (23:41 +0100)]
po: regenerated ncmpc.pot

15 years agoadded comments for translators
Max Kellermann [Thu, 25 Dec 2008 22:41:09 +0000 (23:41 +0100)]
added comments for translators

Give translators hints about the meaning of some difficult messages.

15 years agocommand: renamed "Update screen" to "Refresh screen"
Max Kellermann [Thu, 25 Dec 2008 22:41:03 +0000 (23:41 +0100)]
command: renamed "Update screen" to "Refresh screen"

15 years agosimplified translation strings
Max Kellermann [Thu, 25 Dec 2008 22:41:01 +0000 (23:41 +0100)]
simplified translation strings

Removed colon and "Error: " / "Keys - " prefix.

15 years agoscreen_help: removed "bold" marker from "MOVE_UP" line
Max Kellermann [Thu, 25 Dec 2008 22:39:52 +0000 (23:39 +0100)]
screen_help: removed "bold" marker from "MOVE_UP" line

15 years agoconf: improved error messages
Max Kellermann [Thu, 25 Dec 2008 21:17:31 +0000 (22:17 +0100)]
conf: improved error messages

15 years agoMakefile.am: removed AUTHORS, README, NEWS from $(EXTRA_DIST)
Max Kellermann [Thu, 25 Dec 2008 20:59:47 +0000 (21:59 +0100)]
Makefile.am: removed AUTHORS, README, NEWS from $(EXTRA_DIST)

These files are automatically distributed.

15 years agoconf: simplified parse_key_value()
Max Kellermann [Thu, 25 Dec 2008 13:31:00 +0000 (14:31 +0100)]
conf: simplified parse_key_value()

Removed the state machine stuff, and use strtol() if the first
character is not a single quote.  strtol() will do the error
checking.

15 years agoconf: don't pass length to parse_key_value()
Max Kellermann [Thu, 25 Dec 2008 13:29:38 +0000 (14:29 +0100)]
conf: don't pass length to parse_key_value()

We have a null-terminated string, no need to pass the length around.

15 years agoconf: optimized parse_color() with strchr()
Max Kellermann [Thu, 25 Dec 2008 13:09:31 +0000 (14:09 +0100)]
conf: optimized parse_color() with strchr()

The same for parse_color_definition().  Use strtol() directly there.

15 years agoconf: use GLib's string stripping functions
Max Kellermann [Thu, 25 Dec 2008 13:09:24 +0000 (14:09 +0100)]
conf: use GLib's string stripping functions

15 years agoconf: use buffered I/O for reading the config file
Max Kellermann [Thu, 25 Dec 2008 13:09:21 +0000 (14:09 +0100)]
conf: use buffered I/O for reading the config file

Don't read byte by byte until a newline is found.  Use fgets()
instead.

15 years agoconf: don't free filename in read_rc_file()
Max Kellermann [Thu, 25 Dec 2008 13:08:59 +0000 (14:08 +0100)]
conf: don't free filename in read_rc_file()

The code was unused, because free_filename was always 0.

15 years agoconf: moved code to parse_line()
Max Kellermann [Thu, 25 Dec 2008 12:27:45 +0000 (13:27 +0100)]
conf: moved code to parse_line()

15 years agoconf: simplified translation strings
Max Kellermann [Thu, 25 Dec 2008 12:23:29 +0000 (13:23 +0100)]
conf: simplified translation strings

Removed the "Error: " prefix and the newline.  Separated the format
string.

15 years agopo: fixed C format string mismatch in Swedish translation
Max Kellermann [Thu, 25 Dec 2008 11:41:24 +0000 (12:41 +0100)]
po: fixed C format string mismatch in Swedish translation

15 years agoconfigure.ac: fix glib error message
Max Kellermann [Thu, 25 Dec 2008 03:51:29 +0000 (04:51 +0100)]
configure.ac: fix glib error message

The message was still referring to GLib 2.2.

15 years agoconfigure.ac: added --disable-multibyte
Max Kellermann [Thu, 25 Dec 2008 03:47:56 +0000 (04:47 +0100)]
configure.ac: added --disable-multibyte

This allows you to disable wide character support, retaining multibyte
character support.

15 years agoconfigure.ac: disable NLS in mini mode
Max Kellermann [Thu, 25 Dec 2008 03:29:56 +0000 (04:29 +0100)]
configure.ac: disable NLS in mini mode

15 years agoshow translator credits
Max Kellermann [Thu, 25 Dec 2008 03:18:34 +0000 (04:18 +0100)]
show translator credits

Print translator credits after the --version message.

15 years agoinitialize NLS without locale support
Max Kellermann [Thu, 25 Dec 2008 03:17:41 +0000 (04:17 +0100)]
initialize NLS without locale support

Initialize the NLS subsystem even when locale support is disabled.
This may be a very exotic configuration, but it is valid.

15 years agoconfigure.ac: added --disable-locale option
Max Kellermann [Thu, 25 Dec 2008 03:15:44 +0000 (04:15 +0100)]
configure.ac: added --disable-locale option

Make locale.h mandatory.  --disable-locale disables the locale.h
check.

15 years agoi18n: don't use locale.h
Max Kellermann [Thu, 25 Dec 2008 03:15:38 +0000 (04:15 +0100)]
i18n: don't use locale.h

Just for the _() and N_() macros, we don't need to include locale.h -
define them in i18n.h.

15 years agoautogen.sh: run glib-gettextize
Max Kellermann [Thu, 25 Dec 2008 03:15:29 +0000 (04:15 +0100)]
autogen.sh: run glib-gettextize

Removed po/Makefile.in.in and mkinstalldirs from git, they are created
by glib-gettextize.

15 years agopo: added conf.c to POTFILES.in
Max Kellermann [Thu, 25 Dec 2008 02:11:05 +0000 (03:11 +0100)]
po: added conf.c to POTFILES.in

15 years agoconfigure.ac: added --enable-werror, rewrote --enable-debug
Max Kellermann [Thu, 25 Dec 2008 02:02:30 +0000 (03:02 +0100)]
configure.ac: added --enable-werror, rewrote --enable-debug

"--enable-werror" adds "-Werror" to CFLAGS.

15 years agoconfigure.ac: moved CFLAGS settings to the bottom
Max Kellermann [Thu, 25 Dec 2008 02:01:53 +0000 (03:01 +0100)]
configure.ac: moved CFLAGS settings to the bottom

15 years agoconfigure.ac: removed duplicate NLS option
Max Kellermann [Thu, 25 Dec 2008 02:01:50 +0000 (03:01 +0100)]
configure.ac: removed duplicate NLS option

There was --enable-nls in configure.ac, and --disable-nls in
m4/nls.m4.  Remove the first one, it wasn't working anyway.

15 years agoconfigure.ac: drop support for GLib < 2.4
Max Kellermann [Thu, 25 Dec 2008 02:01:41 +0000 (03:01 +0100)]
configure.ac: drop support for GLib < 2.4

GLib 2.4 is required for proper NLS support.  It is so old, we can
safely remove support for GLib 2.2.

15 years agoconfigure.ac: clarify --enable-mini documentation
Max Kellermann [Wed, 24 Dec 2008 02:36:05 +0000 (03:36 +0100)]
configure.ac: clarify --enable-mini documentation

15 years agoRename variable sun as it is predefined (to 1) on solaris
Qball Cow [Wed, 17 Dec 2008 14:14:32 +0000 (15:14 +0100)]
Rename variable sun as it is predefined (to 1)  on solaris

15 years agopo: converted Swedish translation to UTF-8
Björn Pettersson [Tue, 16 Dec 2008 19:24:09 +0000 (20:24 +0100)]
po: converted Swedish translation to UTF-8

15 years agoAUTHORS: added Björn Pettersson (translator)
Max Kellermann [Tue, 16 Dec 2008 19:24:09 +0000 (20:24 +0100)]
AUTHORS: added Björn Pettersson (translator)

15 years agopo: updated Swedish translation
Björn Pettersson [Tue, 16 Dec 2008 19:08:44 +0000 (20:08 +0100)]
po: updated Swedish translation

15 years agopo: updated Danish translation
Mikkel Kirkgaard Nielsen [Tue, 16 Dec 2008 08:50:01 +0000 (09:50 +0100)]
po: updated Danish translation

15 years agoconfigure.ac: display the correct default values
Max Kellermann [Mon, 15 Dec 2008 22:05:31 +0000 (23:05 +0100)]
configure.ac: display the correct default values

The artist and the outputs screen are both enabled by default.

15 years agoscreen_lyrics: use screen_text
Max Kellermann [Fri, 12 Dec 2008 21:06:28 +0000 (22:06 +0100)]
screen_lyrics: use screen_text

Use the new screen_text library to display multi-line text from the
plugin.

15 years agoscreen_text: new library for displaying large texts
Max Kellermann [Fri, 12 Dec 2008 21:06:27 +0000 (22:06 +0100)]
screen_text: new library for displaying large texts

Took a lot of code from screen_lyrics.

15 years agoscreen_lyrics: disabled _GNU_SOURCE
Max Kellermann [Fri, 12 Dec 2008 20:24:07 +0000 (21:24 +0100)]
screen_lyrics: disabled _GNU_SOURCE

Seems we don't need _GNU_SOURCE anymore.