From: David Reitter <david.reitter@gmail.com>
Subject: Tool-bar icons with disabled/selected states not displayed (Carbon port)
Date: Mon, 1 May 2006 18:08:29 +0100 [thread overview]
Message-ID: <F093D442-3A4B-4D49-BAC0-29992D678DC7@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 713 bytes --]
At least the Carbon port has an issue with drawing xpm icons (e.g.
typical tool-bar icons) when icons for the "disabled" state are
specified.
Key definitions for the tool-bar map allow for a vector of four image
descriptors to be given.
This works fine for xpm on X, but not in the Carbon port. Here, if a
"disabled" state is given, it is not displayed - see screenshot.
Interestingly, png images may be specified here and things work fine
then.
Have a look at the test case below to demonstrate.
(As a side-note, png masks don't seem to be supported, not even with
bitmasks rather than a full alpha-channel. Is that correct? that's
the reason why I find myself using xpm in the first place).
[-- Attachment #2: pastedGraphic.png --]
[-- Type: image/png, Size: 5433 bytes --]
[-- Attachment #3: Type: text/plain, Size: 1357 bytes --]
(setq save-as-active nil)
(let* ((image (find-image (list '(:type xpm :file "s1.xpm"))))
(image-dis (find-image (list '(:type xpm :file "s1.dis.xpm"))))
(images (vector image image image-dis image-dis)))
(define-key-after tool-bar-map [save-icon]
`(menu-item "Save As" '("Save as" (nil) . save-i) :image ,images
:enable save-as-active)))
(let* ((image (find-image (list '(:type png :file "s1.png"))))
(image-dis (find-image (list '(:type png :file "s1.dis.png"))))
(images (vector image image image-dis image-dis)))
(define-key-after tool-bar-map [save-icon-2]
`(menu-item "Save As x" '("Save as" (nil) . save-i) :image ,images
:enable save-as-active)))
;; at this point, only the png "disabled" icon is displayed, but not
the xpm one.
(setq save-as-active t)
In GNU Emacs 22.0.50.1 (powerpc-apple-darwin7.9.0)
of 2006-04-14 on rodrigues.inf.ed.ac.uk
X server distributor `Apple Computers', version 10.4.6
configured using `configure '--without-x' '--prefix=/usr/local''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: nil
locale-coding-system: iso-8859-1
default-enable-multibyte-characters: t
[-- Attachment #4: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next reply other threads:[~2006-05-01 17:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-01 17:08 David Reitter [this message]
2006-05-01 22:26 ` Tool-bar icons with disabled/selected states not displayed (Carbon port) YAMAMOTO Mitsuharu
2006-05-01 23:43 ` David Reitter
2006-05-02 0:39 ` YAMAMOTO Mitsuharu
2006-05-02 10:44 ` David Reitter
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=F093D442-3A4B-4D49-BAC0-29992D678DC7@gmail.com \
--to=david.reitter@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.