Mercurial > emacs
comparison etc/NEWS @ 111998:bc8dc4ac1e28
Implement tool-bar separators for non-GTK tool-bars.
* lisp/tool-bar.el (tool-bar--image-expression): New function.
(tool-bar-local-item, tool-bar--image-exp): Use it.
(tool-bar-setup): Initialize tool-bar-separator-image-expression.
Use :enable instead of :visible to avoid changing the tool-bar
configuration unnecessarily.
* src/keyboard.c (Vtool_bar_separator_image_expression): New variable.
(parse_tool_bar_item): Use it to obtain image separators for
displays not using native tool-bar separators.
* src/xdisp.c (build_desired_tool_bar_string): Don't handle separators
specially, since this is now done in parse_tool_bar_item.
* lisp/info.el (info-tool-bar-map): Add separators.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Mon, 20 Dec 2010 08:17:26 +0800 |
parents | 968255ee954a |
children | b476e8175f20 |
comparison
equal
deleted
inserted
replaced
111997:a5a188ddc758 | 111998:bc8dc4ac1e28 |
---|---|
690 triplet, instead of signalling an error if the user provides a invalid | 690 triplet, instead of signalling an error if the user provides a invalid |
691 input. | 691 input. |
692 | 692 |
693 ** Tool-bars can display separators. | 693 ** Tool-bars can display separators. |
694 Tool-bar separators are handled like menu separators in menu-bar maps, | 694 Tool-bar separators are handled like menu separators in menu-bar maps, |
695 i.e. with entries of the form `(menu-item "--")'. | 695 i.e. via menu entries of the form `(menu-item "--")'. |
696 | |
697 Currently, tool-bar separators are only displayed on GTK. | |
698 | 696 |
699 ** Image API | 697 ** Image API |
700 | 698 |
701 *** When the image type is one of listed in `image-animated-types' | 699 *** When the image type is one of listed in `image-animated-types' |
702 and the number of sub-images in the image is more than one, then the | 700 and the number of sub-images in the image is more than one, then the |