Make show notification write error to log file instead of printing it
This commit is contained in:
parent
a36ee089fe
commit
1420f9e5e0
1 changed files with 2 additions and 2 deletions
|
@ -6,10 +6,10 @@ void send_notification(uint8_t *author, uint8_t *content)
|
|||
NotifyNotification *notification = notify_notification_new((char *) author,
|
||||
(char *) content, "dialog-information");
|
||||
if (notification == NULL) {
|
||||
error(0, "Cannot create notification");
|
||||
write_log(LOG_ERROR, "Cannot create notification");
|
||||
}
|
||||
if (!notify_notification_show(notification, NULL)) {
|
||||
error(0, "Cannot show notifcation");
|
||||
write_log(LOG_ERROR, "Cannot show notifcation");
|
||||
}
|
||||
g_object_unref(G_OBJECT(notification));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue