aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-chat-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/empathy-chat-window.c')
-rw-r--r--src/empathy-chat-window.c4
1 files changed, 3 insertions, 1 deletions
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);