return TRUE;
}
+
+NotifyNotification *
+empathy_notify_manager_create_notification (const gchar *summary,
+ const char *body,
+ const gchar *icon)
+{
+ NotifyNotification *notification;
+
+ notification = notify_notification_new (summary, body, icon);
+
+ return notification;
+}
#include <libempathy/empathy-contact.h>
+#include <libnotify/notification.h>
+
G_BEGIN_DECLS
#define EMPATHY_NOTIFY_MANAGER_CAP_ACTIONS "actions"
EmpathyContact *contact,
const char *icon_name);
+NotifyNotification * empathy_notify_manager_create_notification (
+ const gchar *summary,
+ const char *body,
+ const gchar *icon);
+
G_END_DECLS
#endif /* __EMPATHY_NOTIFY_MANAGER_H__ */
_("%s just tried to call you, but you were in another call."),
tp_contact_get_alias (contact));
- notification = notify_notification_new (summary, body, NULL);
+ notification = empathy_notify_manager_create_notification (summary, body,
+ NULL);
emp_contact = empathy_contact_dup_from_tp_contact (contact);
pixbuf = empathy_notify_manager_get_pixbuf_for_notification (
const gchar *category = empathy_chat_is_room (chat)
? EMPATHY_NOTIFICATION_CATEGORY_MENTIONED
: EMPATHY_NOTIFICATION_CATEGORY_CHAT;
- notification = notify_notification_new (header, escaped, NULL);
+
+ notification = empathy_notify_manager_create_notification (header,
+ escaped, NULL);
if (self->priv->notification == NULL)
self->priv->notification = notification;
* to an existing notification with the same title.
* In this way the previous message will not be lost: the new
* message will appear below it, in the same notification */
- notification = notify_notification_new (self->priv->event->header,
- message_esc, NULL);
+ notification = empathy_notify_manager_create_notification (
+ self->priv->event->header, message_esc, NULL);
if (self->priv->notification == NULL)
{