diff options
| author | Julien Danjou | 2013-05-16 22:31:47 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2013-05-16 22:31:47 +0000 |
| commit | 46cd302842975e63f7ed05c0dc25c92c374f2e79 (patch) | |
| tree | f1208de0cf4469dc768a1ae229fced8ca522d83e | |
| parent | 04d360e7bb114321e9b9e35f6e8edb8ec0766f18 (diff) | |
| download | emacs-46cd302842975e63f7ed05c0dc25c92c374f2e79.tar.gz emacs-46cd302842975e63f7ed05c0dc25c92c374f2e79.zip | |
gnus-notifications.el (gnus-notifications-notify): Use photo-file as app-icon
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/gnus-notifications.el | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 1c76a179afd..8793ea14f5a 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-05-16 Julien Danjou <julien@danjou.info> | ||
| 2 | |||
| 3 | * gnus-notifications.el (gnus-notifications-notify): Use photo-file as | ||
| 4 | app-icon. | ||
| 5 | |||
| 1 | 2013-05-15 Glenn Morris <rgm@gnu.org> | 6 | 2013-05-15 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * shr-color.el (shr-color-visible-luminance-min) | 8 | * shr-color.el (shr-color-visible-luminance-min) |
diff --git a/lisp/gnus/gnus-notifications.el b/lisp/gnus/gnus-notifications.el index f29bdb7b05c..93220ed8ddf 100644 --- a/lisp/gnus/gnus-notifications.el +++ b/lisp/gnus/gnus-notifications.el | |||
| @@ -92,12 +92,12 @@ Return a notification id if any, or t on success." | |||
| 92 | :body subject | 92 | :body subject |
| 93 | :actions '("read" "Read") | 93 | :actions '("read" "Read") |
| 94 | :on-action 'gnus-notifications-action | 94 | :on-action 'gnus-notifications-action |
| 95 | :app-icon (gnus-funcall-no-warning | 95 | :app-icon (or photo-file |
| 96 | 'image-search-load-path "gnus/gnus.png") | 96 | (gnus-funcall-no-warning |
| 97 | 'image-search-load-path "gnus/gnus.png")) | ||
| 97 | :app-name "Gnus" | 98 | :app-name "Gnus" |
| 98 | :category "email.arrived" | 99 | :category "email.arrived" |
| 99 | :timeout gnus-notifications-timeout | 100 | :timeout gnus-notifications-timeout) |
| 100 | :image-path photo-file) | ||
| 101 | (message "New message from %s: %s" from subject) | 101 | (message "New message from %s: %s" from subject) |
| 102 | ;; Don't return an id | 102 | ;; Don't return an id |
| 103 | t)) | 103 | t)) |