]> git.eshelyaron.com Git - emacs.git/commit
Use images for new/close buttons in tab-bar and tab-line.
authorJuri Linkov <juri@linkov.net>
Sun, 15 Sep 2019 20:52:22 +0000 (23:52 +0300)
committerJuri Linkov <juri@linkov.net>
Sun, 15 Sep 2019 20:52:22 +0000 (23:52 +0300)
commit6474abc36359a438338e5d6186dbeaf24f200387
tree1d7a4c74483031759169d66a3b12aa722635240c
parent8d30e1bce3c1bddf85272fa31b7d314ed421d29e
Use images for new/close buttons in tab-bar and tab-line.

* etc/images/tabs/new.xpm:
* etc/images/tabs/close.xpm:
New files.

* lisp/tab-bar.el (tab-bar-separator): New face.
(tab-bar-separator, tab-bar-button-new, tab-bar-button-close):
Use display property with images in default values.

* lisp/tab-line.el (tab-line-button-new, tab-line-button-close):
Use display property with images in default values.

* src/xdisp.c (tab_bar_item_info): Add new arg close_p and set it
to the value of property `close' at charpos.
(get_tab_bar_item): Add new arg close_p.
(handle_tab_bar_click): Add ctrl_modifier when close_p is non-nil.
(Fdump_tab_bar_row): Fix crash for non-X builds.
etc/images/tabs/README [new file with mode: 0644]
etc/images/tabs/close.xpm [new file with mode: 0644]
etc/images/tabs/new.xpm [new file with mode: 0644]
lisp/tab-bar.el
lisp/tab-line.el
src/xdisp.c