X-Git-Url: http://cgit.sxemacs.org/?p=gnus;a=blobdiff_plain;f=lisp%2Fgnus-notifications.el;h=2941cc46e4a3f69a1a3f805c0e7b533b747c5417;hp=0621c23c20c2eb228c8ec0a0aec6b3e6fc76c463;hb=dd2bbb95234eb1d65e1a3a504f40339a4be85418;hpb=b4bc300f0dcddc2b17bb50a3501ed6e6db1ef12c diff --git a/lisp/gnus-notifications.el b/lisp/gnus-notifications.el index 0621c23c2..2941cc46e 100644 --- a/lisp/gnus-notifications.el +++ b/lisp/gnus-notifications.el @@ -1,6 +1,6 @@ ;; gnus-notifications.el -- Send notification on new message in Gnus -;; Copyright (C) 2012-2014 Free Software Foundation, Inc. +;; Copyright (C) 2012-2015 Free Software Foundation, Inc. ;; Author: Julien Danjou ;; Keywords: news @@ -92,9 +92,9 @@ Return a notification id if any, or t on success." :body subject :actions '("read" "Read") :on-action 'gnus-notifications-action - :app-icon (or photo-file - (gnus-funcall-no-warning - 'image-search-load-path "gnus/gnus.png")) + :app-icon (gnus-funcall-no-warning + 'image-search-load-path "gnus/gnus.png") + :image-path photo-file :app-name "Gnus" :category "email.arrived" :timeout gnus-notifications-timeout) @@ -102,6 +102,9 @@ Return a notification id if any, or t on success." ;; Don't return an id t)) +(declare-function gravatar-retrieve-synchronously "gravatar.el" + (mail-address)) + (defun gnus-notifications-get-photo (mail-address) "Get photo for mail address." (let ((google-photo (when (and gnus-notifications-use-google-contacts