diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-04-07 17:22:03 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-04-09 18:33:56 +0800 |
commit | c8ed0aa2975b0e549e28c5e65d262e362a94c507 (patch) | |
tree | 387d6023ad0fa164c8e2719305c912273d5d44db /src | |
parent | 663b3a5cd91eb33a776094adb2c3bb8fad5a688d (diff) | |
download | gsoc2013-empathy-c8ed0aa2975b0e549e28c5e65d262e362a94c507.tar gsoc2013-empathy-c8ed0aa2975b0e549e28c5e65d262e362a94c507.tar.gz gsoc2013-empathy-c8ed0aa2975b0e549e28c5e65d262e362a94c507.tar.bz2 gsoc2013-empathy-c8ed0aa2975b0e549e28c5e65d262e362a94c507.tar.lz gsoc2013-empathy-c8ed0aa2975b0e549e28c5e65d262e362a94c507.tar.xz gsoc2013-empathy-c8ed0aa2975b0e549e28c5e65d262e362a94c507.tar.zst gsoc2013-empathy-c8ed0aa2975b0e549e28c5e65d262e362a94c507.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-status-icon.c | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c index 382234078..36953a33b 100644 --- a/src/empathy-status-icon.c +++ b/src/empathy-status-icon.c @@ -77,24 +77,11 @@ 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 g_object_unref (notification); @@ -106,19 +93,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 |