From 7fea45ce0c7e197a2e82b47f9828af573d592bc7 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 30 Jan 2009 17:07:55 +0000 Subject: Make possible to use libnotify 0.4.4, to not force the usage of too recent distributions. svn path=/trunk/; revision=2291 --- src/empathy-chat-window.c | 4 +++- src/empathy-status-icon.c | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c index e080a5317..31a2866a6 100644 --- a/src/empathy-chat-window.c +++ b/src/empathy-chat-window.c @@ -847,9 +847,11 @@ static void chat_window_notification_closed_cb (NotifyNotification *notify, EmpathyChat *chat) { - int reason; + int reason = 1; +#ifdef notify_notification_get_closed_reason reason = notify_notification_get_closed_reason (notify); +#endif if (reason == 2) { g_idle_add ((GSourceFunc) notification_closed_idle_cb, chat); diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c index 86a2c84fa..08293de55 100644 --- a/src/empathy-status-icon.c +++ b/src/empathy-status-icon.c @@ -83,10 +83,11 @@ status_icon_notification_closed_cb (NotifyNotification *notification, EmpathyStatusIcon *icon) { EmpathyStatusIconPriv *priv = GET_PRIV (icon); - int reason; + int reason = 1; +#ifdef notify_notification_get_closed_reason reason = notify_notification_get_closed_reason (notification); - +#endif if (priv->notification) { g_object_unref (priv->notification); priv->notification = NULL; -- cgit v1.2.3