summaryrefslogtreecommitdiff
path: root/lisp/tree-widget.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2008-04-23 02:58:55 +0000
committerGlenn Morris <rgm@gnu.org>2008-04-23 02:58:55 +0000
commitd811a2c4351b0b5523f96515ca83a8545dd55fe3 (patch)
tree3e402f639388591d8d3bebdbfbc644f77c276529 /lisp/tree-widget.el
parente234202b48f001924cd0f27334d7cf28a94c6afe (diff)
downloademacs-d811a2c4351b0b5523f96515ca83a8545dd55fe3.tar.gz
(tree-widget-image-enable): Use display-images-p rather than an Emacs
version test.
Diffstat (limited to 'lisp/tree-widget.el')
-rw-r--r--lisp/tree-widget.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/tree-widget.el b/lisp/tree-widget.el
index f9845ff861a..1be86e37a9d 100644
--- a/lisp/tree-widget.el
+++ b/lisp/tree-widget.el
@@ -127,9 +127,9 @@
:version "22.1"
:group 'widgets)
-(defcustom tree-widget-image-enable
- (not (or (featurep 'xemacs) (< emacs-major-version 21)))
- "*Non-nil means that tree-widget will try to use images."
+(defcustom tree-widget-image-enable (if (fboundp 'display-images-p)
+ (display-images-p))
+ "Non-nil means that tree-widget will try to use images."
:type 'boolean
:group 'tree-widget)