Minimize the unpleasent visual impact of the requirement
authorKim F. Storm <storm@cua.dk>
Thu, 2 Mar 2006 21:55:26 +0000 (21:55 +0000)
committerKim F. Storm <storm@cua.dk>
Thu, 2 Mar 2006 21:55:26 +0000 (21:55 +0000)
commitc07b35ec17a9c2f51ca6b80317aa10c71a0f4899
treebcce26a3cee6275176a5dd95993a8ea61c361e03
parent045cff16b9ca7da96e7a8365317ac35759cbb13f
Minimize the unpleasent visual impact of the requirement
that non-toolkit tool-bars must occupy an integral number of screen
lines, by distributing the rows evenly over the tool-bar screen area.
(Vtool_bar_border): New variable.
(syms_of_xdisp): DEFVAR_LISP it.
(display_tool_bar_line): Add HEIGHT arg for desired row height.  Make
tool-bar row the desired height.  Use default face for border below
tool-bar.
(tool_bar_lines_needed): Add N_ROWS arg.  Use it to return number of
actual tool-bar rows.
(redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
Adjust the height of the tool-bar rows to fill tool-bar screen area.
(redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
is resized.
src/xdisp.c