Commit adf7d3a8 authored by Dave Love's avatar Dave Love
Browse files

(tool-bar-mode): Check whether tool-bar-map

has been initialized before calling tool-bar-setup.
parent e4ca8f8c
2000-10-09 Dave Love <fx@gnu.org>
* toolbar/tool-bar.el (tool-bar-mode): Check whether tool-bar-map
has been initialized before calling tool-bar-setup.
2000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
* menu-bar.el (send-mail-item-name): New function.
......
......@@ -36,6 +36,8 @@
;; global bar in modes which have `special' as their `mode-class'
;; properlty.)
;; Todo: Somehow make tool bars easily customizable by the naive?
;;; Code:
;;;###autoload
......@@ -60,7 +62,9 @@ conveniently adding tool bar items."
(if elt
(setcdr elt lines)
(add-to-list 'default-frame-alist (cons 'tool-bar-lines lines)))))
(if (and tool-bar-mode (display-graphic-p))
(if (and tool-bar-mode
(display-graphic-p)
(= 1 (length (default-value 'tool-bar-map)))) ; not yet setup
(tool-bar-setup)))
(defvar tool-bar-map (make-sparse-keymap)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment