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 14:08:58 +0900 Organization: Emacsen advocacy group Message-ID: References: <93AEC9B8-6A46-4D1E-B9F3-330AAD3ECB10@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1378444220 5649 80.91.229.3 (6 Sep 2013 05:10:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Sep 2013 05:10:20 +0000 (UTC) Cc: 15281-done@debbugs.gnu.org To: jan.h.d@swipnet.se Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 06 07:10:22 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 1VHoJJ-0004Vb-PM for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Sep 2013 07:10:22 +0200 Original-Received: from localhost ([::1]:35097 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHoJJ-0003b4-Au for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Sep 2013 01:10:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHoJA-0003Tl-9N for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2013 01:10:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHoJ5-0002b7-7v for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2013 01:10:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34457) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHoJ5-0002b2-53 for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2013 01:10:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VHoJ3-0007ns-9X for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2013 01:10:05 -0400 In-Reply-To: Resent-From: Katsumi Yamaoka Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Sep 2013 05:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 15281 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 15281@debbugs.gnu.org, yamaoka@jpl.org, yamaoka@jpl.org Original-Received: via spool by 15281-done@debbugs.gnu.org id=D15281.137844415229898 (code D ref 15281); Fri, 06 Sep 2013 05:10:02 +0000 Original-Received: (at 15281-done) by debbugs.gnu.org; 6 Sep 2013 05:09:12 +0000 Original-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 Original-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 Original-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 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:jdAb8M9S1RECpKdNN8mvRZcr9ZI= 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-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:78030 Archived-At: 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'