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-Tag: emacs-pretest-21.0.98~226 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e870b7bad67991399582acba18416b45d40d0d26;p=emacs.git (x_set_tool_bar_lines): Do nothing If frame is minibuffer-only, --- 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);