[xchat-gnome] libnotify has removed the ability to attach notifications to widgets or positions update notify_noti
- From: Ritesh Khadgaray <rkhadgaray src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [xchat-gnome] libnotify has removed the ability to attach notifications to widgets or positions update notify_noti
- Date: Mon, 6 Dec 2010 18:03:42 +0000 (UTC)
commit 557c940ba6e5f181f1db50059aa9ce107f10cb2e
Author: Ritesh Khadgaray <khadgaray gmail com>
Date: Mon Dec 6 23:33:02 2010 +0530
libnotify has removed the ability to attach notifications to widgets or positions
update notify_notification_new call
plugins/notify-osd/notify-osd.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/plugins/notify-osd/notify-osd.c b/plugins/notify-osd/notify-osd.c
index cee221f..c7e8f77 100644
--- a/plugins/notify-osd/notify-osd.c
+++ b/plugins/notify-osd/notify-osd.c
@@ -67,7 +67,12 @@ add_notify (char *summary, char *message)
gchar *escaped;
escaped = g_markup_escape_text (message, strlen(message));
+#if !NOTIFY_CHECK_VERSION(0,7,0)
notify = notify_notification_new (summary, escaped, NULL, NULL);
+#else
+ notify = notify_notification_new (summary, escaped, NULL);
+#endif
+
notify_notification_set_urgency (notify, NOTIFY_URGENCY_NORMAL);
notify_notification_set_icon_from_pixbuf (notify, notify_icon);
if (!notify_notification_show (notify, &error)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]