diff options
Diffstat (limited to 'lisp/tree-widget.el')
-rw-r--r-- | lisp/tree-widget.el | 6 |
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) |