aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-status-icon.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2009-01-31 01:07:15 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-31 01:07:15 +0800
commita597d3012d2b09b0c453fab9725223137d42327f (patch)
treef4186734e220973e8b4dc783edaf63a6120ef216 /src/empathy-status-icon.c
parentaec95ff0ec211bb0c5d65e599033e9e60f18b29c (diff)
downloadgsoc2013-empathy-a597d3012d2b09b0c453fab9725223137d42327f.tar
gsoc2013-empathy-a597d3012d2b09b0c453fab9725223137d42327f.tar.gz
gsoc2013-empathy-a597d3012d2b09b0c453fab9725223137d42327f.tar.bz2
gsoc2013-empathy-a597d3012d2b09b0c453fab9725223137d42327f.tar.lz
gsoc2013-empathy-a597d3012d2b09b0c453fab9725223137d42327f.tar.xz
gsoc2013-empathy-a597d3012d2b09b0c453fab9725223137d42327f.tar.zst
gsoc2013-empathy-a597d3012d2b09b0c453fab9725223137d42327f.zip
If the notification is not dismissed by the user, do not display other notifications for new incoming messages.
svn path=/trunk/; revision=2279
Diffstat (limited to 'src/empathy-status-icon.c')
-rw-r--r--src/empathy-status-icon.c9
1 files changed, 8 insertions, 1 deletions
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);
}
}