From 12b23410bd90309789d3f3b5206f0cde015c31b0 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 3 Jan 2013 13:04:38 +0100 Subject: factor out empathy_notify_manager_create_notification() https://bugzilla.gnome.org/show_bug.cgi?id=691043 --- libempathy-gtk/empathy-notify-manager.c | 12 ++++++++++++ libempathy-gtk/empathy-notify-manager.h | 7 +++++++ 2 files changed, 19 insertions(+) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-notify-manager.c b/libempathy-gtk/empathy-notify-manager.c index 250354282..89ab3c1c8 100644 --- a/libempathy-gtk/empathy-notify-manager.c +++ b/libempathy-gtk/empathy-notify-manager.c @@ -216,3 +216,15 @@ empathy_notify_manager_notification_is_enabled (EmpathyNotifyManager *self) 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; +} diff --git a/libempathy-gtk/empathy-notify-manager.h b/libempathy-gtk/empathy-notify-manager.h index 0b937e1d5..53c7b38f9 100644 --- a/libempathy-gtk/empathy-notify-manager.h +++ b/libempathy-gtk/empathy-notify-manager.h @@ -25,6 +25,8 @@ #include +#include + G_BEGIN_DECLS #define EMPATHY_NOTIFY_MANAGER_CAP_ACTIONS "actions" @@ -104,6 +106,11 @@ GdkPixbuf * empathy_notify_manager_get_pixbuf_for_notification ( 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__ */ -- cgit v1.2.3