a desired tool bar string, even if there are not tool bar
items.
2001-01-22 Gerd Moellmann <gerd@gnu.org>
+ * xdisp.c (build_desired_tool_bar_string): Make sure we have
+ a desired tool bar string, even if there are not tool bar
+ items.
+
* xdisp.c (Ftool_bar_lines_needed): New function.
(syms_of_xdisp): Defsubr it.
size_needed = f->n_tool_bar_items;
/* Reuse f->desired_tool_bar_string, if possible. */
- if (size < size_needed)
+ if (size < size_needed || NILP (f->desired_tool_bar_string))
f->desired_tool_bar_string = Fmake_string (make_number (size_needed),
make_number (' '));
else