unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
To: emacs-devel@gnu.org
Subject: Re: Displaying images "outside" the layout
Date: Sun, 26 Jan 2014 14:41:38 +0900	[thread overview]
Message-ID: <wlk3dnxpt9.wl%mituharu@math.s.chiba-u.ac.jp> (raw)
In-Reply-To: <87a9ejqq20.fsf@building.gnus.org>

>>>>> On Sat, 25 Jan 2014 22:18:15 -0700, Lars Ingebrigtsen <larsi@gnus.org> said:

> So here's my question: Is there a way to display images in tooltips?
> I tried the obvious, which is using a string with a display
> parameter that points to an image in `help-echo', but that didn't
> work.

This one works for me:

(insert (propertize "splash" 'help-echo (propertize " " 'display (create-image "splash.png"))) ?\n)

You need to set x-gtk-use-system-tooltips to nil if you are using the
GTK+ build, and the NS port cannot display images in tooltips AFAIK.

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp



  reply	other threads:[~2014-01-26  5:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-26  5:18 Displaying images "outside" the layout Lars Ingebrigtsen
2014-01-26  5:41 ` YAMAMOTO Mitsuharu [this message]
2014-01-27  0:23   ` Lars Ingebrigtsen
2014-01-27  0:38     ` YAMAMOTO Mitsuharu
2014-01-27  0:47       ` Lars Ingebrigtsen
2014-01-26 16:22 ` Eli Zaretskii
2014-01-26 16:39   ` Alp Aker
2014-01-26 17:40     ` Eli Zaretskii
2014-01-26 18:12       ` Alp Aker
2014-01-26 18:53       ` Jan Djärv
2014-01-27  0:28   ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=wlk3dnxpt9.wl%mituharu@math.s.chiba-u.ac.jp \
    --to=mituharu@math.s.chiba-u.ac.jp \
    --cc=emacs-devel@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).