]> git.0d.be Git - empathy.git/commitdiff
add accept/decline buttons to FT notifications
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 6 Jul 2010 12:44:10 +0000 (14:44 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 7 Jul 2010 08:03:37 +0000 (10:03 +0200)
src/empathy-status-icon.c

index 08129b61dc5e893ff0c00fdde781e0a4ca561042..7b016e13e1d7035e1c976db047ba357422aa9947 100644 (file)
@@ -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;
        }