Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+from-uce@imap.cc>
Subject: Re: Background for picons
Date: Sat, 23 Jul 2005 19:18:21 +0200	[thread overview]
Message-ID: <v9y87xbfvm.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <87ackfc9hl.fsf@wilson.rwth-aachen.de>

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/


      reply	other threads:[~2005-07-23 17:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-22 12:26 Torsten Bronger
2005-07-23 17:18 ` Reiner Steib [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v9y87xbfvm.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+from-uce@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).