diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2010-12-20 08:17:26 +0800 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2010-12-20 08:17:26 +0800 |
commit | 949752705efd6a4b7478623d41b3552f93e9596c (patch) | |
tree | 3f41f09628f8c7ac17c1c771c69cdb2916cc5fb8 /etc | |
parent | ef1b0ba7e5a82308514b8427cd84994805e61a4f (diff) | |
download | emacs-949752705efd6a4b7478623d41b3552f93e9596c.tar.gz |
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.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/ChangeLog | 4 | ||||
-rw-r--r-- | etc/NEWS | 4 | ||||
-rw-r--r-- | etc/images/separator.xpm | 8 |
3 files changed, 9 insertions, 7 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog index 87236dc4eb2..ebd613ddfe8 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog @@ -1,3 +1,7 @@ +2010-12-18 Chong Yidong <cyd@stupidchicken.com> + + * images/separator.xpm: Tweak colors. + 2010-12-14 Michael Albinus <michael.albinus@gmx.de> * NEWS: Mention new Tramp method "ksu". @@ -692,9 +692,7 @@ input. ** Tool-bars can display separators. Tool-bar separators are handled like menu separators in menu-bar maps, -i.e. with entries of the form `(menu-item "--")'. - -Currently, tool-bar separators are only displayed on GTK. +i.e. via menu entries of the form `(menu-item "--")'. ** Image API diff --git a/etc/images/separator.xpm b/etc/images/separator.xpm index 0c518fa7599..b728316a8f8 100644 --- a/etc/images/separator.xpm +++ b/etc/images/separator.xpm @@ -2,11 +2,12 @@ static char * separator_xpm[] = { "2 24 3 1", " c None", -". c #DBD3CB", -"+ c #FCFBFA", -" ", +". c #888888", +"+ c #FFFFFF", " ", " ", +".+ ", +".+", ".+", ".+", ".+", @@ -25,6 +26,5 @@ static char * separator_xpm[] = { ".+", ".+", ".+", -" ", " ", " "}; |