Add keyword :vert-only for tool bar items with labels not shown horizontally.
authorJan Djärv <jan.h.d@swipnet.se>
Sat, 20 Nov 2010 14:51:25 +0000 (15:51 +0100)
committerJan Djärv <jan.h.d@swipnet.se>
Sat, 20 Nov 2010 14:51:25 +0000 (15:51 +0100)
commitd2bd51898e48c2fd47a98a42654842a65feea7ad
tree445b7d1580622915a8b4d0e2886be772640face3
parent0e7c0582af3a7ee210dfa6a1ab6c41b23bea1951
Add keyword :vert-only for tool bar items with labels not shown horizontally.

* lisp/info.el (info-tool-bar-map): Add some :vert-only keywords.

* lisp/tool-bar.el (tool-bar-setup): Add some :vert-only keywords.

* src/dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.

* src/gtkutil.c (xg_make_tool_item): Take vert_only as argument.
Set important to ! vert_only.
(xg_show_toolbar_item): Don't show label horizontally if
tool item isn't important.
(update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
xg_make_tool_item, or update important on existing tool item.

* src/keyboard.c (QCvert_only): New variable.
(parse_tool_bar_item): Check for QCvert_only.
(syms_of_keyboard): Initialize QCvert_only.
lisp/ChangeLog
lisp/info.el
lisp/tool-bar.el
src/ChangeLog
src/dispextern.h
src/gtkutil.c
src/keyboard.c