From: Gerd Moellmann Date: Thu, 1 Feb 2001 15:01:11 +0000 (+0000) Subject: (x_set_tool_bar_lines): Do nothing If frame is X-Git-Url: https://git.hcoop.net/bpt/emacs.git/commitdiff_plain/e870b7bad67991399582acba18416b45d40d0d26 (x_set_tool_bar_lines): Do nothing If frame is minibuffer-only, --- diff --git a/src/xfns.c b/src/xfns.c index e8572a33bf..7e10d67085 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);