diff options
| author | Martin Rudalics | 2009-01-10 09:51:28 +0000 |
|---|---|---|
| committer | Martin Rudalics | 2009-01-10 09:51:28 +0000 |
| commit | fca863b8166ed9d153f747c8055c3ed0d85ecb7a (patch) | |
| tree | 6fa704bed37453cad513f5aae5926e531d467c4c | |
| parent | 707a78b2987e4a688d58a79f003e3b1545b19769 (diff) | |
| download | emacs-fca863b8166ed9d153f747c8055c3ed0d85ecb7a.tar.gz emacs-fca863b8166ed9d153f747c8055c3ed0d85ecb7a.zip | |
(tool-bar-mode): Modify all frame parameters when
toggling tool bars on. (Bug#1754)
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/tool-bar.el | 9 |
2 files changed, 11 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 54cdb4fd16e..91bd9efe560 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-01-10 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * tool-bar.el (tool-bar-mode): Modify all frame parameters when | ||
| 4 | toggling tool bars on. (Bug#1754) | ||
| 5 | |||
| 1 | 2009-01-09 Chong Yidong <cyd@stupidchicken.com> | 6 | 2009-01-09 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * faces.el (face-valid-attribute-values): Use string as value for | 8 | * faces.el (face-valid-attribute-values): Use string as value for |
diff --git a/lisp/tool-bar.el b/lisp/tool-bar.el index a08df3124a8..226b1ddba5c 100644 --- a/lisp/tool-bar.el +++ b/lisp/tool-bar.el | |||
| @@ -54,9 +54,12 @@ conveniently adding tool bar items." | |||
| 54 | :group 'frames | 54 | :group 'frames |
| 55 | (if tool-bar-mode | 55 | (if tool-bar-mode |
| 56 | (progn | 56 | (progn |
| 57 | (dolist (frame (frame-list)) | 57 | ;; Make one tool-bar-line for any - including non-graphical - |
| 58 | (if (display-graphic-p frame) | 58 | ;; terminal, see Bug#1754. If this causes problems, we should |
| 59 | (set-frame-parameter frame 'tool-bar-lines 1))) | 59 | ;; handle the problem in `modify-frame-parameters' or do not |
| 60 | ;; call `modify-all-frames-parameters' when toggling the tool | ||
| 61 | ;; bar off either. | ||
| 62 | (modify-all-frames-parameters (list (cons 'tool-bar-lines 1))) | ||
| 60 | (if (= 1 (length (default-value 'tool-bar-map))) ; not yet setup | 63 | (if (= 1 (length (default-value 'tool-bar-map))) ; not yet setup |
| 61 | (tool-bar-setup))) | 64 | (tool-bar-setup))) |
| 62 | (modify-all-frames-parameters (list (cons 'tool-bar-lines 0))))) | 65 | (modify-all-frames-parameters (list (cons 'tool-bar-lines 0))))) |