Code

ncmpc.git
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>
15 years agocolors: Change config to use attribute list
Andy Spencer [Tue, 24 Nov 2009 19:57:06 +0000 (19:57 +0000)]
colors: Change config to use attribute list

Colors can now be specified with a comma separated list of attributes,
for example: `blue,bold,underline'.

Putting multiple colors in the list is probably a bad idea..

Existing `bright' colors should be converted to bold colors.

  e.g. brightblue => blue,bold

15 years agocolors: Clean up color handling code using curses.h
Andy Spencer [Tue, 24 Nov 2009 18:04:38 +0000 (18:04 +0000)]
colors: Clean up color handling code using curses.h

Using attr_t lets us remove some unnecessary code, such as
COLOR_BRIGHT_MASK which is now just A_BOLD. We can also add in other
style properties, such as underline, easier as well.

Also moved the background color to the color table, there's no reason to
special case it.

15 years agocolors: Allow using 256 colors
Andy Spencer [Tue, 24 Nov 2009 15:51:44 +0000 (15:51 +0000)]
colors: Allow using 256 colors

Return the corresponding value when integers are passed to str2color. This
allows high colors to be used with 256 color terminals. Bright colors can be
used by adding 256 to integer.

COLOR_BRIGHT_MASK changed to avoid conflicts with >127 colors.

15 years agoleoslyrics.sh plugin: Add bash leoslyrics plugin
Andy Spencer [Tue, 24 Nov 2009 15:51:06 +0000 (15:51 +0000)]
leoslyrics.sh plugin: Add bash leoslyrics plugin

Simple version of the Leo's Lyrics plugin that uses bash and wget.

This also caches the lyrics in ~/.lyrics so that they are later retrieved by
the hd.sh plugin.

15 years agolyrics plugins: Change numbering scheme
Andy Spencer [Tue, 24 Nov 2009 15:48:25 +0000 (15:48 +0000)]
lyrics plugins: Change numbering scheme

Rename lyrics plugins to x0-plugin instead of 0x-plugin to allow additional
plugins to be added between provided plugins.

15 years agocolors: work around "value computed is not used" warning
Max Kellermann [Mon, 23 Nov 2009 21:16:48 +0000 (22:16 +0100)]
colors: work around "value computed is not used" warning

Cast wattrset() to void.

15 years agoadded option "second-column"
Matt Portas [Mon, 23 Nov 2009 21:09:49 +0000 (21:09 +0000)]
added option "second-column"

This allows the second column displaying the song length to be
disabled using the config file. By default it is set to on, so it
shouldn't affect anyone unless they specify it.

15 years agocharset: added support for zero-width characters
Max Kellermann [Thu, 19 Nov 2009 20:08:33 +0000 (21:08 +0100)]
charset: added support for zero-width characters

Consider zero-length characters in utf8_width().

15 years agocharset: moved code to unicode_char_width()
Max Kellermann [Thu, 19 Nov 2009 20:05:17 +0000 (21:05 +0100)]
charset: moved code to unicode_char_width()

15 years agompdclient: allow song id 0
Max Kellermann [Sat, 14 Nov 2009 01:55:10 +0000 (02:55 +0100)]
mpdclient: allow song id 0

Off-by-one bug.  Change ">" to ">=".

15 years agostatus_bar: display elapsed time event when total time is unknown
Max Kellermann [Sat, 14 Nov 2009 01:47:28 +0000 (02:47 +0100)]
status_bar: display elapsed time event when total time is unknown

This is useful for streams: how long have we been playing this stream?

15 years agostatus_bar: fix display_remaining_time while seeking
Max Kellermann [Sat, 14 Nov 2009 01:44:45 +0000 (02:44 +0100)]
status_bar: fix display_remaining_time while seeking

If the display_remaining_time option is enabled, apply this setting
even during seeking.

15 years agostatus_bar: moved variable "bitrate" inside closure
Max Kellermann [Sat, 14 Nov 2009 01:42:30 +0000 (02:42 +0100)]
status_bar: moved variable "bitrate" inside closure

15 years agostatus_bar: moved code to format_bitrate()
Max Kellermann [Sat, 14 Nov 2009 01:38:26 +0000 (02:38 +0100)]
status_bar: moved code to format_bitrate()

15 years agoscreen_outputs: set list_window length to 0 if not connected
Max Kellermann [Sat, 7 Nov 2009 15:59:06 +0000 (16:59 +0100)]
screen_outputs: set list_window length to 0 if not connected

The "length" wasn't set properly because we commented out the
according line from clear_outputs_list().

15 years agoupdate screens after being disconnected from server
Romain Bignon [Tue, 3 Nov 2009 21:18:08 +0000 (22:18 +0100)]
update screens after being disconnected from server

Signed-off-by: Romain Bignon <romain@peerfuse.org>
15 years agouse MPD_IDLE_QUEUE instead of deprecated MPD_IDLE_PLAYLIST flag
Romain Bignon [Tue, 3 Nov 2009 20:49:37 +0000 (21:49 +0100)]
use MPD_IDLE_QUEUE instead of deprecated MPD_IDLE_PLAYLIST flag

Signed-off-by: Romain Bignon <romain@peerfuse.org>
15 years agoscreen_song: store list items in the locale charset
Max Kellermann [Tue, 3 Nov 2009 08:17:04 +0000 (09:17 +0100)]
screen_song: store list items in the locale charset

Pre-convert the strings, instead of converting on demand.

15 years agocharset: added function locale_width()
Max Kellermann [Mon, 2 Nov 2009 21:54:41 +0000 (22:54 +0100)]
charset: added function locale_width()

This function is a rather expensive wrapper: it converts the string to
UTF-8 and calls utf8_width().

15 years agoscreen_song: properly implement line breaks
Max Kellermann [Mon, 2 Nov 2009 21:54:38 +0000 (22:54 +0100)]
screen_song: properly implement line breaks

The old code didn't consider wide characters.  This patch uses
utf8_cut_width() to break lines.

15 years agoscreen_song: fill spaces with memset()
Max Kellermann [Mon, 2 Nov 2009 21:51:05 +0000 (22:51 +0100)]
screen_song: fill spaces with memset()

Faster than a manual "for" loop.

15 years agoscreen_song: don't allow screen_song_append(NULL)
Max Kellermann [Mon, 2 Nov 2009 21:50:20 +0000 (22:50 +0100)]
screen_song: don't allow screen_song_append(NULL)

All callers make sure that value!=NULL.

15 years agoplayer_command: implement setup_seek() without a song object
Max Kellermann [Mon, 2 Nov 2009 19:57:38 +0000 (20:57 +0100)]
player_command: implement setup_seek() without a song object

Get the current song id from mpd_status_get_song_id().

15 years agoplayer_command: merged code into setup_seek()
Max Kellermann [Mon, 2 Nov 2009 19:46:22 +0000 (20:46 +0100)]
player_command: merged code into setup_seek()

15 years agoplayer_command: break from switch if not playing
Max Kellermann [Mon, 2 Nov 2009 17:53:07 +0000 (18:53 +0100)]
player_command: break from switch if not playing

Eliminate one indent level.

15 years agoscreen_queue: update current song in method open()
Max Kellermann [Mon, 2 Nov 2009 17:31:17 +0000 (18:31 +0100)]
screen_queue: update current song in method open()

When the queue screen is not open, and the song changes, it was not
updated, not even if you switch back and press Ctrl-L.

This patch moves some common code to screen_queue_song_change(), which
is also called by the open() method.

15 years agoscreen_queue: use mpd_status.song_pos for centering the list
Max Kellermann [Mon, 2 Nov 2009 17:29:06 +0000 (18:29 +0100)]
screen_queue: use mpd_status.song_pos for centering the list

Don't look up the playlist.  Just use the position provided by MPD.
Side effect: we can pass the mpd_status object to
center_playing_item(), not the whole mpdclient object.

15 years agoscreen_queue: eliminated length check in center()
Max Kellermann [Mon, 2 Nov 2009 17:23:53 +0000 (18:23 +0100)]
screen_queue: eliminated length check in center()

list_window_center() does all the checks fine.  Don't duplicate that.

15 years agoscreen_queue: eliminated unused variable "song"
Max Kellermann [Mon, 2 Nov 2009 17:15:25 +0000 (18:15 +0100)]
screen_queue: eliminated unused variable "song"

Not used in center_playing_item().

15 years agompdclient: added inline function mpdclient_is_playing()
Max Kellermann [Mon, 2 Nov 2009 17:14:38 +0000 (18:14 +0100)]
mpdclient: added inline function mpdclient_is_playing()

15 years agolyricwiki: convert numeric HTML escape sequences to proper characters
Thomas Jansen [Sun, 1 Nov 2009 23:49:11 +0000 (00:49 +0100)]
lyricwiki: convert numeric HTML escape sequences to proper characters

I've stumbled across several cases of obfuscated lyrics that use the numeric
HTML escape sequences.

15 years agopo: regenerated ncmpc.pot and *.po
Max Kellermann [Sun, 1 Nov 2009 15:20:02 +0000 (16:20 +0100)]
po: regenerated ncmpc.pot and *.po

A lot of code has been moved around.

15 years agopo: updated POTFILES.in
Max Kellermann [Sun, 1 Nov 2009 15:19:38 +0000 (16:19 +0100)]
po: updated POTFILES.in

There are several new source files, and screen_play.c has been renamed
to screen_queue.c.

15 years agoscreen_search: revert label to "Filename"
Max Kellermann [Sun, 1 Nov 2009 15:19:38 +0000 (16:19 +0100)]
screen_search: revert label to "Filename"

15 years agopo: updated Spanish translation
Paco Molinero [Sun, 1 Nov 2009 15:06:56 +0000 (16:06 +0100)]
po: updated Spanish translation

15 years agoscreen_outputs: preserve cursor position after update
Max Kellermann [Sat, 31 Oct 2009 18:28:16 +0000 (19:28 +0100)]
screen_outputs: preserve cursor position after update

Don't clear the list_window in clear_outputs_list().

15 years agocommand, conf: simplify variable initialization
Thomas Jansen [Thu, 29 Oct 2009 20:21:33 +0000 (21:21 +0100)]
command, conf: simplify variable initialization

15 years agomain: whitespace cosmetics
Thomas Jansen [Thu, 29 Oct 2009 20:10:09 +0000 (21:10 +0100)]
main: whitespace cosmetics

15 years agowreadln: whitespace cosmetics
Thomas Jansen [Thu, 29 Oct 2009 20:08:14 +0000 (21:08 +0100)]
wreadln: whitespace cosmetics

15 years agocommand: whitespace cosmetics
Thomas Jansen [Thu, 29 Oct 2009 20:05:55 +0000 (21:05 +0100)]
command: whitespace cosmetics

15 years agoscreen_help: whitespace cosmetics
Thomas Jansen [Thu, 29 Oct 2009 19:58:07 +0000 (20:58 +0100)]
screen_help: whitespace cosmetics

Replaced space characters with one tab to match the rest of the file.

15 years agolist_window: removed unnecessary reverse wattroff
Thomas Jansen [Thu, 29 Oct 2009 19:52:29 +0000 (20:52 +0100)]
list_window: removed unnecessary reverse wattroff

In all callback functions row_color is used to initialize the reverse
attribute for each new line. No need to switch it off explicitly in
between.

15 years agoscreen_browser: removed unnecessary reverse wattroff.
Thomas Jansen [Thu, 29 Oct 2009 09:12:15 +0000 (10:12 +0100)]
screen_browser: removed unnecessary reverse wattroff.

All cases internally use row_paint_text that in turn uses row_color and
sets the A_REVERSE attribute for the new row. We do not need to switch it
off manually.

15 years agoscreen_browse: removed unnecessary color selection
Thomas Jansen [Thu, 29 Oct 2009 09:07:05 +0000 (10:07 +0100)]
screen_browse: removed unnecessary color selection

All cases use row_paint_text internally which sets the color. There is no
need to have the colors_use calls before, as they will be overwritten.

15 years agoscreen_browser: removed duplicate line clearing
Thomas Jansen [Thu, 29 Oct 2009 09:03:34 +0000 (10:03 +0100)]
screen_browser: removed duplicate line clearing

whline(w, ' ', width); was used to clean the rest of the line. The new
function row_paint_text takes care of that already, so we don't have to do
it twice. We had to switch the default case to row_paint_text as well to
cover all possibilities.

This fixes a bug where the last digit of the playtime of the last visible
row in the browse screen was overwritten with a space character.

15 years agoMerge branch 'master' of git://git.musicpd.org/jefromi/ncmpc
Max Kellermann [Thu, 29 Oct 2009 06:25:52 +0000 (07:25 +0100)]
Merge branch 'master' of git://git.musicpd.org/jefromi/ncmpc

15 years agodefaults: correct status/list formats
Jeffrey Middleton [Tue, 19 May 2009 19:58:52 +0000 (14:58 -0500)]
defaults: correct status/list formats

The missing brackets caused literal "%title%|%shortfile%" to be
displayed, instead of the intended falling back to filename absent a
title.

15 years agoscreen_song: correct "is mpd playing?" logic
Jeffrey Middleton [Wed, 28 Oct 2009 20:34:45 +0000 (15:34 -0500)]
screen_song: correct "is mpd playing?" logic

We check if mpd is playing (or paused) before displaying current song
info - the logic was inverted! (!playing && !paused)

15 years agoscreen_browse: make screen_browser_sync_highlights an empty inline function
Thomas Jansen [Wed, 28 Oct 2009 11:17:04 +0000 (12:17 +0100)]
screen_browse: make screen_browser_sync_highlights an empty inline function

This improves readability, as no #ifdefs are required in the *.c files around
the screen_browser_sync_highlights calls anymore.

15 years agoMakefile.am: require automake 1.10
Thomas Jansen [Tue, 27 Oct 2009 11:18:20 +0000 (12:18 +0100)]
Makefile.am: require automake 1.10

Match the version mpd uses.

15 years agoMakefile.am: enable the "subdir-objects" option
Thomas Jansen [Tue, 27 Oct 2009 08:19:55 +0000 (09:19 +0100)]
Makefile.am: enable the "subdir-objects" option

Don't clutter the top directory with *.o files similar to mpd.

15 years agoscreen_file: sync highlights in screen_file_open
Thomas Jansen [Tue, 27 Oct 2009 08:15:19 +0000 (09:15 +0100)]
screen_file: sync highlights in screen_file_open

Fix bug #2605, where CMD_SCREEN_FILE would show no highlights until some
user action or event changed that.

15 years agompdclient: return after playlist_update() error
Max Kellermann [Fri, 23 Oct 2009 09:01:52 +0000 (11:01 +0200)]
mpdclient: return after playlist_update() error

In each of the functions, the client may get disconnected, and we have
to check c->status!=NULL again.

15 years agohscroll: reimplemented the hscroll library
Max Kellermann [Tue, 20 Oct 2009 06:00:13 +0000 (08:00 +0200)]
hscroll: reimplemented the hscroll library

The hscroll object knows the location on the screen and the text.
Upon initialization, it installs a GLib timer which updates the screen
every second.

15 years agostatus_bar: un-inline constructor and destructor
Max Kellermann [Tue, 20 Oct 2009 06:00:13 +0000 (08:00 +0200)]
status_bar: un-inline constructor and destructor

15 years agohscroll: simplify the code with utf8_cut_width()
Max Kellermann [Tue, 20 Oct 2009 06:00:12 +0000 (08:00 +0200)]
hscroll: simplify the code with utf8_cut_width()

Concatenate the input string twice, and select a substring from that
large string.