From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.bugs Subject: bug#15281: 24.3.50; Some tool-bar buttons disappear in GTK3 Emacs Date: Fri, 06 Sep 2013 09:02:57 +0900 Organization: Emacsen advocacy group Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1378425865 26285 80.91.229.3 (6 Sep 2013 00:04:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Sep 2013 00:04:25 +0000 (UTC) To: 15281@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 06 02:04:26 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 1VHjXF-0002sM-5M for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Sep 2013 02:04:25 +0200 Original-Received: from localhost ([::1]:34283 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHjXE-0000Fz-Md for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Sep 2013 20:04:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHjX3-0000Es-SC for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 20:04:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHjWt-0003e2-3f for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 20:04:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34180) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHjWt-0003dy-05 for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 20:04:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VHjWs-0008SQ-QS for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 20:04:02 -0400 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.137842581132468 (code B ref -1); Fri, 06 Sep 2013 00:04:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Sep 2013 00:03:31 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 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= 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-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:78021 Archived-At: 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'