From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 05 20:03:30 2013 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' From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 05 20:11:53 2013 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 To: 15281@debbugs.gnu.org Subject: Re: bug#15281: 24.3.50; Some tool-bar buttons disappear in GTK3 Emacs 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 (=?iso-2022-jp?B?GyRCPz8bKEI=?= 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-Debbugs-Envelope-To: 15281 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 debbugs-submit-bounces@debbugs.gnu.org Fri Sep 06 01:03:10 2013 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\)) Subject: Re: bug#15281: 24.3.50; Some tool-bar buttons disappear in GTK3 Emacs From: =?iso-8859-1?Q?Jan_Dj=E4rv?= 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: To: Katsumi Yamaoka X-Mailer: Apple Mail (2.1508) X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 15281 Cc: 15281@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: 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 debbugs-submit-bounces@debbugs.gnu.org Fri Sep 06 01:09:12 2013 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' From unknown Sat Jun 21 12:18:04 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 04 Oct 2013 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator