]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
gui: Remove macro STANDARD_STATUS_BAR.
authorAndre Noll <maan@systemlinux.org>
Sun, 5 Jan 2014 05:03:32 +0000 (05:03 +0000)
committerAndre Noll <maan@systemlinux.org>
Sun, 4 May 2014 12:04:04 +0000 (14:04 +0200)
It's only referenced once in print_status_bar(), so we may as well
print the text there without defining a macro for it.

gui.c

diff --git a/gui.c b/gui.c
index e03fb28752511778a8c1a1b4d73e898b4e854578..6263c92000e9b091f3d5054f99da62d044a79c07 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -30,8 +30,6 @@
 INIT_GUI_ERRLISTS;
 static char *stat_content[NUM_STAT_ITEMS];
 
 INIT_GUI_ERRLISTS;
 static char *stat_content[NUM_STAT_ITEMS];
 
-#define STANDARD_STATUS_BAR "para_gui " PACKAGE_VERSION " (hit ? for help)"
-
 static int signal_pipe;
 
 static struct gui_window {
 static int signal_pipe;
 
 static struct gui_window {
@@ -371,7 +369,7 @@ static void print_status_bar(void)
 
        if (!curses_active)
                return;
 
        if (!curses_active)
                return;
-       tmp = para_strdup(STANDARD_STATUS_BAR);
+       tmp = para_strdup("para_gui " PACKAGE_VERSION " (hit ? for help)");
        wmove(sb.win, 0, 0);
        align_str(sb.win, tmp, sb.cols, CENTER);
        free(tmp);
        wmove(sb.win, 0, 0);
        align_str(sb.win, tmp, sb.cols, CENTER);
        free(tmp);