From unknown Sat Aug 09 01:10:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15281: 24.3.50; Some tool-bar buttons disappear in GTK3 Emacs Resent-From: Katsumi Yamaoka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Sep 2013 00:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15281 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 15281@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.137842581132468 (code B ref -1); Fri, 06 Sep 2013 00:04:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Sep 2013 00:03:31 +0000 Received: from localhost ([127.0.0.1]:42471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VHjWM-0008Rc-0V for submit@debbugs.gnu.org; Thu, 05 Sep 2013 20:03:30 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60318) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VHjWK-0008RO-6o for submit@debbugs.gnu.org; Thu, 05 Sep 2013 20:03:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHjW6-0003WK-Lm for submit@debbugs.gnu.org; Thu, 05 Sep 2013 20:03:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHjW6-0003WG-IU for submit@debbugs.gnu.org; Thu, 05 Sep 2013 20:03:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHjW0-0000By-Eg for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 20:03:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHjVu-0003Rz-GL for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 20:03:08 -0400 Received: from mail-hampton.hostforweb.net ([216.246.15.223]:35037 helo=hampton.hostforweb.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHjVu-0003Rm-CI for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 20:03:02 -0400 Received: from localhost.localdomain ([127.0.0.1]:54835 helo=localhost) by hampton.hostforweb.net with smtp (Exim 4.80.1) (envelope-from ) id 1VHjVq-000cA6-WF; Thu, 05 Sep 2013 19:03:00 -0500 Date: Fri, 06 Sep 2013 09:02:57 +0900 Message-ID: From: Katsumi Yamaoka Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.130008 (=?UTF-8?Q?=E7=9C=9F?= Gnus v0.8) Emacs/24.3.50 (i686-pc-cygwin) Cancel-Lock: sha1:b8PAesIbLN5MQfoEdoHgJvqIlVI= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: acl_c_authenticated_local_user: root X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (barebone) [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.4 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) Hi, The Info manual describes as follows: ,---- (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. `---- However, a tool-bar button that has such images is not shown in GTK3 Emacs. Moreover, LUCID Emacs (i.e. --with-x-toolkit=lucid) shows such a button, however only the `item 1' image is used no matter what circumstance is. This works: (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)) This doesn't work as expected: (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)) Thanks. 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=gtk3 --without-imagemagick --without-dbus --without-gconf --without-gsettings' 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=lucid --without-imagemagick --without-dbus --without-gconf --without-gsettings' From unknown Sat Aug 09 01:10:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15281: 24.3.50; Some tool-bar buttons disappear in GTK3 Emacs In-Reply-To: Resent-From: Katsumi Yamaoka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Sep 2013 00:12: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: To: 15281@debbugs.gnu.org Received: via spool by 15281-submit@debbugs.gnu.org id=B15281.1378426313755 (code B ref 15281); Fri, 06 Sep 2013 00:12:02 +0000 Received: (at 15281) by debbugs.gnu.org; 6 Sep 2013 00:11:53 +0000 Received: from localhost ([127.0.0.1]:42482 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VHjeS-0000C7-J2 for submit@debbugs.gnu.org; Thu, 05 Sep 2013 20:11:52 -0400 Received: from mail-hampton.hostforweb.net ([216.246.15.223]:53164 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VHjeQ-0000Bu-Lf for 15281@debbugs.gnu.org; Thu, 05 Sep 2013 20:11:51 -0400 Received: from localhost.localdomain ([127.0.0.1]:56561 helo=localhost) by hampton.hostforweb.net with smtp (Exim 4.80.1) (envelope-from ) id 1VHjeJ-000p3c-1U for 15281@debbugs.gnu.org; Thu, 05 Sep 2013 19:11:44 -0500 Date: Fri, 06 Sep 2013 09:11:43 +0900 Message-ID: From: Katsumi Yamaoka References: Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.130008 (=?UTF-8?Q?=E7=9C=9F?= Gnus v0.8) Emacs/24.3.50 (i686-pc-cygwin) Cancel-Lock: sha1:ScGfDyjOsM1lLpW4SCagKtLdrpk= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: acl_c_authenticated_local_user: yamaoka X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Katsumi Yamaoka wrote: > However, a tool-bar button that has such images is not shown in > GTK3 Emacs. Moreover, LUCID Emacs (i.e. --with-x-toolkit=lucid) > shows such a button, however only the `item 1' image is used no > matter what circumstance is. Sorry, let me correct this. As for LUCID Emacs, only the `item 1' image is used when the button is enabled. From unknown Sat Aug 09 01:10:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15281: 24.3.50; Some tool-bar buttons disappear in GTK3 Emacs 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: To: Katsumi Yamaoka Cc: 15281@debbugs.gnu.org Received: via spool by 15281-submit@debbugs.gnu.org id=B15281.137844379029141 (code B ref 15281); Fri, 06 Sep 2013 05:04:02 +0000 Received: (at 15281) by debbugs.gnu.org; 6 Sep 2013 05:03:10 +0000 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 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 Received: (qmail 11516 invoked by uid 89); 6 Sep 2013 05:03:03 -0000 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 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) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) From: Jan =?UTF-8?Q?Dj=C3=A4rv?= In-Reply-To: Date: Fri, 6 Sep 2013 07:03:03 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <93AEC9B8-6A46-4D1E-B9F3-330AAD3ECB10@swipnet.se> References: X-Mailer: Apple Mail (2.1508) X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) 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 From unknown Sat Aug 09 01:10:51 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Katsumi Yamaoka Subject: bug#15281: closed (Re: bug#15281: 24.3.50; Some tool-bar buttons disappear in GTK3 Emacs) Message-ID: References: X-Gnu-PR-Message: they-closed 15281 X-Gnu-PR-Package: emacs Reply-To: 15281@debbugs.gnu.org Date: Fri, 06 Sep 2013 05:10:07 +0000 Content-Type: multipart/mixed; boundary="----------=_1378444207-29989-1" This is a multi-part message in MIME format... ------------=_1378444207-29989-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #15281: 24.3.50; Some tool-bar buttons disappear in GTK3 Emacs which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 15281@debbugs.gnu.org. --=20 15281: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D15281 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1378444207-29989-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 15281-done) by debbugs.gnu.org; 6 Sep 2013 05:09:12 +0000 Received: from localhost ([127.0.0.1]:42747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VHoIB-0007m9-Ff for submit@debbugs.gnu.org; Fri, 06 Sep 2013 01:09:11 -0400 Received: from mail-hampton.hostforweb.net ([216.246.15.223]:60440 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VHoI9-0007ls-8F for 15281-done@debbugs.gnu.org; Fri, 06 Sep 2013 01:09:09 -0400 Received: from localhost.localdomain ([127.0.0.1]:43847 helo=localhost) by hampton.hostforweb.net with smtp (Exim 4.80.1) (envelope-from ) id 1VHoI1-0005V3-6n; Fri, 06 Sep 2013 00:09:01 -0500 Date: Fri, 06 Sep 2013 14:08:58 +0900 Message-ID: From: Katsumi Yamaoka To: jan.h.d@swipnet.se Subject: Re: bug#15281: 24.3.50; Some tool-bar buttons disappear in GTK3 Emacs References: <93AEC9B8-6A46-4D1E-B9F3-330AAD3ECB10@swipnet.se> Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.130008 (=?iso-2022-jp?B?GyRCPz8bKEI=?= Gnus v0.8) Emacs/24.3.50 (i686-pc-cygwin) Cancel-Lock: sha1:jdAb8M9S1RECpKdNN8mvRZcr9ZI= MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-OutGoing-Spam-Status: No, score= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: acl_c_authenticated_local_user: root X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 15281-done Cc: 15281-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Jan Dj=E4rv wrote: > 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. I see. I'm closing this bug. Thank you. > 6 sep 2013 kl. 02:02 skrev Katsumi Yamaoka : >> Hi, >> >> The Info manual describes as follows: >> >> ,---- (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. >> `---- >> >> 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. >> >> This works: >> >> (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)) >> >> This doesn't work as expected: >> >> (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)) >> >> Thanks. >> >> 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.114020= 00 >> Configured using: >> `configure --verbose --with-x-toolkit=3Dgtk3 --without-imagemagick >> --without-dbus --without-gconf --without-gsettings' >> >> 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.114020= 00 >> Configured using: >> `configure --verbose --with-x-toolkit=3Dlucid --without-imagemagick >> --without-dbus --without-gconf --without-gsettings' ------------=_1378444207-29989-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 6 Sep 2013 00:03:31 +0000 Received: from localhost ([127.0.0.1]:42471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VHjWM-0008Rc-0V for submit@debbugs.gnu.org; Thu, 05 Sep 2013 20:03:30 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60318) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VHjWK-0008RO-6o for submit@debbugs.gnu.org; Thu, 05 Sep 2013 20:03:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHjW6-0003WK-Lm for submit@debbugs.gnu.org; Thu, 05 Sep 2013 20:03:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHjW6-0003WG-IU for submit@debbugs.gnu.org; Thu, 05 Sep 2013 20:03:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHjW0-0000By-Eg for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 20:03:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHjVu-0003Rz-GL for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 20:03:08 -0400 Received: from mail-hampton.hostforweb.net ([216.246.15.223]:35037 helo=hampton.hostforweb.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHjVu-0003Rm-CI for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 20:03:02 -0400 Received: from localhost.localdomain ([127.0.0.1]:54835 helo=localhost) by hampton.hostforweb.net with smtp (Exim 4.80.1) (envelope-from ) id 1VHjVq-000cA6-WF; Thu, 05 Sep 2013 19:03:00 -0500 Date: Fri, 06 Sep 2013 09:02:57 +0900 Message-ID: From: Katsumi Yamaoka To: bug-gnu-emacs@gnu.org Subject: 24.3.50; Some tool-bar buttons disappear in GTK3 Emacs Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.130008 (=?iso-2022-jp?B?GyRCPz8bKEI=?= Gnus v0.8) Emacs/24.3.50 (i686-pc-cygwin) Cancel-Lock: sha1:b8PAesIbLN5MQfoEdoHgJvqIlVI= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: acl_c_authenticated_local_user: root X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (barebone) [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) Hi, The Info manual describes as follows: ,---- (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. `---- However, a tool-bar button that has such images is not shown in GTK3 Emacs. Moreover, LUCID Emacs (i.e. --with-x-toolkit=lucid) shows such a button, however only the `item 1' image is used no matter what circumstance is. This works: (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)) This doesn't work as expected: (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)) Thanks. 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=gtk3 --without-imagemagick --without-dbus --without-gconf --without-gsettings' 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=lucid --without-imagemagick --without-dbus --without-gconf --without-gsettings' ------------=_1378444207-29989-1--