From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Text in Gtk tool bar. (Was: Gtk tabs in emacs, new branch.) Date: Fri, 23 Apr 2010 19:46:35 +0300 Organization: JURTA Message-ID: <87tyr26u2i.fsf@mail.jurta.org> 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> <4BD1695B.7030409@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1272042846 3291 80.91.229.12 (23 Apr 2010 17:14:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 23 Apr 2010 17:14:06 +0000 (UTC) Cc: Stefan Monnier , "Emacs Dev \[emacs-devel\]" To: "Jan D." Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 23 19:14:05 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 1O5MS4-0000TI-Fh for ged-emacs-devel@m.gmane.org; Fri, 23 Apr 2010 19:14:05 +0200 Original-Received: from localhost ([127.0.0.1]:46389 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5MS3-0002s2-Em for ged-emacs-devel@m.gmane.org; Fri, 23 Apr 2010 13:14:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O5MCF-0001SE-Km for emacs-devel@gnu.org; Fri, 23 Apr 2010 12:57:43 -0400 Original-Received: from [140.186.70.92] (port=37501 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5MCD-0001RD-SY for emacs-devel@gnu.org; Fri, 23 Apr 2010 12:57:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O5MCB-00018n-Fg for emacs-devel@gnu.org; Fri, 23 Apr 2010 12:57:41 -0400 Original-Received: from smtp-out2.starman.ee ([85.253.0.4]:37151 helo=mx2.starman.ee) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5MCB-00018c-8b for emacs-devel@gnu.org; Fri, 23 Apr 2010 12:57:39 -0400 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (82.131.29.104.cable.starman.ee [82.131.29.104]) by mx2.starman.ee (Postfix) with ESMTP id A022C3F4169; Fri, 23 Apr 2010 19:57:32 +0300 (EEST) In-Reply-To: <4BD1695B.7030409@swipnet.se> (Jan D.'s message of "Fri, 23 Apr 2010 11:33:15 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:124132 Archived-At: >> 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? Currently text and image are separate. I'll try to use your new property :label for the tab name. >> 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. Maybe then add a new style `text-image-horiz' (for icon to the right of the label) to keep the tool-bar implementation closer to the tab-bar implementation. This style is not necessary to add to defcustom. -- Juri Linkov http://www.jurta.org/emacs/