Add gnus-gravatar-properties
authorJulien Danjou <julien@danjou.info>
Wed, 29 Sep 2010 09:24:51 +0000 (11:24 +0200)
committerJulien Danjou <julien@danjou.info>
Wed, 29 Sep 2010 17:16:22 +0000 (19:16 +0200)
Signed-off-by: Julien Danjou <julien@danjou.info>
lisp/ChangeLog
lisp/gnus-gravatar.el

index f484266..140a538 100644 (file)
 
        * time-date.el: No need to require cl for Emacs 21.
 
+2010-09-29  Julien Danjou  <julien@danjou.info>
+
+       * gnus-gravatar.el (gnus-gravatar-properties): Add this properties in
+       replacement of `gnus-gravatar-relief' to mimic
+       `gnus-faces-properties-alist'.
+       Add :version property.
+
 2010-09-28  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * mail-source.el (mail-source-report-new-mail)
index 14e2240..2af975b 100644 (file)
 (defcustom gnus-gravatar-size 32
   "How big should gravatars be displayed."
   :type 'integer
+  :version "24.1"
   :group 'gnus-gravatar)
 
-(defcustom gnus-gravatar-relief 1
-  "If non-nil, adds a shadow rectangle around the image. The
-value, relief, specifies the width of the shadow lines, in
-pixels. If relief is negative, shadows are drawn so that the
-image appears as a pressed button; otherwise, it appears as an
-unpressed button."
+(defcustom gnus-gravatar-properties '(:ascent center :relief 1)
+  "List of image properties applied to Gravatar images."
+  :type 'list
+  :version "24.1"
   :group 'gnus-gravatar)
 
 (defun gnus-gravatar-transform-address (header category)
@@ -88,7 +87,7 @@ Set image category to CATEGORY."
                   (point (point))
                   (gravatar (append
                              gravatar
-                             `(:ascent center :relief ,gnus-gravatar-relief))))
+                             gnus-gravatar-properties)))
               (gnus-put-image gravatar nil category)
               (put-text-property point (point) 'gnus-gravatar address)
               (gnus-add-wash-type category)