[empathy] add accept/decline buttons to FT notifications
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [empathy] add accept/decline buttons to FT notifications
- Date: Wed,  7 Jul 2010 08:04:23 +0000 (UTC)
commit dd3a1f3f2ce8b7b6f7c7ed02ff956ca26bc556e2
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Jul 6 14:44:10 2010 +0200
    add accept/decline buttons to FT notifications
 src/empathy-status-icon.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c
index 08129b6..7b016e1 100644
--- a/src/empathy-status-icon.c
+++ b/src/empathy-status-icon.c
@@ -152,6 +152,16 @@ add_notification_actions (EmpathyStatusIcon *self,
 					self, NULL);
 			break;
 
+		case EMPATHY_EVENT_TYPE_TRANSFER:
+			notify_notification_add_action (notification,
+				"decline", _("Decline"), (NotifyActionCallback) notification_decline_cb,
+					self, NULL);
+
+			notify_notification_add_action (notification,
+				"accept", _("Accept"), (NotifyActionCallback) notification_approve_cb,
+					self, NULL);
+			break;
+
 		default:
 			break;
 	}
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]