LibnotifyNotification: verify if the "actions" capability is supported before adding actions

This would prevent to add actions to notifier such as Ubuntu's Notify-OSD
which doesn't support them.
This commit is contained in:
Marco Trevisan (Treviño) 2016-04-13 04:43:22 +02:00
parent a22dc8676f
commit 743ceed780
2 changed files with 18 additions and 30 deletions

View file

@ -35,8 +35,6 @@ class LibnotifyNotification : public Notification {
void NotificationFailed();
static LibNotifyLoader libnotify_loader_;
NotifyNotification* notification_;
DISALLOW_COPY_AND_ASSIGN(LibnotifyNotification);