Mercurial > audlegacy
changeset 1489:df4b1ed6b717 trunk
[svn] - use tuples (and build tuples if they aren't there :P)
author | nenolod |
---|---|
date | Thu, 03 Aug 2006 22:54:05 -0700 |
parents | 30f121eb17a6 |
children | ded11c19cc0a |
files | ChangeLog Plugins/General/notify/notify.c |
diffstat | 2 files changed, 22 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Aug 03 22:32:07 2006 -0700 +++ b/ChangeLog Thu Aug 03 22:54:05 2006 -0700 @@ -1,3 +1,13 @@ +2006-08-04 05:32:07 +0000 William Pitcock <nenolod@nenolod.net> + revision [1890] + - add libnotify plugin + + + Changes: Modified: + +16 -0 trunk/Plugins/General/notify/Makefile + +110 -0 trunk/Plugins/General/notify/notify.c + + 2006-08-03 08:40:18 +0000 Tony Vroon <chainsaw@gentoo.org> revision [1888] Updated dutch translation. 990 translated messages.
--- a/Plugins/General/notify/notify.c Thu Aug 03 22:32:07 2006 -0700 +++ b/Plugins/General/notify/notify.c Thu Aug 03 22:54:05 2006 -0700 @@ -57,7 +57,18 @@ if (pos != notify_playlist_pos) { - do_notification("Audacious", playlist_get_songtitle(pos), DATA_DIR "/pixmaps/audacious.png"); + gchar *tmpbuf; + + /* XXX: this is arguably wrong, but works -nenolod */ + if (playlist_position->tuple == NULL) + playlist_get_tuple(pos); + + tmpbuf = g_strdup_printf("<b>%s</b>\n<i>%s</i>\n%s", + playlist_position->tuple->performer, + playlist_position->tuple->album_name, + playlist_position->tuple->track_name); + do_notification("Audacious", tmpbuf, DATA_DIR "/pixmaps/audacious.png"); + g_free(tmpbuf); } notify_playlist_pos = pos;