From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: GTK tool bar icons in Emacs Date: Wed, 15 Jul 2009 21:13:10 -0400 Message-ID: <87ws69a0rd.fsf@stupidchicken.com> References: <19038.28918.362284.529172@totara.tehura.co.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1247706885 15714 80.91.229.12 (16 Jul 2009 01:14:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Jul 2009 01:14:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: nickrob@snap.net.nz (Nick Roberts) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 16 03:14:38 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MRFYT-0000j5-3T for ged-emacs-devel@m.gmane.org; Thu, 16 Jul 2009 03:14:37 +0200 Original-Received: from localhost ([127.0.0.1]:41225 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRFYS-0008KC-CO for ged-emacs-devel@m.gmane.org; Wed, 15 Jul 2009 21:14:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRFXC-0007lr-EC for emacs-devel@gnu.org; Wed, 15 Jul 2009 21:13:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRFX7-0007jK-PQ for emacs-devel@gnu.org; Wed, 15 Jul 2009 21:13:18 -0400 Original-Received: from [199.232.76.173] (port=42820 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRFX7-0007jF-FW for emacs-devel@gnu.org; Wed, 15 Jul 2009 21:13:13 -0400 Original-Received: from pantheon-po44.its.yale.edu ([130.132.50.78]:56397) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MRFX6-0000Su-8G for emacs-devel@gnu.org; Wed, 15 Jul 2009 21:13:12 -0400 Original-Received: from furry (dhcp128036014244.central.yale.edu [128.36.14.244]) (authenticated bits=0) by pantheon-po44.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id n6G1DAoN005458 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 15 Jul 2009 21:13:10 -0400 Original-Received: by furry (Postfix, from userid 1000) id 2A9A8C09B; Wed, 15 Jul 2009 21:13:10 -0400 (EDT) In-Reply-To: <19038.28918.362284.529172@totara.tehura.co.nz> (Nick Roberts's message of "Thu, 16 Jul 2009 12:14:46 +1200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.96 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:112511 Archived-At: nickrob@snap.net.nz (Nick Roberts) writes: > I would like to use the GTK record/stop icons in Emacs. In GTK Emacs, at > times, the custom icons appear somehow to be replaced by GTK ones. Could > someone please explain how this works in basic terms. > > Also GTK apps, e.g., FireFox often allow names to appear in text below the icons. > (View-> Toolbars-> Customize...). Is it possible to do this in GTK Emacs? > > Thanks, > Nick The GTK tool-bar code calls `x-gtk-map-stock', which is defined in lisp/term/x-win.el. That function is passed the name of an image file, and returns the name of a corresponding stock image file, or nil if it can't be found (in which case Emacs uses the original image file).