aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Rumney2001-02-23 10:23:08 +0000
committerJason Rumney2001-02-23 10:23:08 +0000
commit5c39a60f1d9428b2c3bec7376e12a4f4b3b91c1a (patch)
tree81fd53761dedb7926ce4b070265c32c785b040bc
parentf65d66f800135e09ecd0c5f1fcfe30ece9f72e48 (diff)
downloademacs-5c39a60f1d9428b2c3bec7376e12a4f4b3b91c1a.tar.gz
emacs-5c39a60f1d9428b2c3bec7376e12a4f4b3b91c1a.zip
(frame-notice-user-settings): Only adjust frame height
for no tool-bar case if tool-bar was originally switched on.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/frame.el9
2 files changed, 13 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 59c088f5163..d6e4e75cfef 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12001-02-23 Jason Rumney <jasonr@gnu.org>
2
3 * startup.el (tool-bar-originally-present): New variable.
4 (command-line): Set it if the tool-bar is switched on at startup.
5
6 * frame.el (frame-notice-user-settings): Only adjust frame height
7 for no tool-bar case if tool-bar was originally switched on.
8
12001-02-22 Stefan Monnier <monnier@cs.yale.edu> 92001-02-22 Stefan Monnier <monnier@cs.yale.edu>
2 10
3 * server.el (server-switch-buffer): Only switch window if the 11 * server.el (server-switch-buffer): Only switch window if the
diff --git a/lisp/frame.el b/lisp/frame.el
index 3def9a94ae3..c05347c2d4b 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -292,11 +292,12 @@ React to settings of `default-frame-alist', `initial-frame-alist' there."
292 (when (display-graphic-p) 292 (when (display-graphic-p)
293 (let ((tool-bar-lines (or (assq 'tool-bar-lines initial-frame-alist) 293 (let ((tool-bar-lines (or (assq 'tool-bar-lines initial-frame-alist)
294 (assq 'tool-bar-lines default-frame-alist)))) 294 (assq 'tool-bar-lines default-frame-alist))))
295 (when (or (null tool-bar-lines) 295 (when (and tool-bar-originally-present
296 (null (cdr tool-bar-lines)) 296 (or (null tool-bar-lines)
297 (eq 0 (cdr tool-bar-lines))) 297 (null (cdr tool-bar-lines))
298 (eq 0 (cdr tool-bar-lines))))
298 (let* ((char-height (frame-char-height frame-initial-frame)) 299 (let* ((char-height (frame-char-height frame-initial-frame))
299 (image-height 24) 300 (image-height tool-bar-images-pixel-height)
300 (margin (cond ((and (consp tool-bar-button-margin) 301 (margin (cond ((and (consp tool-bar-button-margin)
301 (integerp (cdr tool-bar-button-margin)) 302 (integerp (cdr tool-bar-button-margin))
302 (> tool-bar-button-margin 0)) 303 (> tool-bar-button-margin 0))