Code

rename screen_message to screen_status
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Tue, 22 Nov 2011 21:54:55 +0000 (22:54 +0100)
committerJonathan 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.

19 files changed:
Makefile.am
src/list_window.c
src/main.c
src/player_command.c
src/screen.c
src/screen_artist.c
src/screen_browser.c
src/screen_client.c
src/screen_file.c
src/screen_find.c
src/screen_keydef.c
src/screen_lyrics.c
src/screen_message.c [deleted file]
src/screen_message.h [deleted file]
src/screen_outputs.c
src/screen_queue.c
src/screen_search.c
src/screen_status.c [new file with mode: 0644]
src/screen_status.h [new file with mode: 0644]

index dce18a5473faf701c119a1fb61292c84e83eb9b3..b4207cdf29489e64d32aff31a89aeec63a9f6809 100644 (file)
@@ -30,7 +30,7 @@ ncmpc_headers = \
        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 \
@@ -90,7 +90,7 @@ src_ncmpc_SOURCES = \
        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 \
index 66c6d21361817ce61202d125be1564c085be707f..1c143d3d7918dcf53e3ef0a4dc1a970d1d068dff 100644 (file)
@@ -25,7 +25,7 @@
 #include "command.h"
 #include "colors.h"
 #include "paint.h"
-#include "screen_message.h"
+#include "screen_status.h"
 #include "i18n.h"
 
 #include <assert.h>
index 389b8c68e570f2c8eb52a22e0419a81cfa62f35d..60f5d21c92290b4193eae1e1c6fd649c2ebb2744 100644 (file)
@@ -27,7 +27,7 @@
 #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"
index 2455c83e58cdb74b5645730c0a91590c5c0e073b..59c97253fee813e78fcda2d718b775428b775de7 100644 (file)
@@ -22,7 +22,7 @@
 #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;
index fdc168adb5efc3869e65425e6579a3d6d8cd4c8a..b341a8a65ffdb9cb75b6f3ac79fd140eecea7cb4 100644 (file)
@@ -21,7 +21,7 @@
 #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"
index 3ae214545ff3b1766f3859529be494c5ae60f6bc..2b6448e6398fd513948489fbdce71e2a0a44cd38 100644 (file)
@@ -19,7 +19,7 @@
 
 #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"
index 04673f4e85a7e5632525a3cf19820fcab1d80ad6..41783b5cc05520edabc940903cd8d6fb17e9e035 100644 (file)
@@ -22,7 +22,7 @@
 #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"
index f864f1998498e810ea182feddbf3183344220f14..b8e936fdbc0fe6147edd4bbd961f2c590551368d 100644 (file)
@@ -19,7 +19,7 @@
 
 #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"
index 73f56005f51f244ca26d4972c9441846931ddb36..46ffdc20f8dff9f593497b1c88bb42e160ea8f40 100644 (file)
@@ -20,7 +20,7 @@
 #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"
index 4113c39a522a1aef207c03540a60dac708ec25a1..3fdf9f30dd923914723c2e85658161e95a8a322f 100644 (file)
@@ -19,7 +19,7 @@
 
 #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"
index 8ecc003ac94cc0493a0c6daaef125dafc9cb5769..cc3ccb5af9cba984acc042ea6511fc9af08ed2bd 100644 (file)
@@ -19,7 +19,7 @@
 
 #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"
index e655fc5f37c1fcb53e2ce79d62b9c4be3aa0bb67..5c04fe2db9e799c52c747d1d950cdf905f079f16 100644 (file)
@@ -19,7 +19,7 @@
 
 #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
deleted file mode 100644 (file)
index 6bb907d..0000000
+++ /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
deleted file mode 100644 (file)
index fa789a6..0000000
+++ /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
index af0b2d35b96bbba812c4ce4da3037cc36e068ede..98c4d9cbe5db08d507e8085d6e6a299e6fb4d5e4 100644 (file)
@@ -19,7 +19,7 @@
 
 #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"
index 31c4dcc8a93ad0801cf84e01c8dc9afd7022702e..b21dc3aa0536d21b5365919f14e8f04880d34460 100644 (file)
@@ -20,7 +20,7 @@
 #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"
index 86c2bb171a74df7d335908e4325878146e77b60c..cff0b9da276e9b2314f74d5f38d6109c9587091a 100644 (file)
@@ -19,7 +19,7 @@
 
 #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
new file mode 100644 (file)
index 0000000..36f8753
--- /dev/null
@@ -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
new file mode 100644 (file)
index 0000000..d951290
--- /dev/null
@@ -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