emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GTK tool bar icons in Emacs


From: Jan Djärv
Subject: Re: GTK tool bar icons in Emacs
Date: Thu, 16 Jul 2009 12:05:42 +0200
User-agent: Thunderbird 2.0.0.22 (Macintosh/20090605)



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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]