changeset 46483:7350385eb42a

(tool-bar-add-item-from-menu): Make sure to change the global tool-bar-map.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 16 Jul 2002 22:46:09 +0000
parents 41a9b77a3087
children 6d05f3e71417
files lisp/toolbar/tool-bar.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/toolbar/tool-bar.el	Tue Jul 16 20:53:59 2002 +0000
+++ b/lisp/toolbar/tool-bar.el	Tue Jul 16 22:46:09 2002 +0000
@@ -149,7 +149,8 @@
 
 Use this function only to make bindings in the global value of `tool-bar-map'.
 To define items in any other map, use `tool-bar-local-item'."
-  (apply 'tool-bar-local-item-from-menu command icon tool-bar-map map props))
+  (apply 'tool-bar-local-item-from-menu command icon
+	 (default-value 'tool-bar-map) map props))
 
 ;;;###autoload
 (defun tool-bar-local-item-from-menu (command icon in-map &optional from-map &rest props)