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