diff options
| author | Chong Yidong | 2010-12-20 08:17:26 +0800 |
|---|---|---|
| committer | Chong Yidong | 2010-12-20 08:17:26 +0800 |
| commit | 949752705efd6a4b7478623d41b3552f93e9596c (patch) | |
| tree | 3f41f09628f8c7ac17c1c771c69cdb2916cc5fb8 /etc | |
| parent | ef1b0ba7e5a82308514b8427cd84994805e61a4f (diff) | |
| download | emacs-949752705efd6a4b7478623d41b3552f93e9596c.tar.gz emacs-949752705efd6a4b7478623d41b3552f93e9596c.zip | |
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 @@ | |||
| 1 | 2010-12-18 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * images/separator.xpm: Tweak colors. | ||
| 4 | |||
| 1 | 2010-12-14 Michael Albinus <michael.albinus@gmx.de> | 5 | 2010-12-14 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 6 | ||
| 3 | * NEWS: Mention new Tramp method "ksu". | 7 | * NEWS: Mention new Tramp method "ksu". |
| @@ -692,9 +692,7 @@ 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 | ||
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 @@ | |||
| 2 | static char * separator_xpm[] = { | 2 | static char * separator_xpm[] = { |
| 3 | "2 24 3 1", | 3 | "2 24 3 1", |
| 4 | " c None", | 4 | " c None", |
| 5 | ". c #DBD3CB", | 5 | ". c #888888", |
| 6 | "+ c #FCFBFA", | 6 | "+ c #FFFFFF", |
| 7 | " ", | ||
| 8 | " ", | 7 | " ", |
| 9 | " ", | 8 | " ", |
| 9 | ".+ ", | ||
| 10 | ".+", | ||
| 10 | ".+", | 11 | ".+", |
| 11 | ".+", | 12 | ".+", |
| 12 | ".+", | 13 | ".+", |
| @@ -25,6 +26,5 @@ static char * separator_xpm[] = { | |||
| 25 | ".+", | 26 | ".+", |
| 26 | ".+", | 27 | ".+", |
| 27 | ".+", | 28 | ".+", |
| 28 | " ", | ||
| 29 | " ", | 29 | " ", |
| 30 | " "}; | 30 | " "}; |