+2001-02-23 Jason Rumney <jasonr@gnu.org>
+
+ * startup.el (tool-bar-originally-present): New variable.
+ (command-line): Set it if the tool-bar is switched on at startup.
+
+ * frame.el (frame-notice-user-settings): Only adjust frame height
+ for no tool-bar case if tool-bar was originally switched on.
+
2001-02-22 Stefan Monnier <monnier@cs.yale.edu>
* server.el (server-switch-buffer): Only switch window if the
(when (display-graphic-p)
(let ((tool-bar-lines (or (assq 'tool-bar-lines initial-frame-alist)
(assq 'tool-bar-lines default-frame-alist))))
- (when (or (null tool-bar-lines)
- (null (cdr tool-bar-lines))
- (eq 0 (cdr tool-bar-lines)))
+ (when (and tool-bar-originally-present
+ (or (null tool-bar-lines)
+ (null (cdr tool-bar-lines))
+ (eq 0 (cdr tool-bar-lines))))
(let* ((char-height (frame-char-height frame-initial-frame))
- (image-height 24)
+ (image-height tool-bar-images-pixel-height)
(margin (cond ((and (consp tool-bar-button-margin)
(integerp (cdr tool-bar-button-margin))
(> tool-bar-button-margin 0))