|
From: | Jan D. |
Subject: | Re: Text in Gtk tool bar. (Was: Gtk tabs in emacs, new branch.) |
Date: | Fri, 23 Apr 2010 11:33:15 +0200 |
User-agent: | Thunderbird 2.0.0.24 (X11/20100411) |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |