From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: Emacs <emacs-devel@gnu.org>,
"Andrew W. Nosenko" <andrew.w.nosenko@gmail.com>,
Angelo Graziosi <angelo.graziosi@alice.it>
Subject: Re: Emacs tool bar on Fedora14
Date: Tue, 16 Nov 2010 10:24:33 -0500 [thread overview]
Message-ID: <jwvfwv1fg6o.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <4CE2276F.1010008@swipnet.se> ("Jan Djärv"'s message of "Tue, 16 Nov 2010 07:40:47 +0100")
> We don't use Gtk+ tool bar functions to display the text because they are
> too limited. Not showing text is not that hard anyway.
I'm not sure I understand what you're trying to say. To get back to my
argument: since both-horiz is the default, we should be careful to make
it work well enough, similarly to other Gtk apps, by only showing some
of the labels but not all.
Whether that is done by using gtk_tool_item_[gs]et_is_important (and/or
Gtk's toolbar functions to display the text) is rather secondary.
Of course, as a general rule, if we can reuse other people's code, it's
better, but indeed it's not always convenient.
Stefan
> Andrew W. Nosenko skrev 2010-11-16 00.45:
>> On Fri, Nov 12, 2010 at 22:39, Stefan Monnier<monnier@iro.umontreal.ca> wrote:
>>>>> ** GTK tool bars can have just text, just images or images and text.
>>>>> Customize `tool-bar-style' to choose style. On a Gnome desktop, the
>>>>> default is taken from the desktop settings.
>>>>> BTW, I couldn't figure out how to customize it in Gnome. I do remember
>>>>> seeing such an option somewhere (maybe in gnome-appearance-properties)
>>>>> at some point in the past, but I can't seem to find it any more.
>>>> There used to be an Interface tab in Appearance but it has been removed by
>>>> the Gnome people. I guess that is logical, as they seem to move
>>>> towards a customization-free desktop. They decided that both-horiz (icon
>>>> followed by text) is what everybody should have.
>>>> Now you have to edit gconf directly either with gconf-editor or with
>>>
>>>> % gconftool-2 --set --type string /desktop/gnome/interface/toolbar_style both
>>>
>>>> Other values are both-horiz, text or icons.
>>>
>>> I think we should mention it in our documentation. And I also think
>>> there's something more going on: when I try gedit with various settings
>>> of /desktop/gnome/interface/toolbar_style, it's clear that in both-horiz
>>> setting, only some of the buttons get their text, whereas with Emacs
>>> they all do.
>>> That means that both-horiz is quite bearable with gedit but not
>>> with Emacs. And since both-horiz is the default, I think we need to
>>> figure out how to do the same as gedit does (i.e. specify which toolbar
>>> buttons need to have the text displayed in both-horiz and which don't).
>>
>> http://library.gnome.org/devel/gtk/stable/GtkToolItem.html
>> gtk_tool_item_set_is_important()
>> gtk_tool_item_get_is_important()
>> "is-important" property
>>
next prev parent reply other threads:[~2010-11-16 15:24 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-10 17:59 Emacs tool bar on Fedora14 Angelo Graziosi
2010-11-10 19:29 ` Jan Djärv
2010-11-11 23:01 ` Stefan Monnier
2010-11-12 17:44 ` Jan Djärv
2010-11-12 20:39 ` Stefan Monnier
2010-11-15 23:45 ` Andrew W. Nosenko
2010-11-16 6:40 ` Jan Djärv
2010-11-16 15:24 ` Stefan Monnier [this message]
2010-11-16 21:32 ` Jan Djärv
2010-11-16 22:24 ` Stefan Monnier
2010-11-12 21:59 ` Angelo Graziosi
2010-11-13 3:43 ` Ted Zlatanov
2010-11-13 9:54 ` Jan Djärv
2010-11-13 21:48 ` Ted Zlatanov
2010-11-13 16:40 ` Chong Yidong
2010-11-20 14:54 ` Jan Djärv
2010-11-20 20:02 ` Chong Yidong
2010-11-20 20:26 ` Chong Yidong
2010-11-21 18:29 ` Jan Djärv
2010-11-21 17:25 ` Stefan Monnier
2010-11-21 18:20 ` Jan Djärv
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvfwv1fg6o.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=andrew.w.nosenko@gmail.com \
--cc=angelo.graziosi@alice.it \
--cc=emacs-devel@gnu.org \
--cc=jan.h.d@swipnet.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.