summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2001-02-01 15:01:11 +0000
committerGerd Moellmann <gerd@gnu.org>2001-02-01 15:01:11 +0000
commit41696446cb78fbea19d69c885aa84376a4b36ea1 (patch)
treeaa6936458744248dd6ef971fe61b4d59db6a43bb
parentb3a9f3e285e86811082f259eb58bdc00801dd66d (diff)
downloademacs-41696446cb78fbea19d69c885aa84376a4b36ea1.tar.gz
(x_set_tool_bar_lines): Do nothing If frame is
minibuffer-only,
-rw-r--r--src/xfns.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c
index e8572a33bf3..7e10d67085f 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -2005,6 +2005,10 @@ x_set_tool_bar_lines (f, value, oldval)
int delta, nlines, root_height;
Lisp_Object root_window;
+ /* Treat tool bars like menu bars. */
+ if (FRAME_MINIBUF_ONLY_P (f))
+ return;
+
/* Use VALUE only if an integer >= 0. */
if (INTEGERP (value) && XINT (value) >= 0)
nlines = XFASTINT (value);