summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f498b01)
raw | patch | inline | side by side (parent: f498b01)
author | Romain Bignon <romain@peerfuse.org> | |
Tue, 3 Nov 2009 20:49:37 +0000 (21:49 +0100) | ||
committer | Romain Bignon <romain@peerfuse.org> | |
Tue, 3 Nov 2009 20:49:37 +0000 (21:49 +0100) |
Signed-off-by: Romain Bignon <romain@peerfuse.org>
diff --git a/src/main.c b/src/main.c
index 8464035f1c0bcbf9f6cdbc918af9a524e2f12dba..29c53a8d6c54adbef1e8abb8ec1b1509b288cb0c 100644 (file)
--- a/src/main.c
+++ b/src/main.c
/* ncmpc (Ncurses MPD Client)
* (c) 2004-2009 The Music Player Daemon Project
* Project homepage: http://musicpd.org
-
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
-
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
-
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <locale.h>
#endif
-/* time between mpd updates [s] */
+/* time between mpd updates [ms] */
static const guint update_interval = 500;
#define BUFSIZE 1024
diff --git a/src/mpdclient.c b/src/mpdclient.c
index 059a6ee38898120dd6bb8416252372542cfd7021..ca7a7b61ba2352d53b47b889d0f14914b38c000e 100644 (file)
--- a/src/mpdclient.c
+++ b/src/mpdclient.c
bool retval;
if (c->source == NULL)
- c->events |= MPD_IDLE_PLAYLIST;
+ c->events |= MPD_IDLE_QUEUE;
if (!playlist_is_empty(&c->playlist))
retval = mpdclient_playlist_update_changes(c);
!mpd_response_next(connection))
return mpdclient_handle_error(c);
- c->events |= MPD_IDLE_PLAYLIST;
+ c->events |= MPD_IDLE_QUEUE;
status = mpdclient_recv_status(c);
if (status == NULL)
!mpd_command_list_end(connection))
return mpdclient_handle_error(c);
- c->events |= MPD_IDLE_PLAYLIST;
+ c->events |= MPD_IDLE_QUEUE;
status = mpdclient_recv_status(c);
if (status == NULL)
!mpd_command_list_end(connection))
return mpdclient_handle_error(c);
- c->events |= MPD_IDLE_PLAYLIST;
+ c->events |= MPD_IDLE_QUEUE;
status = mpdclient_recv_status(c);
if (status == NULL)
diff --git a/src/screen_artist.c b/src/screen_artist.c
index 9bd1b3e0df6a7b85c1359adb05dd31c7002e8430..d6011a7bc13d078cb1c2feffa96efcf580c08f67 100644 (file)
--- a/src/screen_artist.c
+++ b/src/screen_artist.c
/* the db has changed -> update the list */
reload_lists(c);
- if (c->events & (MPD_IDLE_DATABASE | MPD_IDLE_PLAYLIST))
+ if (c->events & (MPD_IDLE_DATABASE | MPD_IDLE_QUEUE))
screen_browser_sync_highlights(browser.filelist, &c->playlist);
if (c->events & (MPD_IDLE_DATABASE
#ifndef NCMPC_MINI
- | MPD_IDLE_PLAYLIST
+ | MPD_IDLE_QUEUE
#endif
))
artist_repaint();
diff --git a/src/screen_file.c b/src/screen_file.c
index 25a86d1bb8f0c0ca8d75f5746818fe361b9d8d4a..c6effe4012510dc6a80ec64c293c029558bdd8c7 100644 (file)
--- a/src/screen_file.c
+++ b/src/screen_file.c
if (c->events & (MPD_IDLE_DATABASE | MPD_IDLE_STORED_PLAYLIST
#ifndef NCMPC_MINI
- | MPD_IDLE_PLAYLIST
+ | MPD_IDLE_QUEUE
#endif
)) {
screen_browser_sync_highlights(browser.filelist, &c->playlist);
diff --git a/src/screen_queue.c b/src/screen_queue.c
index 79a112b60468e889615ec525dcf1f7b484b5d25d..f3ca21a06e49a6c5a1ae2d73d0ac9483e3548df0 100644 (file)
--- a/src/screen_queue.c
+++ b/src/screen_queue.c
static void
screen_queue_update(struct mpdclient *c)
{
- if (c->events & MPD_IDLE_PLAYLIST)
+ if (c->events & MPD_IDLE_QUEUE)
screen_queue_restore_selection();
if (((c->events & MPD_IDLE_PLAYER) != 0 &&
screen_queue_song_change(c->status)) ||
- c->events & MPD_IDLE_PLAYLIST)
+ c->events & MPD_IDLE_QUEUE)
/* the queue or the current song has changed, we must
paint the new version */
screen_queue_repaint();
diff --git a/src/screen_search.c b/src/screen_search.c
index 5ca210daba0af56a50e538a4f1fa2bee5e973277..0561ae3f38b6381cb92436a4b442d5f214faa41e 100644 (file)
--- a/src/screen_search.c
+++ b/src/screen_search.c
static void
screen_search_update(struct mpdclient *c)
{
- if (browser.filelist != NULL && c->events & MPD_IDLE_PLAYLIST) {
+ if (browser.filelist != NULL && c->events & MPD_IDLE_QUEUE) {
screen_browser_sync_highlights(browser.filelist, &c->playlist);
search_repaint();
}