(donate-help "Make a donation to the EMchat team.")
(cancel-help
"Thank you for considering a donation... maybe another time.")
- donate-glyph-ext
- cancel-glyph-ext
- donate-text-ext
+ (donate-glyph (base64-decode-string emchat-paypal-glyph))
+ (cancel-glyph (base64-decode-string emchat-maybe-later-glyph))
+ donate-glyph-ext cancel-glyph-ext donate-text-ext
cancel-text-ext)
(switch-to-buffer buf)
(erase-buffer)
(setq donate-glyph-ext (make-extent (point-max) (point-max)))
(set-extent-begin-glyph
donate-glyph-ext
- (make-glyph
- (list (vector 'png ':data (with-temp-buffer
- (insert emchat-paypal-glyph)
- (base64-decode-region (point-min)
- (point-max))
- (buffer-string))))))
+ (make-glyph `([png :data ,donate-glyph])))
(insert "\t\t\t")
(setq cancel-glyph-ext (make-extent (point-max) (point-max)))
(set-extent-begin-glyph
cancel-glyph-ext
- (make-glyph
- (list (vector 'png ':data (with-temp-buffer
- (insert emchat-maybe-later-glyph)
- (base64-decode-region (point-min)
- (point-max))
- (buffer-string))))))
+ (make-glyph `([png :data ,cancel-glyph])))
(set-extent-property donate-glyph-ext 'keymap emchat-donation-map)
(set-extent-property donate-glyph-ext 'help-echo donate-help)
(set-extent-property donate-glyph-ext 'balloon-help donate-help)