From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: GTK tool bar icons in Emacs Date: Thu, 16 Jul 2009 12:05:42 +0200 Message-ID: <4A5EFB76.6010402@swipnet.se> References: <19038.28918.362284.529172@totara.tehura.co.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1247738769 23131 80.91.229.12 (16 Jul 2009 10:06:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Jul 2009 10:06:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: Nick Roberts Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 16 12:06:02 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 1MRNqj-0002CK-H9 for ged-emacs-devel@m.gmane.org; Thu, 16 Jul 2009 12:06:01 +0200 Original-Received: from localhost ([127.0.0.1]:58818 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRNqj-00019j-2b for ged-emacs-devel@m.gmane.org; Thu, 16 Jul 2009 06:06:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRNqc-00017w-EI for emacs-devel@gnu.org; Thu, 16 Jul 2009 06:05:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRNqW-00011E-Qi for emacs-devel@gnu.org; Thu, 16 Jul 2009 06:05:53 -0400 Original-Received: from [199.232.76.173] (port=49743 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRNqW-000109-J1 for emacs-devel@gnu.org; Thu, 16 Jul 2009 06:05:48 -0400 Original-Received: from proxy3.bredband.net ([195.54.101.73]:58161) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MRNqV-0003UX-6x for emacs-devel@gnu.org; Thu, 16 Jul 2009 06:05:47 -0400 Original-Received: from iph1.telenor.se (195.54.127.132) by proxy3.bredband.net (7.3.140.3) id 49F597CD0195ED2C for emacs-devel@gnu.org; Thu, 16 Jul 2009 12:05:44 +0200 X-SMTPAUTH-B2: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As17ALSXXkpV4S1uPGdsb2JhbACBUYgsjzUBAQEBN7cchAsF X-IronPort-AV: E=Sophos;i="4.42,410,1243807200"; d="scan'208";a="29409284" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by iph1.telenor.se with ESMTP; 16 Jul 2009 12:05:43 +0200 Original-Received: from [172.20.199.5] (winter [172.20.199.5]) by coolsville.localdomain (Postfix) with ESMTPSA id 5C6DD7FA07B; Thu, 16 Jul 2009 12:05:43 +0200 (CEST) User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) In-Reply-To: <19038.28918.362284.529172@totara.tehura.co.nz> X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:112523 Archived-At: Nick Roberts skrev: > 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. Can you narrow down what you did when the icons where replaced? Note that many major modes replaces the tool bar, maybe you stubled upon that? If you need to replace some standard icons, customizing x-gtk-stock-map should to the trick (apart from bugs of course). The tool bar is specified in the variable tool-bar-map. This can be buffer local and as stated, major modes do change this. or the Gtk+ case, the file names inside tool-bar-map get remapped by x-gtk-stock-map to a Gtk+ stock name, so that stock icons are used instead (to adjust for Gtk+ theme changes). > > 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? > The code is not hard to do, the problem is that for icons there doesn't exist any short name, only the help text is available. The text used for the name is ofthen too long (for example, "Visit new file..."), and the tool bar becomes very wide. Jan D.