1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-20 10:23:57 +00:00

(x-create-frame-with-faces): Only setup the toolbar if

tool-bar-mode is on.
This commit is contained in:
Dan Nicolaescu 2008-10-04 01:23:30 +00:00
parent 847fb889ab
commit bf784417de
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2008-10-04 Dan Nicolaescu <dann@ics.uci.edu>
* faces.el (x-create-frame-with-faces): Only setup the toolbar if
tool-bar-mode is on.
* vc-svn.el (vc-svn-dir-status-files):
* vc-cvs.el (vc-cvs-dir-status-files): New function.

View File

@ -2007,7 +2007,8 @@ Value is the new frame created."
;; Make sure the tool-bar is ready to be enabled. The
;; `tool-bar-lines' frame parameter will not take effect
;; without this call.
(tool-bar-setup frame)
(when tool-bar-mode
(tool-bar-setup frame))
(if (null visibility-spec)
(make-frame-visible frame)
(modify-frame-parameters frame (list visibility-spec)))