static void status_icon_event_removed_cb (EmpathyEventManager *manager, EmpathyEvent *event, EmpathyStatusIcon *icon) { EmpathyStatusIconPriv *priv = GET_PRIV (icon); if (event != priv->event) { return; } priv->event = empathy_event_manager_get_top_event (priv->event_manager); status_icon_update_tooltip (icon); status_icon_update_icon (icon); /* update notification anyway, as it's safe and we might have been * changed presence in the meanwhile */ status_icon_update_notification (icon); if (!priv->event && priv->blink_timeout) { g_source_remove (priv->blink_timeout); priv->blink_timeout = 0; } }
static void status_icon_event_removed_cb (EmpathyEventManager *manager, EmpathyEvent *event, EmpathyStatusIcon *icon) { EmpathyStatusIconPriv *priv = GET_PRIV (icon); if (event != priv->event) { return; } priv->event = empathy_event_manager_get_top_event (priv->event_manager); status_icon_update_tooltip (icon); status_icon_update_icon (icon); if (!priv->event && priv->blink_timeout) { g_source_remove (priv->blink_timeout); priv->blink_timeout = 0; } }