changeset 3125:d4c3a48f1d92

skins: make_mainwin_title(): give me my damn playlist position back.
author William Pitcock <nenolod@atheme.org>
date Wed, 06 May 2009 13:53:49 -0500
parents b74c1fb4212f
children 2d2a50196556
files src/skins/ui_main.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/skins/ui_main.c	Wed May 06 12:10:28 2009 -0500
+++ b/src/skins/ui_main.c	Wed May 06 13:53:49 2009 -0500
@@ -378,8 +378,10 @@
 static gchar *
 make_mainwin_title(const gchar * title)
 {
+    Playlist *playlist = aud_playlist_get_active();
+
     if (title)
-        return g_strdup_printf(_("%s - Audacious"), title);
+        return g_strdup_printf(_("%d. %s - Audacious"), (aud_playlist_get_position(playlist) + 1), title);
     else
         return g_strdup(_("Audacious"));
 }