]> code.delx.au - gnu-emacs/commit
Fix incorrect NextStep tool-bar-mode -- wrong number of rows in frame.
authorAnders Lindgren <andlind@gmail.com>
Wed, 28 Oct 2015 11:06:39 +0000 (12:06 +0100)
committerAnders Lindgren <andlind@gmail.com>
Wed, 28 Oct 2015 11:06:39 +0000 (12:06 +0100)
commit590449f3d87f8f43eb0a852233e8945ecbe1c6aa
tree7c3c96ae80d72318be524f475ea7a84e98870166
parent934bfb933f4981b2edaa208186e2f8781ab6cb9f
Fix incorrect NextStep tool-bar-mode -- wrong number of rows in frame.

* nsterm.h (struct ns_output): New flag, in_animation.
* nsfns.m (Fx_create_frame): Initialize in_animation flag.
* nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Set
in_animation flag around call to "setVisible". Set new tool bar
height before call to setVisible.
* nsterm.m (x_set_window_size): Don't call [view setRow:
andColumns:] as this fools the subsequent call to updateFrameSize
from performing the real resize.
(windowDidResize): Don't update anything when in_animation is
non-zero.

Trace output.

* nsmenu.m (free_frame_tool_bar, update_frame_tool_bar)
(EmacsToolbar):
* nsterm.m (x_set_window_size, updateFrameSize)
([EmacsView setRows: andColumns:])
src/nsfns.m
src/nsmenu.m
src/nsterm.h
src/nsterm.m