changeset 946:8cfe13fcd0c7 trunk

[svn] - Forgot a few things regarding titlestrings!
author nhjm449
date Sun, 16 Apr 2006 18:34:59 -0700
parents 6b3750ab5eab
children 47642e4e456c
files audacious/glade/prefswin.glade audacious/main.c audacious/prefswin.c
diffstat 3 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/audacious/glade/prefswin.glade	Sun Apr 16 17:51:07 2006 -0700
+++ b/audacious/glade/prefswin.glade	Sun Apr 16 18:34:59 2006 -0700
@@ -2584,6 +2584,8 @@
 					  <property name="items" translatable="yes">TITLE
 ARTIST - TITLE
 ARTIST - ALBUM - TITLE
+ARTIST - ALBUM - TRACK. TITLE
+ARTIST [ ALBUM ] - TRACK. TITLE
 ALBUM - TITLE
 Custom</property>
 					  <property name="add_tearoffs">False</property>
--- a/audacious/main.c	Sun Apr 16 17:51:07 2006 -0700
+++ b/audacious/main.c	Sun Apr 16 18:34:59 2006 -0700
@@ -188,7 +188,7 @@
     FALSE,                      /* show window decorations */
     8,                          /* mouse wheel scroll step */
     FALSE,                      /* playlist transparent */
-    2,                          /* 2nd preset (ARTIST - TITLE) */
+    4,                          /* 5th preset (ARTIST [ ALBUM ] - TRACK. TITLE) */
     NULL,                       /* title format */
     FALSE,                      /* software volume control enabled */
     TRUE,                       /* UNUSED (XMMS compatibility mode) */
@@ -216,12 +216,11 @@
 
 const gchar *bmp_titlestring_presets[] = {
     "%t",
-    "%p - %t",
-    "%p - %a - %t",
-    "%p - %{a:%a - %}%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 - %t"
+    "%{a:%a - %}%t"
 };
 
 const guint n_titlestring_presets = G_N_ELEMENTS(bmp_titlestring_presets);
--- a/audacious/prefswin.c	Sun Apr 16 17:51:07 2006 -0700
+++ b/audacious/prefswin.c	Sun Apr 16 18:34:59 2006 -0700
@@ -847,7 +847,7 @@
     gint position = gtk_combo_box_get_active(GTK_COMBO_BOX(cbox));
     
     cfg.titlestring_preset = position;
-    gtk_widget_set_sensitive(GTK_WIDGET(data), (position == 4));
+    gtk_widget_set_sensitive(GTK_WIDGET(data), (position == 6));
 }
 
 static void