summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f205159)
raw | patch | inline | side by side (parent: f205159)
author | Kalle Wallin <kaw@linux.se> | |
Wed, 9 Jun 2004 17:27:05 +0000 (17:27 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Wed, 9 Jun 2004 17:27:05 +0000 (17:27 +0000) |
diff --git a/src/screen_clock.c b/src/screen_clock.c
index 459d9e4b9a5e5d29528c4dfcca710faac31022ec..3fe2ec1c910dfa9687f8e1e6fde951eb43186ca5 100644 (file)
--- a/src/screen_clock.c
+++ b/src/screen_clock.c
}
static char *
-clock_title(void)
+clock_title(char *str, size_t size)
{
- return _("Music Player Client - Clock");
+ return _("Clock");
}
static void
diff --git a/src/screen_file.c b/src/screen_file.c
index f86e8df95d16f2ee6c20663b4673d3b6668e2c77..8b7577fdfde71c5a4cefe41b0a1dc4b0342edf10 100644 (file)
--- a/src/screen_file.c
+++ b/src/screen_file.c
/*
- * (c) 2004 by Kalle Wallin (kaw@linux.se)
+ * $Id$
+ *
+ * (c) 2004 by Kalle Wallin <kaw@linux.se>
*
* 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
}
static char *
-file_title(void)
+file_title(char *str, size_t size)
{
- static char buf[TITLESIZE];
char *tmp;
tmp = utf8_to_locale(basename(mpc->cwd));
- snprintf(buf, TITLESIZE, _("Browse: %s"), tmp);
+ snprintf(str, size, _("Browse: %s"), tmp);
g_free(tmp);
- return buf;
+ return str;
}
static void
diff --git a/src/screen_help.c b/src/screen_help.c
index 0299d6ca418caaf1bb2407b33a04da3a1ca642e1..8584bb7c9a107001b4d2276673fd625647b8b7b5 100644 (file)
--- a/src/screen_help.c
+++ b/src/screen_help.c
/*
- * (c) 2004 by Kalle Wallin (kaw@linux.se)
+ * $Id$
+ *
+ * (c) 2004 by Kalle Wallin <kaw@linux.se>
*
* 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
static char *
-help_title(void)
+help_title(char *str, size_t size)
{
- return _("Music Player Client - Help");
+ return _("Help");
}
static void
diff --git a/src/screen_keydef.c b/src/screen_keydef.c
index 16311af56b73c6aa75c25e1dc4c2f13e8b8d0140..2dda43db9225fcfeee086e97fb35a97a5a8221f9 100644 (file)
--- a/src/screen_keydef.c
+++ b/src/screen_keydef.c
/*
- * (c) 2004 by Kalle Wallin (kaw@linux.se)
+ * $Id$
+ *
+ * (c) 2004 by Kalle Wallin <kaw@linux.se>
*
* 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
}
static char *
-keydef_title(void)
+keydef_title(char *str, size_t size)
{
- static char buf[BUFSIZE];
-
if( subcmd<0 )
return _("Edit key bindings");
- snprintf(buf, BUFSIZE,
- _("Edit keys for %s"),
- cmds[subcmd].name);
- return buf;
+ snprintf(str, size, _("Edit keys for %s"), cmds[subcmd].name);
+ return str;
}
static void
diff --git a/src/screen_play.c b/src/screen_play.c
index 8d3fc6cf77691b881a27d7e0343fbece3b2623d2..9dc2a9651a982b3b1093be517004e1ec37240320 100644 (file)
--- a/src/screen_play.c
+++ b/src/screen_play.c
}
static char *
-play_title(void)
+play_title(char *str, size_t size)
{
- return _("Music Player Client - Playlist");
+ if( strcmp(options.host, "localhost") == 0 )
+ return _("Playlist");
+
+ snprintf(str, size, _("Playlist on %s"), options.host);
+
+ return str;
}
static void