From af1f5cd8a2db5c7309bcc1920f11e7be01581137 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 8 Jul 2013 12:08:28 +0200 Subject: add new icon --- Makefile | 3 + netlink-notify-away.svg | 1003 +++++++++++++++++++++++++++++++++++++++++++++++ netlink-notify.c | 3 +- 3 files changed, 1008 insertions(+), 1 deletion(-) create mode 100644 netlink-notify-away.svg diff --git a/Makefile b/Makefile index a96f069..2ccb97c 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,7 @@ icons: $(CONVERT) netlink-notify-up.png netlink-notify-up.svg $(CONVERT) netlink-notify-down.png netlink-notify-down.svg $(CONVERT) netlink-notify-address.png netlink-notify-address.svg + $(CONVERT) netlink-notify-away.png netlink-notify-away.svg install: $(INSTALL) -D -m0755 netlink-notify $(DESTDIR)/usr/bin/netlink-notify @@ -24,9 +25,11 @@ install: $(INSTALL) -D -m0755 netlink-notify-up.svg $(DESTDIR)/usr/share/icons/hicolor/scalable/status/netlink-notify-up.svg $(INSTALL) -D -m0755 netlink-notify-down.svg $(DESTDIR)/usr/share/icons/hicolor/scalable/status/netlink-notify-down.svg $(INSTALL) -D -m0755 netlink-notify-address.svg $(DESTDIR)/usr/share/icons/hicolor/scalable/status/netlink-notify-address.svg + $(INSTALL) -D -m0755 netlink-notify-away.svg $(DESTDIR)/usr/share/icons/hicolor/scalable/status/netlink-notify-away.svg $(INSTALL) -D -m0755 netlink-notify-up.png $(DESTDIR)/usr/share/icons/hicolor/48x48/status/netlink-notify-up.png $(INSTALL) -D -m0755 netlink-notify-down.png $(DESTDIR)/usr/share/icons/hicolor/48x48/status/netlink-notify-down.png $(INSTALL) -D -m0755 netlink-notify-address.png $(DESTDIR)/usr/share/icons/hicolor/48x48/status/netlink-notify-address.png + $(INSTALL) -D -m0755 netlink-notify-away.png $(DESTDIR)/usr/share/icons/hicolor/48x48/status/netlink-notify-away.png clean: /bin/rm -f *.o *.png *~ netlink-notify diff --git a/netlink-notify-away.svg b/netlink-notify-away.svg new file mode 100644 index 0000000..24d301b --- /dev/null +++ b/netlink-notify-away.svg @@ -0,0 +1,1003 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/netlink-notify.c b/netlink-notify.c index 0e88458..f22c5b6 100644 --- a/netlink-notify.c +++ b/netlink-notify.c @@ -39,6 +39,7 @@ #define ICON_NETWORK_ADDRESS "netlink-notify-address" #define ICON_NETWORK_UP "netlink-notify-up" #define ICON_NETWORK_DOWN "netlink-notify-down" +#define ICON_NETWORK_AWAY "netlink-notify-away" #define TEXT_TOPIC "Netlink Notification" #define TEXT_NEWLINK "Interface %s is %s." @@ -351,7 +352,7 @@ static int msg_handler (struct sockaddr_nl *nl, struct nlmsghdr *msg) { case RTM_DELLINK: notifystr = newstr_away(TEXT_DELLINK, name[ifi->ifi_index]); - icon = ICON_NETWORK_DOWN; + icon = ICON_NETWORK_AWAY; free_chain(&addresses_seen[ifi->ifi_index]); free(name[ifi->ifi_index]); -- cgit v1.2.3-70-g09d2