From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: Text in Gtk tool bar. (Was: Gtk tabs in emacs, new branch.) Date: Fri, 23 Apr 2010 11:33:15 +0200 Message-ID: <4BD1695B.7030409@swipnet.se> References: <30298845.656931270806476838.JavaMail.www@wwinf4631> <4BBF0C6C.7000909@swipnet.se> <87ljcwaxfv.fsf@mail.jurta.org> <4BC016DA.60400@swipnet.se> <87d3y63gzt.fsf@mail.jurta.org> <4BC1EAB2.6080900@harpegolden.net> <4BC215A5.6010809@swipnet.se> <87y6gsfadn.fsf@mail.jurta.org> <4BC406C1.30404@swipnet.se> <4BCF2E9A.3060509@swipnet.se> <87k4rya7hj.fsf@mail.jurta.org> 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: dough.gmane.org 1272015441 23556 80.91.229.12 (23 Apr 2010 09:37:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 23 Apr 2010 09:37:21 +0000 (UTC) Cc: Stefan Monnier , "Emacs Dev \[emacs-devel\]" To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 23 11:37:19 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1O5FK1-0004vs-F7 for ged-emacs-devel@m.gmane.org; Fri, 23 Apr 2010 11:37:17 +0200 Original-Received: from localhost ([127.0.0.1]:43726 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5FK0-00069g-MC for ged-emacs-devel@m.gmane.org; Fri, 23 Apr 2010 05:37:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O5FGK-0005L9-MP for emacs-devel@gnu.org; Fri, 23 Apr 2010 05:33:28 -0400 Original-Received: from [140.186.70.92] (port=42432 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5FGE-0005K8-A3 for emacs-devel@gnu.org; Fri, 23 Apr 2010 05:33:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O5FGB-0002ct-Sd for emacs-devel@gnu.org; Fri, 23 Apr 2010 05:33:21 -0400 Original-Received: from smtprelay-h12.telenor.se ([62.127.194.5]:48541) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5FGB-0002cl-Gz for emacs-devel@gnu.org; Fri, 23 Apr 2010 05:33:19 -0400 Original-Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-h12.telenor.se (Postfix) with ESMTP id 1D1D3CD47 for ; Fri, 23 Apr 2010 11:34:06 +0200 (CEST) X-SENDER-IP: [85.225.45.110] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvNBAL0F0UtV4S1uPGdsb2JhbACHaJRCDAEBAQE1Lb4GhQ8E X-IronPort-AV: E=Sophos;i="4.52,261,1270418400"; d="scan'208";a="511312512" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ipb3.telenor.se with ESMTP; 23 Apr 2010 11:33:17 +0200 Original-Received: from [192.168.77.62] (ns1.operax.com [213.88.244.216]) by coolsville.localdomain (Postfix) with ESMTPSA id A65377FA05A; Fri, 23 Apr 2010 11:33:16 +0200 (CEST) User-Agent: Thunderbird 2.0.0.24 (X11/20100411) In-Reply-To: <87k4rya7hj.fsf@mail.jurta.org> X-detected-operating-system: by eggs.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:124115 Archived-At: Juri Linkov wrote: >> Anyway, I checked in the possibilty to have text in the tool bar. Just for >> Gtk+ for now, I'm working on the native one. >> >> See variable tool-bar-style for styles. The default is taken from >> Xsettings (i.e. Gnome setting). >> >> The code tries to generate a text for tool bar items based on key and >> caption. This sometimes fails, so the property :label can be set on tool >> bar items. I've done this for a few items I saw at once, I'm sure >> plenty remain. > > Do you have an idea how to implement the style `both' > (with text under image) on a non-toolkit build? Do you mean on the glyph (a.ka. redisplay) level or by the actual drawing done by for example X? I don't think this can be done simply at the lisp level. The overflow for the tool bar, and highlightning needs to handle text and image as one. How do you deal with that in your tabs? The tool bar display code is kind of hardwired in C anyway. > > The remaining options `text' and `both-horiz' would be easy to do. > Actually, `both-horiz' is what the tab-bar uses: it shows the close icon > to the right of the tab label. That is the RtoL version, both-horiz for Gtk+ has the icon to the left of the text, i.e. opposite of what a tab bar has. Jan D.