summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-04-09 12:50:23 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-04-09 12:50:23 +0200
commite9ac4ddd0f527317ddec9a6efc000e0c74c6b35f (patch)
tree2bb56c0fa1b8e2e6af7d8fb5c2523be6ec8b30d8
parentdb7ff361a82a72d0bcef94c82877ffc1e783e8ee (diff)
downloadempathy-e9ac4ddd0f527317ddec9a6efc000e0c74c6b35f.tar.gz
status-icon: don't approve event if notification bubble has been dismissed
This code was broken anyway so we don't change the current behaviour.
-rw-r--r--src/empathy-status-icon.c27
1 files changed, 2 insertions, 25 deletions
diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c
index d1ea96c98..c7a83be4f 100644
--- a/src/empathy-status-icon.c
+++ b/src/empathy-status-icon.c
@@ -77,24 +77,12 @@ typedef struct {
G_DEFINE_TYPE (EmpathyStatusIcon, empathy_status_icon, G_TYPE_OBJECT);
-static gboolean
-activate_event (EmpathyEvent *event)
-{
- empathy_event_activate (event);
-
- return FALSE;
-}
-
static void
status_icon_notification_closed_cb (NotifyNotification *notification,
EmpathyStatusIcon *icon)
{
EmpathyStatusIconPriv *priv = GET_PRIV (icon);
- EmpathyNotificationClosedReason reason = 0;
-#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;
@@ -104,19 +92,8 @@ status_icon_notification_closed_cb (NotifyNotification *notification,
return;
}
- /* the notification has been closed by the user, see the
- * DesktopNotification spec.
- */
- if (reason == EMPATHY_NOTIFICATION_CLOSED_DISMISSED) {
- /* use an idle here, as this callback is called from a
- * DBus signal handler inside libnotify, and we might call
- * a *_run_* method when activating the event.
- */
- g_idle_add ((GSourceFunc) activate_event, priv->event);
- } else {
- /* inhibit other updates for this event */
- empathy_event_inhibit_updates (priv->event);
- }
+ /* inhibit other updates for this event */
+ empathy_event_inhibit_updates (priv->event);
}
static void