From be2f6b93943c955481ad616412ef42e929b31974 Mon Sep 17 00:00:00 2001
From: Andre Noll <maan@systemlinux.org>
Date: Mon, 20 May 2013 22:12:40 +0200
Subject: [PATCH] gui: Use version_single_line().

No need to reinvent the wheel.
---
 gui.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/gui.c b/gui.c
index b874d082..4d2c9f72 100644
--- a/gui.c
+++ b/gui.c
@@ -605,8 +605,8 @@ static void print_welcome(void)
 {
 	if (loglevel > LL_NOTICE)
 		return;
-	outputf(COLOR_WELCOME, "Welcome to para_gui " PACKAGE_VERSION
-		" \"" CODENAME "\". Theme: %s", theme.name);
+	outputf(COLOR_WELCOME, "Welcome to %s. Theme: %s",
+		version_single_line("gui"), theme.name);
 	wclrtoeol(bot.win);
 }
 
@@ -1432,8 +1432,7 @@ static void com_enlarge_top_win(void)
 
 static void com_version(void)
 {
-	print_in_bar(COLOR_MSG, "para_gui " PACKAGE_VERSION " \""
-		CODENAME "\"");
+	print_in_bar(COLOR_MSG, "%s", version_single_line("gui"));
 }
 
 __noreturn static void com_quit(void)
-- 
2.39.5