Mercurial > audlegacy
comparison Plugins/General/notify/notify.c @ 1499:959ebef04f70 trunk
[svn] - Don't show "(null)" information.
author | nhjm449 |
---|---|
date | Fri, 04 Aug 2006 02:46:05 -0700 |
parents | 01353675606b |
children | bf9374436d1d |
comparison
equal
deleted
inserted
replaced
1498:01353675606b | 1499:959ebef04f70 |
---|---|
74 | 74 |
75 if (tuple == NULL) | 75 if (tuple == NULL) |
76 return TRUE; | 76 return TRUE; |
77 | 77 |
78 tmpbuf = g_strdup_printf("<b>%s</b>\n<i>%s</i>\n%s", | 78 tmpbuf = g_strdup_printf("<b>%s</b>\n<i>%s</i>\n%s", |
79 tuple->performer, | 79 (tuple->performer ? tuple->performer : "Unknown Artist"), |
80 tuple->album_name, | 80 (tuple->album_name ? tuple->album_name : "Unknown Album"), |
81 tuple->track_name); | 81 tuple->track_name); |
82 | 82 |
83 do_notification("Audacious", tmpbuf, DATA_DIR "/pixmaps/audacious.png"); | 83 do_notification("Audacious", tmpbuf, DATA_DIR "/pixmaps/audacious.png"); |
84 g_free(tmpbuf); | 84 g_free(tmpbuf); |
85 } | 85 } |