Function: tab-bar--load-buttons
tab-bar--load-buttons is a byte-compiled function defined in
tab-bar.el.gz.
Signature
(tab-bar--load-buttons)
Documentation
Load the icons for the tab buttons.
Source Code
;; Defined in /usr/src/emacs/lisp/tab-bar.el.gz
(defun tab-bar--load-buttons ()
"Load the icons for the tab buttons."
(when (and tab-bar-new-button
(not (get-text-property 0 'display tab-bar-new-button)))
;; This file is pre-loaded so only here we can use the right data-directory:
(add-text-properties 0 (length tab-bar-new-button)
`(display (image :type xpm
:file "tabs/new.xpm"
:margin ,tab-bar-button-margin
:ascent center))
tab-bar-new-button))
(when (and tab-bar-close-button
(not (get-text-property 0 'display tab-bar-close-button)))
;; This file is pre-loaded so only here we can use the right data-directory:
(add-text-properties 0 (length tab-bar-close-button)
`(display (image :type xpm
:file "tabs/close.xpm"
:margin ,tab-bar-button-margin
:ascent center))
tab-bar-close-button)))