# HG changeset patch # User nenolod # Date 1154670845 25200 # Node ID df4b1ed6b7176ae0e9b3527d93dfbdb875988ab7 # Parent 30f121eb17a6410a6d18ec0f6edab18e5cfd6d1f [svn] - use tuples (and build tuples if they aren't there :P) diff -r 30f121eb17a6 -r df4b1ed6b717 ChangeLog --- 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 + 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 revision [1888] Updated dutch translation. 990 translated messages. diff -r 30f121eb17a6 -r df4b1ed6b717 Plugins/General/notify/notify.c --- 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("%s\n%s\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;