From a597d3012d2b09b0c453fab9725223137d42327f Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 30 Jan 2009 17:07:15 +0000 Subject: If the notification is not dismissed by the user, do not display other notifications for new incoming messages. svn path=/trunk/; revision=2279 --- src/empathy-status-icon.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/empathy-status-icon.c') diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c index 6635b91be..a1d3704ea 100644 --- a/src/empathy-status-icon.c +++ b/src/empathy-status-icon.c @@ -92,11 +92,18 @@ status_icon_notification_closed_cb (NotifyNotification *notification, priv->notification = NULL; } + if (!priv->event) { + return; + } + /* the notification has been closed by the user, see the * DesktopNotification spec. */ - if (reason == 2 && priv->event) { + if (reason == 2) { g_idle_add ((GSourceFunc) activate_event, priv->event); + } else { + /* inhibit other updates for this event */ + empathy_event_inhibit_updates (priv->event); } } -- cgit v1.2.3