lyrics: return plugin_cycle struct
Eliminated the lyrics_loader struct. Instead of lyrics_free(),
callers should use plugin_stop().
Eliminated the lyrics_loader struct. Instead of lyrics_free(),
callers should use plugin_stop().
lyrics: use the new plugin library
plugin: new plugin library
The plugin library is based on code from lyrics.c.
The plugin library is based on code from lyrics.c.
lyrics: free lyrics_loader struct in lyrics_free()
main: deinitialize lyrics library
Free memory held by the plugin list at the end, make valgrind happier.
Free memory held by the plugin list at the end, make valgrind happier.
lyrics: g_new() cannot fail, don't check
g_new() aborts the program when the kernel runs out of memory.
g_new() aborts the program when the kernel runs out of memory.
command: disable check_key_bindings() with --enable-mini
Remove another superfluous feature from the ncmpc-mini mode.
Remove another superfluous feature from the ncmpc-mini mode.
po: clean up POTFILES.in
Removed sources which do not contain translatable strings.
Removed sources which do not contain translatable strings.
match: case sensitive search with --enable-mini
Drop support for the expensive case insensitive search in ncmpc-mini
mode.
Drop support for the expensive case insensitive search in ncmpc-mini
mode.
hscroll: don't compile source in ncmpc-mini mode
This source is not required with --enable-mini.
This source is not required with --enable-mini.
support: renamed source to hscroll.c
There is only strscroll() left in support.c. Give the source a better
name.
There is only strscroll() left in support.c. Give the source a better
name.
support: removed fallback strcasestr() implementation
The code which used to call strcasestr() has been converted to
match_line().
The code which used to call strcasestr() has been converted to
match_line().
match: use g_utf8_casefold() in match_line()
strcasestr() is a non-standard function, and requires setting
_GNU_SOURCE. To avoid this, do wasteful g_utf8_casefold() conversions
and use strstr().
strcasestr() is a non-standard function, and requires setting
_GNU_SOURCE. To avoid this, do wasteful g_utf8_casefold() conversions
and use strstr().
list_window: moved string matching to match.h
Provide the new function match_line() which searches a string for a
needle (ignoring case). This wraps the non-standard function
strcasestr().
Provide the new function match_line() which searches a string for a
needle (ignoring case). This wraps the non-standard function
strcasestr().
screen: use print_hotkey() for the output screen tab
Don't use markup in the translated string; use print_hotkey() as a
simple wrapper.
Don't use markup in the translated string; use print_hotkey() as a
simple wrapper.
support: don't declare strcasestr() if provided by the system
If the system library provides strcasestr(), don't do an extra
declaration in support.h.
If the system library provides strcasestr(), don't do an extra
declaration in support.h.
options: Include all build options in version output.
NEWS: version 0.13, described new outputs screen
AUTHORS: added "translators" section
AUTHORS: added missing authors
AUTHORS: added "former authors" section
added missing copyright headers
screen_outputs: new screen to control MPD's output devices
The "outputs" screen allows the user to enable or disable MPD's audio
output devices.
The "outputs" screen allows the user to enable or disable MPD's audio
output devices.
configure.ac: bumped version number to 0.13~git
The development of version 0.13 has started!
The development of version 0.13 has started!
ncmpc version 0.12
added build test script "test.sh"
sreen_play: fixed the g_completion_set_compare() callback type
Passing strncmp to g_completion_set_compare() is incorrect, because
the type of the third parameter (n) differs. This patch adds a
wrapper function with the correct type.
Passing strncmp to g_completion_set_compare() is incorrect, because
the type of the third parameter (n) differs. This patch adds a
wrapper function with the correct type.
screen_song: make the variable "current" static
The global variable "current" should not be exported, and should be
"static".
The global variable "current" should not be exported, and should be
"static".
Makefile.am: distribute the lyrics plugins even when they are disabled
The source tarball should always contain all files. The lyrics
plugins were not distributed when the plugin was disabled in the last
configure run.
The source tarball should always contain all files. The lyrics
plugins were not distributed when the plugin was disabled in the last
configure run.
configure.ac: disable color terminal support with --enable-mini
configure.ac: disable the artist screen with --enable-mini
m4: removed unused scripts
Some of those have become obsolete since we require a C99 build
environment. Others have been obsoleted by using more of GLib.
Some of those have become obsolete since we require a C99 build
environment. Others have been obsoleted by using more of GLib.
added .gitignore
po: added Hungarian translation
screen: fixed "screen too small" typo
The "too" had only one 'o'. Remove the newline character at the end
to simplify translation.
The "too" had only one 'o'. Remove the newline character at the end
to simplify translation.
lyrics: include the lyrics plugins in the dist tarball
Add the lyrics scripts to $(EXTRA_DIST).
Add the lyrics scripts to $(EXTRA_DIST).
po: updated Slovak translation
po: updated Galician translation
po: updated Spanish translation
po: regenerated ncmpc.pot
Only line numbers changed this time.
Only line numbers changed this time.
po: updated German translation
Added missing translation and removed "fuzzy" tags.
Added missing translation and removed "fuzzy" tags.
m4: imported progtest.m4 from gettext
po.m4 uses the macro AM_PATH_PROG_WITH_TEST which is provided by
progtest.m4.
po.m4 uses the macro AM_PATH_PROG_WITH_TEST which is provided by
progtest.m4.
po: fixed C format error in the French translation
screen_play: fix scrolling in auto-center mode
Commit cfad0fdf enabled horizontal scrolling, but broke auto-center
mode: regardless of whether the current song has changed, it
re-centered the list. Moved the options.scroll check to another "if"
branch.
Commit cfad0fdf enabled horizontal scrolling, but broke auto-center
mode: regardless of whether the current song has changed, it
re-centered the list. Moved the options.scroll check to another "if"
branch.
screen_help: added the artist screen hotkey
screen_help: added CMD_VIEW
screen: don't show disabled help screen in screen list
When the help screen was disabled at compile time, it was showed in
the screen list anyway.
When the help screen was disabled at compile time, it was showed in
the screen list anyway.
screen_search: use filelist_new() instead of g_malloc0()
Using the advanced search led to a segmentation fault, because with
g_malloc0(), the filelist's "entries" array was not allocated. Use
the "official" filelist constructor instead.
Using the advanced search led to a segmentation fault, because with
g_malloc0(), the filelist's "entries" array was not allocated. Use
the "official" filelist constructor instead.
ncmpc version 0.12~beta2
po: updated French translation
list_window: converted "flags" to one "bool" variable
Currently, there is only one known list_window flag ("hide_cursor").
Replace the "flags" bit field with a boolean variable. If we run out
of space some day, we can convert that to bool:1.
Currently, there is only one known list_window flag ("hide_cursor").
Replace the "flags" bit field with a boolean variable. If we run out
of space some day, we can convert that to bool:1.
list_window: use "bool" instead of "int"
For flags and return values, use the "bool" data type instead of
"int".
For flags and return values, use the "bool" data type instead of
"int".
list_window: fixed endless loop in non-wrapped search
When the cursor was at the end of a list and the user pressed 'n',
ncmpc would hang in an endless loop forever. The same bug was fixed
in the backwards search.
When the cursor was at the end of a list and the user pressed 'n',
ncmpc would hang in an endless loop forever. The same bug was fixed
in the backwards search.
po: updated Russian translation
po: updated Russian translation
po: added screen_song.c to POTFILES.in
When I created screen_song.c, I forgot to add it to POTFILES.in, and
thus its string were not part of ncmpc.pot. Add it and regenerate
ncmpc.pot and all .po files.
When I created screen_song.c, I forgot to add it to POTFILES.in, and
thus its string were not part of ncmpc.pot. Add it and regenerate
ncmpc.pot and all .po files.
po: updated Galician translation
po: updated Spanish translation
po: updated Slovak translation
ncmpc version 0.12~beta1
First beta version for the upcoming version 0.12.
First beta version for the upcoming version 0.12.
NEWS update for 0.12~beta1
screen_artist: fixes for the ncmpc-mini build
Disable the highlighting code which has slipped out of the NCMPC_MINI
checks.
Disable the highlighting code which has slipped out of the NCMPC_MINI
checks.
ncmpc-mini: disable scrolling
The scrolling code broke in the ncmpc-mini build. Disable it when
--enable-mini was specified.
The scrolling code broke in the ncmpc-mini build. Disable it when
--enable-mini was specified.
po: updated German translation
po: removed translations which are obviously wrong
Removed fuzzy and non-fuzzy translations which look obviously wrong.
No translation is better than a wrong one.
Removed fuzzy and non-fuzzy translations which look obviously wrong.
No translation is better than a wrong one.
po: merged new strings in all languages
Removed exclamation marks also from the translated strings.
Removed exclamation marks also from the translated strings.
po: enabled Slovakian translation
The Slovakian translation was added a while ago, but it was not
enabled in configure.ac.
The Slovakian translation was added a while ago, but it was not
enabled in configure.ac.
po: regenerated ncmpc.pot
po: improved translatable strings for easier translation
Remove exclamation marks and other markup from the strings.
Remove exclamation marks and other markup from the strings.
screen: simplify screen list strings
Removed the colon and the spaces from the translatable screen names.
This aims to simplify the translator's job.
Removed the colon and the spaces from the translatable screen names.
This aims to simplify the translator's job.
list_window: reset cursor when list is empty
Due to a side effect of the old "if" condition, the cursor was never
reset to the origin when the list was cleared.
Due to a side effect of the old "if" condition, the cursor was never
reset to the origin when the list was cleared.
screen_lyrics: reset cursor when the song changes
When the view is changed and a new song is about to be displayed,
reset the list's state and scroll back to the origin.
When the view is changed and a new song is about to be displayed,
reset the list's state and scroll back to the origin.
removed gcc.h
gcc.h has been replaced with GLib's G_GNUC_ macros.
gcc.h has been replaced with GLib's G_GNUC_ macros.
screen_search.c: replaced mpd_unused by G_GNUC_UNUSED
screen_play.c: replaced mpd_unused by G_GNUC_UNUSED
screen_lyrics.c: replaced mpd_unused by G_GNUC_UNUSED
screen_keydef.c: replaced mpd_unused by G_GNUC_UNUSED
screen_help.c: replaced mpd_unused by G_GNUC_UNUSED
screen_file.c: replaced mpd_unused by G_GNUC_UNUSED
screen_browser.c: replaced mpd_unused by G_GNUC_UNUSED
screen_artist.c: replaced mpd_unused by G_GNUC_UNUSED
main.c: replaced mpd_unused by G_GNUC_UNUSED
lyrics.c: replaced mpd_unused by G_GNUC_UNUSED
lirc: use GLib's G_GNUC_UNUSED instead of mpd_unused
The header gcc.h is going to fade away, in favor of GLib's G_GNUC_
macros.
The header gcc.h is going to fade away, in favor of GLib's G_GNUC_
macros.
screen_play: scroll long song names in the playlist
If the song name under the cursor is too long for the terminal, scroll
it like in the statusbar.
If the song name under the cursor is too long for the terminal, scroll
it like in the statusbar.
po: updated Spanish translation
po: updated German translation
po: updated PO template
screen_search: don't include ncurses.h directly
screen.h has a check whether to include ncursesw/ncurses.h or
ncurses.h. screen_search.c doesn't need to include it a second time,
and was missing the check.
screen.h has a check whether to include ncursesw/ncurses.h or
ncurses.h. screen_search.c doesn't need to include it a second time,
and was missing the check.
screen_song: support CMD_SCREEN_LYRICS
Show the lyrics of the song currently being displayed.
Show the lyrics of the song currently being displayed.
screen_song: free the song pointer
Fix a memory leak.
Fix a memory leak.
screen_lyrics: support CMD_VIEW
Jump to the song viewer screen.
Jump to the song viewer screen.
screen_song: include cleanup
screen_song: check CMD_VIEW only if song screen is enabled
screen_song: new screen which views song information
This new screen views all information available on a song: its
location, file name, and tags.
This new screen views all information available on a song: its
location, file name, and tags.
libmpdclient: converted MPD_ERROR_ constants to enum
libmpdclient: convert MPD_ACK_ constants to enum
command: change 'locate' default hotkey to 'G'
Use the same hotkey as ncmpcpp.
Use the same hotkey as ncmpcpp.
screen_browser: always declare variable "entry"
The local variable "entry" was only declared when lyrics were enabled,
but it is now used by CMD_LOCATE, too.
The local variable "entry" was only declared when lyrics were enabled,
but it is now used by CMD_LOCATE, too.
screen: method cmd() returns bool
Return true/false instead of 1/0.
Return true/false instead of 1/0.