Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Background for picons
@ 2005-07-22 12:26 Torsten Bronger
  2005-07-23 17:18 ` Reiner Steib
  0 siblings, 1 reply; 2+ messages in thread
From: Torsten Bronger @ 2005-07-22 12:26 UTC (permalink / raw)


Hallöchen!

Is there a way to give picons a white or grey background?

Tschö,
Torsten.

-- 
Torsten Bronger, aquisgrana, europa vetus


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Background for picons
  2005-07-22 12:26 Background for picons Torsten Bronger
@ 2005-07-23 17:18 ` Reiner Steib
  0 siblings, 0 replies; 2+ messages in thread
From: Reiner Steib @ 2005-07-23 17:18 UTC (permalink / raw)


On Fri, Jul 22 2005, Torsten Bronger wrote:

> Is there a way to give picons a white or grey background?

I'd have guessed that the face `gnus-picon'[1] is what you're looking
for.  But apparently this face is never used.

Adding `(gnus-put-text-property ... 'face 'gnus-picon)' in
`gnus-picon-insert-glyph' indeed modifies the face, but later gets
overridden by some other face.  I couldn't quickly figure out were it
gets overridden.  Any ideas?

--8<---------------cut here---------------start------------->8---
(defun gnus-picon-insert-glyph (glyph category)
  "Insert GLYPH into the buffer.
GLYPH can be either a glyph or a string."
  (if (stringp glyph)
      (insert glyph)
    (gnus-add-wash-type category)
    (gnus-add-image category (car glyph))
    (gnus-put-image (car glyph) (cdr glyph) category)
    (gnus-put-text-property (- (point) (length (cdr glyph))) (point)
			    'face 'gnus-picon)
    (sit-for 1)))
--8<---------------cut here---------------end--------------->8---

Bye, Reiner.

[1] or `gnus-picon-face' before Miles' recent »Remove "-face" suffix
    from face name.« changes.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-23 17:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-22 12:26 Background for picons Torsten Bronger
2005-07-23 17:18 ` Reiner Steib

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).