summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2e8c6c2)
raw | patch | inline | side by side (parent: 2e8c6c2)
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Tue, 22 Nov 2011 21:54:55 +0000 (22:54 +0100) | ||
committer | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Tue, 22 Nov 2011 21:54:55 +0000 (22:54 +0100) |
Its two functions are screen_status_message and screen_status_printf
so this just seems logical to me.
so this just seems logical to me.
19 files changed:
Makefile.am | patch | blob | history | |
src/list_window.c | patch | blob | history | |
src/main.c | patch | blob | history | |
src/player_command.c | patch | blob | history | |
src/screen.c | patch | blob | history | |
src/screen_artist.c | patch | blob | history | |
src/screen_browser.c | patch | blob | history | |
src/screen_client.c | patch | blob | history | |
src/screen_file.c | patch | blob | history | |
src/screen_find.c | patch | blob | history | |
src/screen_keydef.c | patch | blob | history | |
src/screen_lyrics.c | patch | blob | history | |
src/screen_message.c | [deleted file] | patch | blob | history |
src/screen_message.h | [deleted file] | patch | blob | history |
src/screen_outputs.c | patch | blob | history | |
src/screen_queue.c | patch | blob | history | |
src/screen_search.c | patch | blob | history | |
src/screen_status.c | [new file with mode: 0644] | patch | blob |
src/screen_status.h | [new file with mode: 0644] | patch | blob |
diff --git a/Makefile.am b/Makefile.am
index dce18a5473faf701c119a1fb61292c84e83eb9b3..b4207cdf29489e64d32aff31a89aeec63a9f6809 100644 (file)
--- a/Makefile.am
+++ b/Makefile.am
src/progress_bar.h \
src/status_bar.h \
src/screen.h \
- src/screen_message.h \
+ src/screen_status.h \
src/screen_interface.h \
src/screen_list.h \
src/screen_find.h \
src/progress_bar.c \
src/status_bar.c \
src/screen.c \
- src/screen_message.c \
+ src/screen_status.c \
src/screen_list.c \
src/screen_find.c \
src/screen_utils.c \
diff --git a/src/list_window.c b/src/list_window.c
index 66c6d21361817ce61202d125be1564c085be707f..1c143d3d7918dcf53e3ef0a4dc1a970d1d068dff 100644 (file)
--- a/src/list_window.c
+++ b/src/list_window.c
#include "command.h"
#include "colors.h"
#include "paint.h"
-#include "screen_message.h"
+#include "screen_status.h"
#include "i18n.h"
#include <assert.h>
diff --git a/src/main.c b/src/main.c
index 389b8c68e570f2c8eb52a22e0419a81cfa62f35d..60f5d21c92290b4193eae1e1c6fd649c2ebb2744 100644 (file)
--- a/src/main.c
+++ b/src/main.c
#include "ncu.h"
#include "screen.h"
#include "screen_utils.h"
-#include "screen_message.h"
+#include "screen_status.h"
#include "strfsong.h"
#include "i18n.h"
#include "player_command.h"
diff --git a/src/player_command.c b/src/player_command.c
index 2455c83e58cdb74b5645730c0a91590c5c0e073b..59c97253fee813e78fcda2d718b775428b775de7 100644 (file)
--- a/src/player_command.c
+++ b/src/player_command.c
#include "options.h"
#include "i18n.h"
#include "screen_client.h"
-#include "screen_message.h"
+#include "screen_status.h"
int seek_id = -1;
int seek_target_time;
diff --git a/src/screen.c b/src/screen.c
index fdc168adb5efc3869e65425e6579a3d6d8cd4c8a..b341a8a65ffdb9cb75b6f3ac79fd140eecea7cb4 100644 (file)
--- a/src/screen.c
+++ b/src/screen.c
#include "screen_interface.h"
#include "screen_list.h"
#include "screen_utils.h"
-#include "screen_message.h"
+#include "screen_status.h"
#include "config.h"
#include "i18n.h"
#include "charset.h"
diff --git a/src/screen_artist.c b/src/screen_artist.c
index 3ae214545ff3b1766f3859529be494c5ae60f6bc..2b6448e6398fd513948489fbdce71e2a0a44cd38 100644 (file)
--- a/src/screen_artist.c
+++ b/src/screen_artist.c
#include "screen_artist.h"
#include "screen_interface.h"
-#include "screen_message.h"
+#include "screen_status.h"
#include "screen_find.h"
#include "screen_browser.h"
#include "screen.h"
diff --git a/src/screen_browser.c b/src/screen_browser.c
index 04673f4e85a7e5632525a3cf19820fcab1d80ad6..41783b5cc05520edabc940903cd8d6fb17e9e035 100644 (file)
--- a/src/screen_browser.c
+++ b/src/screen_browser.c
#include "screen_file.h"
#include "screen_song.h"
#include "screen_lyrics.h"
-#include "screen_message.h"
+#include "screen_status.h"
#include "screen_find.h"
#include "screen.h"
#include "i18n.h"
diff --git a/src/screen_client.c b/src/screen_client.c
index f864f1998498e810ea182feddbf3183344220f14..b8e936fdbc0fe6147edd4bbd961f2c590551368d 100644 (file)
--- a/src/screen_client.c
+++ b/src/screen_client.c
#include "screen_client.h"
#include "screen_utils.h"
-#include "screen_message.h"
+#include "screen_status.h"
#include "mpdclient.h"
#include "i18n.h"
#include "charset.h"
diff --git a/src/screen_file.c b/src/screen_file.c
index 73f56005f51f244ca26d4972c9441846931ddb36..46ffdc20f8dff9f593497b1c88bb42e160ea8f40 100644 (file)
--- a/src/screen_file.c
+++ b/src/screen_file.c
#include "screen_file.h"
#include "screen_browser.h"
#include "screen_interface.h"
-#include "screen_message.h"
+#include "screen_status.h"
#include "screen_queue.h"
#include "screen.h"
#include "config.h"
diff --git a/src/screen_find.c b/src/screen_find.c
index 4113c39a522a1aef207c03540a60dac708ec25a1..3fdf9f30dd923914723c2e85658161e95a8a322f 100644 (file)
--- a/src/screen_find.c
+++ b/src/screen_find.c
#include "screen_find.h"
#include "screen_utils.h"
-#include "screen_message.h"
+#include "screen_status.h"
#include "screen.h"
#include "i18n.h"
#include "options.h"
diff --git a/src/screen_keydef.c b/src/screen_keydef.c
index 8ecc003ac94cc0493a0c6daaef125dafc9cb5769..cc3ccb5af9cba984acc042ea6511fc9af08ed2bd 100644 (file)
--- a/src/screen_keydef.c
+++ b/src/screen_keydef.c
#include "screen_keydef.h"
#include "screen_interface.h"
-#include "screen_message.h"
+#include "screen_status.h"
#include "screen_find.h"
#include "i18n.h"
#include "conf.h"
diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c
index e655fc5f37c1fcb53e2ce79d62b9c4be3aa0bb67..5c04fe2db9e799c52c747d1d950cdf905f079f16 100644 (file)
--- a/src/screen_lyrics.c
+++ b/src/screen_lyrics.c
#include "screen_lyrics.h"
#include "screen_interface.h"
-#include "screen_message.h"
+#include "screen_status.h"
#include "screen_file.h"
#include "screen_song.h"
#include "i18n.h"
diff --git a/src/screen_message.c b/src/screen_message.c
--- a/src/screen_message.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* ncmpc (Ncurses MPD Client)
- * (c) 2004-2010 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 "screen_message.h"
-#include "screen.h"
-
-#include <stdarg.h>
-
-void
-screen_status_message(const char *msg)
-{
- status_bar_message(&screen.status_bar, msg);
-}
-
-void
-screen_status_printf(const char *format, ...)
-{
- char *msg;
- va_list ap;
-
- va_start(ap,format);
- msg = g_strdup_vprintf(format,ap);
- va_end(ap);
- screen_status_message(msg);
- g_free(msg);
-}
diff --git a/src/screen_message.h b/src/screen_message.h
--- a/src/screen_message.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* ncmpc (Ncurses MPD Client)
- * (c) 2004-2010 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.
- */
-
-#ifndef NCMPC_SCREEN_MESSAGE_H
-#define NCMPC_SCREEN_MESSAGE_H
-
-void
-screen_status_message(const char *msg);
-
-void
-screen_status_printf(const char *format, ...);
-
-#endif
diff --git a/src/screen_outputs.c b/src/screen_outputs.c
index af0b2d35b96bbba812c4ce4da3037cc36e068ede..98c4d9cbe5db08d507e8085d6e6a299e6fb4d5e4 100644 (file)
--- a/src/screen_outputs.c
+++ b/src/screen_outputs.c
#include "screen_outputs.h"
#include "screen_interface.h"
-#include "screen_message.h"
+#include "screen_status.h"
#include "paint.h"
#include "i18n.h"
#include "list_window.h"
diff --git a/src/screen_queue.c b/src/screen_queue.c
index 31c4dcc8a93ad0801cf84e01c8dc9afd7022702e..b21dc3aa0536d21b5365919f14e8f04880d34460 100644 (file)
--- a/src/screen_queue.c
+++ b/src/screen_queue.c
#include "screen_queue.h"
#include "screen_interface.h"
#include "screen_file.h"
-#include "screen_message.h"
+#include "screen_status.h"
#include "screen_find.h"
#include "config.h"
#include "i18n.h"
diff --git a/src/screen_search.c b/src/screen_search.c
index 86c2bb171a74df7d335908e4325878146e77b60c..cff0b9da276e9b2314f74d5f38d6109c9587091a 100644 (file)
--- a/src/screen_search.c
+++ b/src/screen_search.c
#include "screen_search.h"
#include "screen_interface.h"
-#include "screen_message.h"
+#include "screen_status.h"
#include "screen.h"
#include "i18n.h"
#include "options.h"
diff --git a/src/screen_status.c b/src/screen_status.c
--- /dev/null
+++ b/src/screen_status.c
@@ -0,0 +1,42 @@
+/* ncmpc (Ncurses MPD Client)
+ * (c) 2004-2010 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 "screen_status.h"
+#include "screen.h"
+
+#include <stdarg.h>
+
+void
+screen_status_message(const char *msg)
+{
+ status_bar_message(&screen.status_bar, msg);
+}
+
+void
+screen_status_printf(const char *format, ...)
+{
+ char *msg;
+ va_list ap;
+
+ va_start(ap,format);
+ msg = g_strdup_vprintf(format,ap);
+ va_end(ap);
+ screen_status_message(msg);
+ g_free(msg);
+}
diff --git a/src/screen_status.h b/src/screen_status.h
--- /dev/null
+++ b/src/screen_status.h
@@ -0,0 +1,29 @@
+/* ncmpc (Ncurses MPD Client)
+ * (c) 2004-2010 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.
+ */
+
+#ifndef NCMPC_SCREEN_STATUS_H
+#define NCMPC_SCREEN_STATUS_H
+
+void
+screen_status_message(const char *msg);
+
+void
+screen_status_printf(const char *format, ...);
+
+#endif