From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#15281: 24.3.50; Some tool-bar buttons disappear in GTK3 Emacs Date: Fri, 6 Sep 2013 07:03:03 +0200 Message-ID: <93AEC9B8-6A46-4D1E-B9F3-330AAD3ECB10@swipnet.se> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1378443859 1671 80.91.229.3 (6 Sep 2013 05:04:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Sep 2013 05:04:19 +0000 (UTC) Cc: 15281@debbugs.gnu.org To: Katsumi Yamaoka Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 06 07:04:21 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VHoDU-0002S7-B1 for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Sep 2013 07:04:20 +0200 Original-Received: from localhost ([::1]:35072 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHoDT-0001lP-UW for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Sep 2013 01:04:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHoDK-0001cU-D2 for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2013 01:04:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHoDD-0000uv-NO for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2013 01:04:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34445) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHoDD-0000ur-KX for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2013 01:04:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VHoDC-0007bE-Lt for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2013 01:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Sep 2013 05:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15281 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15281-submit@debbugs.gnu.org id=B15281.137844379029141 (code B ref 15281); Fri, 06 Sep 2013 05:04:02 +0000 Original-Received: (at 15281) by debbugs.gnu.org; 6 Sep 2013 05:03:10 +0000 Original-Received: from localhost ([127.0.0.1]:42736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VHoCL-0007Zw-PP for submit@debbugs.gnu.org; Fri, 06 Sep 2013 01:03:10 -0400 Original-Received: from mail01.bdtv.se ([176.10.222.34]:49493) by debbugs.gnu.org with smtp (Exim 4.80) (envelope-from ) id 1VHoCI-0007Zj-0Q for 15281@debbugs.gnu.org; Fri, 06 Sep 2013 01:03:07 -0400 Original-Received: (qmail 11516 invoked by uid 89); 6 Sep 2013 05:03:03 -0000 Original-Received: from h-46-59-42-57.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.57) by mail01.bdtv.se with ESMTPA; 6 Sep 2013 05:03:03 -0000 Original-Received: from [172.20.199.13] (unknown [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 6EE1F1A036C; Fri, 6 Sep 2013 05:03:03 +0000 (UTC) In-Reply-To: X-Mailer: Apple Mail (2.1508) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:78028 Archived-At: Hello. Gtk+ does its own enable/disable/selected modifications of images, and = Emacs can't/shouldn't override that. So for Gtk+ item 1 to 3 are = ignored. Documentation should be updated though. Jan D. 6 sep 2013 kl. 02:02 skrev Katsumi Yamaoka : > Hi, >=20 > The Info manual describes as follows: >=20 > ,---- (info "(Elisp)Tool Bar") > |`:image IMAGE' > | IMAGES is either a single image specification or a vector of = four > | image specifications. If you use a vector of four, one of them = is > | used, depending on circumstances: > | > | item 0 > | Used when the item is enabled and selected. > | > | item 1 > | Used when the item is enabled and deselected. > | > | item 2 > | Used when the item is disabled and selected. > | > | item 3 > | Used when the item is disabled and deselected. > | > | If IMAGE is a single image specification, Emacs draws the tool bar > |button in disabled state by applying an edge-detection algorithm to = the > |image. > `---- >=20 > However, a tool-bar button that has such images is not shown in > GTK3 Emacs. Moreover, LUCID Emacs (i.e. --with-x-toolkit=3Dlucid) > shows such a button, however only the `item 1' image is used no > matter what circumstance is. >=20 > This works: >=20 > (let* ((enable t) > (icon (find-image '((:type xpm :file "cancel.xpm")))) > (keymap > `(keymap > (tool-bar > keymap > (ignore menu-item "IGNORE" ignore > :enable ,enable :image ,icon))))) > (pop-to-buffer (get-buffer-create "*testing*")) > (use-local-map keymap)) >=20 > This doesn't work as expected: >=20 > (let* ((enable t) > (icon (vector > (find-image '((:type xpm :file "right-arrow.xpm"))) > (find-image '((:type xpm :file "left-arrow.xpm"))) > (find-image '((:type xpm :file "cancel.xpm"))) > (find-image '((:type xpm :file "close.xpm"))))) > (keymap > `(keymap > (tool-bar > keymap > (ignore menu-item "IGNORE" ignore > :enable ,enable :image ,icon))))) > (pop-to-buffer (get-buffer-create "*testing*")) > (use-local-map keymap)) >=20 > Thanks. >=20 > In GNU Emacs 24.3.50.1 (i686-pc-cygwin, GTK+ Version 3.8.2) > of 2013-09-06 on localhost > Bzr revision: 114147 = dmantipov@yandex.ru-20130905162520-14j783enzhc0fz0i > Windowing system distributor `The Cygwin/X Project', version = 11.0.11402000 > Configured using: > `configure --verbose --with-x-toolkit=3Dgtk3 --without-imagemagick > --without-dbus --without-gconf --without-gsettings' >=20 > In GNU Emacs 24.3.50.1 (i686-pc-cygwin, X toolkit, Xaw3d scroll bars) > of 2013-09-06 on localhost > Bzr revision: 114147 = dmantipov@yandex.ru-20130905162520-14j783enzhc0fz0i > Windowing system distributor `The Cygwin/X Project', version = 11.0.11402000 > Configured using: > `configure --verbose --with-x-toolkit=3Dlucid --without-imagemagick > --without-dbus --without-gconf --without-gsettings' >=20 >=20