summaryrefslogtreecommitdiffstats
path: root/netlink-notify.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-04-16 18:20:50 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-04-16 18:20:50 +0200
commit239af23e52c6ad02caef440117bb35d4c9afac81 (patch)
tree11c7a0b6c802eaad31931753d6d6e491ec945de9 /netlink-notify.c
parent51aeab265a12ce9383556f4a6de22fb46a6e7704 (diff)
downloadnetlink-notify-239af23e52c6ad02caef440117bb35d4c9afac81.tar.gz
netlink-notify-239af23e52c6ad02caef440117bb35d4c9afac81.tar.zst
use the new icons0.3.1
Diffstat (limited to 'netlink-notify.c')
-rw-r--r--netlink-notify.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/netlink-notify.c b/netlink-notify.c
index 9679a45..cabde0f 100644
--- a/netlink-notify.c
+++ b/netlink-notify.c
@@ -24,8 +24,8 @@
#define DEBUG 0
#endif
-#define ICON_NETWORK_ONLINE "network-transmit-receive"
-#define ICON_NETWORK_OFFLINE "network-error"
+#define ICON_NETWORK_CONNECTED "netlink-notify-connected"
+#define ICON_NETWORK_DISCONNECTED "netlink-notify-disconnected"
#define TEXT_TOPIC "Netlink Notification"
#define TEXT_NOTIFICATION "Interface <b>%s</b> is <b>%s</b>."
@@ -89,11 +89,11 @@ static int data_cb(const struct nlmsghdr * nlh, void * data) {
}
if (notificationref[ifm->ifi_index] == 0) {
- notification = notify_notification_new(TEXT_TOPIC, notifystr, (ifm->ifi_flags & IFF_RUNNING ? ICON_NETWORK_ONLINE : ICON_NETWORK_OFFLINE));
+ notification = notify_notification_new(TEXT_TOPIC, notifystr, (ifm->ifi_flags & IFF_RUNNING ? ICON_NETWORK_CONNECTED : ICON_NETWORK_DISCONNECTED));
notificationref[ifm->ifi_index] = (size_t)notification;
} else {
notification = (NotifyNotification *)notificationref[ifm->ifi_index];
- notify_notification_update(notification, TEXT_TOPIC, notifystr, (ifm->ifi_flags & IFF_RUNNING ? ICON_NETWORK_ONLINE : ICON_NETWORK_OFFLINE));
+ notify_notification_update(notification, TEXT_TOPIC, notifystr, (ifm->ifi_flags & IFF_RUNNING ? ICON_NETWORK_CONNECTED : ICON_NETWORK_DISCONNECTED));
}
notify_notification_set_timeout(notification, NOTIFICATION_TIMEOUT);