changeset 3296:c1f506c2b1d0 trunk

new format strings
author William Pitcock <nenolod@atheme-project.org>
date Fri, 10 Aug 2007 03:58:14 -0500
parents 6600abe94a3f
children 575f59c45eaf
files src/audacious/main.c
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/main.c	Fri Aug 10 03:50:41 2007 -0500
+++ b/src/audacious/main.c	Fri Aug 10 03:58:14 2007 -0500
@@ -246,12 +246,12 @@
 } bmp_cfg_strent;
 
 const gchar *bmp_titlestring_presets[] = {
-    "%t",
-    "%{p:%p - %}%t",
-    "%{p:%p - %}%{a:%a - %}%t",
-    "%{p:%p - %}%{a:%a - %}%{n:%n. %}%t",
-    "%{p:%p %}%{a:[ %a ] %}%{p:- %}%{n:%n. %}%{t:%t%}",
-    "%{a:%a - %}%t"
+    "${title}",
+    "${?artist:${artist} - }${title}",
+    "${?artist:${artist} - }${?album:${album} - }${title}",
+    "${?artist:${artist} - }${?album:${album} - }${?track-number:${track-number}. }${title}",
+    "${?artist:${artist} }${?album:[ ${album} ] }${?artist:- }${?track-number:${track-number}. }${title}",
+    "${?album:${album} - }${title}"
 };
 
 const guint n_titlestring_presets = G_N_ELEMENTS(bmp_titlestring_presets);
@@ -629,7 +629,7 @@
         cfg.mainwin_font = g_strdup(MAINWIN_DEFAULT_FONT);
 
     if (!cfg.gentitle_format)
-        cfg.gentitle_format = g_strdup("%{p:%p - %}%{a:%a - %}%t");
+        cfg.gentitle_format = g_strdup("%{?artist:${artist} - }${?album:${album} - }${title}");
 
     if (!cfg.outputplugin) {
     gint iter;