diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-31 01:07:15 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-31 01:07:15 +0800 |
commit | a597d3012d2b09b0c453fab9725223137d42327f (patch) | |
tree | f4186734e220973e8b4dc783edaf63a6120ef216 /src/empathy-status-icon.c | |
parent | aec95ff0ec211bb0c5d65e599033e9e60f18b29c (diff) | |
download | gsoc2013-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.c | 9 |
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); } } |