[empathy] Don't display the 'respond' button in presence notifications (#610032)



commit 93f0695d387c3cb939c052848aa4c002090ddc81
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Feb 16 14:55:59 2010 +0000

    Don't display the 'respond' button in presence notifications (#610032)
    
    This button doesn't make anything as this event is not activatable. Plan is to
    display better button at some point (see bug 597124) but for now let's remove
    this button when it's useless.

 src/empathy-status-icon.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c
index 2dabc54..d0cdac3 100644
--- a/src/empathy-status-icon.c
+++ b/src/empathy-status-icon.c
@@ -169,7 +169,8 @@ status_icon_update_notification (EmpathyStatusIcon *icon)
 							 NOTIFY_EXPIRES_DEFAULT);
 
 			if (empathy_notify_manager_has_capability (priv->notify_mgr,
-			           EMPATHY_NOTIFY_MANAGER_CAP_ACTIONS)) {
+			           EMPATHY_NOTIFY_MANAGER_CAP_ACTIONS) &&
+			           priv->event->type != EMPATHY_EVENT_TYPE_PRESENCE) {
 				notify_notification_add_action (priv->notification,
 					"respond",
 					_("Respond"),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]