changeset 98659:f19f5a4863df

(x-create-frame-with-faces): Don't call tool-bar-setup.
author Chong Yidong <cyd@stupidchicken.com>
date Sun, 12 Oct 2008 13:45:58 +0000
parents 3e7bd62df13a
children 90b078ed2dc4
files lisp/faces.el
diffstat 1 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/faces.el	Sun Oct 12 13:45:46 2008 +0000
+++ b/lisp/faces.el	Sun Oct 12 13:45:58 2008 +0000
@@ -1977,7 +1977,6 @@
 
 (declare-function x-create-frame "xfns.c" (parms))
 (declare-function x-setup-function-keys "term/x-win" (frame))
-(declare-function tool-bar-setup "tool-bar" (&optional frame))
 
 (defun x-create-frame-with-faces (&optional parameters)
   "Create a frame from optional frame parameters PARAMETERS.
@@ -2004,10 +2003,6 @@
 	  (x-handle-reverse-video frame parameters)
 	  (frame-set-background-mode frame)
 	  (face-set-after-frame-default frame parameters)
-	  ;; 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)
 	  (if (null visibility-spec)
 	      (make-frame-visible frame)
 	    (modify-frame-parameters frame (list visibility-spec)))