aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.def.h2
-rw-r--r--mpd-notification.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/config.def.h b/config.def.h
index 8e86b5a..74f188d 100644
--- a/config.def.h
+++ b/config.def.h
@@ -12,7 +12,7 @@
#define NOTIFICATION_TIMEOUT 10000
/* name of the icon used for notifications */
-#define ICON_SOUND "audio-x-generic"
+#define ICON_AUDIO_X_GENERIC "audio-x-generic"
/* strings used to display notification messages
* TEXT_PLAY needs to include three '%s', in order:
diff --git a/mpd-notification.c b/mpd-notification.c
index 5bbffa5..0194607 100644
--- a/mpd-notification.c
+++ b/mpd-notification.c
@@ -277,9 +277,9 @@ int main(int argc, char ** argv) {
notification =
# if NOTIFY_CHECK_VERSION(0, 7, 0)
- notify_notification_new(TEXT_TOPIC, TEXT_NONE, ICON_SOUND);
+ notify_notification_new(TEXT_TOPIC, TEXT_NONE, ICON_AUDIO_X_GENERIC);
# else
- notify_notification_new(TEXT_TOPIC, TEXT_NONE, ICON_SOUND, NULL);
+ notify_notification_new(TEXT_TOPIC, TEXT_NONE, ICON_AUDIO_X_GENERIC, NULL);
# endif
notify_notification_set_category(notification, PROGNAME);
notify_notification_set_urgency (notification, NOTIFY_URGENCY_NORMAL);
@@ -343,7 +343,7 @@ int main(int argc, char ** argv) {
if (verbose > 0)
printf("%s: %s\n", program, notifystr);
- notify_notification_update(notification, TEXT_TOPIC, notifystr, icon ? icon : ICON_SOUND);
+ notify_notification_update(notification, TEXT_TOPIC, notifystr, icon ? icon : ICON_AUDIO_X_GENERIC);
if (pixbuf != NULL)
notify_notification_set_image_from_pixbuf(notification, pixbuf);