* doc/lispref/keymaps.texi (Tool Bar): Mention separators.
authorGlenn Morris <rgm@gnu.org>
Mon, 6 Feb 2012 01:27:57 +0000 (17:27 -0800)
committerGlenn Morris <rgm@gnu.org>
Mon, 6 Feb 2012 01:27:57 +0000 (17:27 -0800)
* etc/NEWS: Related markup.

doc/lispref/ChangeLog
doc/lispref/keymaps.texi
etc/NEWS

index e184f26..e26f91b 100644 (file)
@@ -1,5 +1,7 @@
 2012-02-06  Glenn Morris  <rgm@gnu.org>
 
+       * keymaps.texi (Tool Bar): Mention separators.
+
        * modes.texi (Running Hooks): Mention run-hook-wrapped.
 
        * control.texi (Handling Errors):
index 8e03ade..9239894 100644 (file)
@@ -2658,6 +2658,15 @@ The @code{:rtl} property specifies an alternative image to use for
 right-to-left languages.  Only the Gtk+ version of Emacs supports this
 at present.
 
+Like the menu bar, the tool bar can display separators (@pxref{Menu
+Separators}).  Tool bar separators are vertical rather than
+horizontal, though, and only a single style is supported.  Separators
+are represented in the tool bar keymap in the same way as for the
+menu-bar, i.e. using a @code{(menu-item "--"}) entry.  The Gtk+ and
+Nextstep tool bars render separators natively, otherwise Emacs selects
+a separator image that is appropriate for the display.  Note that tool
+bar separators do not support any properties, such as @code{:visible}.
+
 The default tool bar is defined so that items specific to editing do not
 appear for major modes whose command symbol has a @code{mode-class}
 property of @code{special} (@pxref{Major Mode Conventions}).  Major
index 86b4f60..9ea5d6a 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1335,6 +1335,7 @@ argument is supplied (see Trash changes, above).
 or RGB triplet, instead of signaling an error if the user provides
 invalid input.
 
++++
 ** Tool-bars can display separators.
 Tool-bar separators are handled like menu separators in menu-bar maps,
 i.e. via menu entries of the form `(menu-item "--")'.