changeset 35736:b0dd419f0534

(command-line): Remove manipulation of frame height for tool bars.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 30 Jan 2001 15:07:08 +0000
parents e20f7bc75418
children 1dedd00219d5
files lisp/startup.el
diffstat 1 files changed, 3 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/startup.el	Tue Jan 30 15:06:47 2001 +0000
+++ b/lisp/startup.el	Tue Jan 30 15:07:08 2001 +0000
@@ -749,8 +749,9 @@
     (and command-line-args (setcdr command-line-args args)))
 
   ;; Under X Windows, this creates the X frame and deletes the terminal frame.
-  (if (fboundp 'frame-initialize)
-      (frame-initialize))
+  (when (fboundp 'frame-initialize)
+    (frame-initialize))
+
   ;; If frame was created with a menu bar, set menu-bar-mode on.
   (if (and (not noninteractive)
 	   (or (not (memq window-system '(x w32)))
@@ -935,23 +936,6 @@
 
   (run-hooks 'after-init-hook)
 
-  ;; When the tool-bar is on, increase the frame's height by the
-  ;; number of lines it usually occupies.  The normal height of images
-  ;; in the tool bar is assumed to be `tool-bar-images-pixel-height'.
-  (when tool-bar-mode
-    (let* ((char-height (frame-char-height))
-	   (bar-height (+ tool-bar-images-pixel-height
-			  tool-bar-button-margin
-			  tool-bar-button-relief))
-	   (lines (/ (+ bar-height (1- char-height)) char-height)))
-      (set-frame-height nil (+ (frame-height) lines))))
-
-  ;; Now, make the frame visible.  If we make it visible before this
-  ;; point, ugly flickering can happens because of possibly changing
-  ;; frame heights.  Note that any message or error make the frame
-  ;; visible automatically.
-  (make-frame-visible)
-
   ;; If *scratch* exists and init file didn't change its mode, initialize it.
   (if (get-buffer "*scratch*")
       (save-excursion