diff options
author | Christian Hesse <mail@eworm.de> | 2015-07-09 16:45:10 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2015-07-09 16:45:10 +0200 |
commit | d603590d744cfc4ee0305244e9447e61c43c400d (patch) | |
tree | 95582e2f06e812f5e8a87c50bcacab5473670a13 | |
parent | a9e365e1d6fab83f7557499e45b0e06291de0240 (diff) | |
download | mpd-notification-d603590d744cfc4ee0305244e9447e61c43c400d.tar.gz mpd-notification-d603590d744cfc4ee0305244e9447e61c43c400d.tar.zst |
rename define after icon name
-rw-r--r-- | config.def.h | 2 | ||||
-rw-r--r-- | mpd-notification.c | 6 |
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); |